• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scarver2 / ehr-portal / 23283338478
77%

Build:
DEFAULT BRANCH: main
Ran 19 Mar 2026 06:49AM UTC
Jobs 1
Files 27
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Mar 2026 06:49AM UTC coverage: 100.0% (+9.0%) from 91.0%
23283338478

push

github

web-flow
feat: Patients scaffold, UI steps, and DX improvements (#8)

* added Brakeman and Rubocop analysis

* updated docs

* added Rubocop tasks

* added Guard for TDD

* updated Tech Stack in docs

* added Guard to bootstrap

* added Rubocop tasks

* added Rubocop extensions for GraphQL RSpec-Rails

* misc cleanup

* skip linting GraphQL base classes

* added descriptions to GraphQL nodes

* added DX rubygems

* added project links for each rubygem in Gemfile

* God Bless Texas

* added Patients scaffold

* ignored RBS artifacts

* feat: patients domain — Encounter, Vital, and Diagnosis models

Adds the core clinical data layer linking patients (Users with role: patient)
to providers via encounters, with associated vital signs and ICD-10 diagnoses.

- Migrations: encounters (FK → users + providers), vitals, diagnoses with indexes
- Models: string-backed enums with validate: true, scopes, ransackable attributes
  - Encounter: encounter_type / status enums, for_patient / for_provider / recent scopes
  - Vital: vital_type enum, UNITS constant, by_type / recent scopes
  - Diagnosis: ICD-10 format validation (/\A[A-Z][0-9]{2}(\.[A-Z0-9]{1,4})?\z/), status enum
  - User + Provider: encounters associations added
- ActiveAdmin: Encounters with embedded Vitals/Diagnoses panels; Vitals and Diagnoses
  with belongs_to :encounter (optional: true) nesting
- GraphQL: EncounterType, VitalType, DiagnosisType, UserType; query_type wired with
  encounters (patient_id/provider_id/status args), encounter, vitals, diagnoses queries
- Factories: traits for all enum values; diagnosis traits include real ICD-10 codes
- Specs: 39 examples, 0 failures
- RBS: attr_accessor signatures + enum predicate stubs for all three models and
  GraphQL types
- Steps script: bin/steps/36_patients_modeling.sh documents the full implementation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat: separate Patient domain entity from User auth credentials

User = security construct (ema... (continued)

577 of 577 relevant lines covered (100.0%)

3.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23283338478.1 19 Mar 2026 06:49AM UTC 27
100.0
GitHub Action Run
Source Files on build 23283338478
  • Tree
  • List 27
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23283338478
  • af2780d3 on github
  • Prev Build on main (#23278763547)
  • Next Build on main (#23305376733)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc