Moyae Ophthalmology FHIR Implementation Guide
0.1.1 - ci-build
Moyae Ophthalmology FHIR Implementation Guide - Local Development build (v0.1.1) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: https://fhir.moyae.com/ImplementationGuide/moyae.fhir.ophthalmology | Version: 0.1.1 | |||
| Draft as of 2026-11-16 | Computable Name: MoyaeFhirOphthalmology | |||
Version 0.1.1 — profiles and extensions for the resources Moyae emits today, plus the shape they are moving to.
This guide documents what the Moyae EMR actually writes to its FHIR store, not an aspirational model. Where the current emission differs from idiomatic FHIR R4 or from peer ophthalmology guides, the Relationships and caveats page says so and gives the migration plan. The History page lists what changed in each release.
| Profile | Source file in Moyae | Purpose |
|---|---|---|
| MoyaeIntraocularPressure | packages/api/services/fhirObservations/iopBuilder.ts |
One Observation per eye for IOP measurements. Documents the target shape (bodySite laterality, valueQuantity in mm[Hg], method). |
| MoyaeVisualAcuity | packages/api/services/fhirObservations/visualAcuityHelpers/formatObservation.ts |
Distance / intermediate / near VA per eye, with pinhole and binocular variants. |
| MoyaeRefraction | Same file, typeOfExam = "refraction" path |
A refraction event. Shares structure with MoyaeVisualAcuity but code is SNOMED Refraction with subjective / objective discriminators; focus references the companion VisionPrescription. |
| MoyaeVisionPrescription | packages/api/services/fhirObservations/visualAcuityHelpers/formatVisionPrescription.ts |
status="draft" as the in-exam measurement carrier; status="active" as a separately issued, signed Rx. |
| Extension | On | Purpose |
|---|---|---|
| VisionPrescriptionSourceObservation | VisionPrescription | The exam Observation a draft or signed prescription was built from. The durable link; Observation.focus is the transitional one. |
| LensMaterial | VisionPrescription.lensSpecification | Glasses lens material (CR-39, polycarbonate, Trivex, high-index, glass) from the LensMaterial code system. |
| SubscriptionFilterByProfile | Subscription.channel | Draft. Related resources (as a search string) to add to a notification. See Subscriptions. |
| SubscriptionFilterByResourceType | Subscription.channel | Draft. A resource type to add to a notification for the same patient. |
| BalanceLens | VisionPrescription.lensSpecification | Marks an eye prescribed a balance lens, which base R4 cannot express because sphere is a decimal. |
These are the items partners and validators most often ask about.
Observation.bodySite using the active SNOMED eye-structure concepts (1290032005 right, 1290031003 left, 40638003 both). The legacy laterality extension and eye component are still written alongside for older readers.bodySite to any Observation whose code or components imply a side, and inactive SNOMED eye codes (18944008, 8966001) are normalized to the active concepts on read and in a one-time migration.Observation.code and by component method flags. Refraction Observations also carry the SNOMED subjective (397277005) or objective (397276001) refraction coding, matching the discriminators used by device-vendor profiles.Observation.focus; the VisionPrescription references the Observation back through the source-observation extension. The reverse link is the one that stays.status="active" VisionPrescription; the exam draft is left untouched, so the measurement and the issued Rx have distinct ids and both carry signature records.derivedFrom pointing at the original Observation.valueString. IOP pressure and VA notation are strings in production. The IOP profile in this guide documents the valueQuantity target; the writer has not been migrated yet.Moyae exposes a SMART on FHIR R4 API for partners at /fhir on each environment, with discovery at /.well-known/smart-configuration and a CapabilityStatement at /metadata.
client_credentials) with system/<Type>.read scopes, and may create rest-hook Subscription resources to be notified of changes. See Subscriptions for how they work today and the draft connectathon profile.patient/<Type>.read scopes; access is scoped to the patient compartment.Patient, Appointment and Location, upserting by their own identifier.Observation, VisionPrescription, Condition, Procedure, DiagnosticReport, DocumentReference, Encounter and Appointment.Resources are served in the shapes documented here. Per-partner mappings and derived endpoints can be arranged through the partnership program at moyae.com/build-with-moyae.
Authored in FHIR Shorthand and built with SUSHI + the HL7 IG Publisher. Source repo: github.com/MOYAE/FHIR.
Early drafts were reviewed by colleagues in the ophthalmic device and interoperability community. Not every suggestion is reflected yet; revisions continue to land in point releases. Moyae participates in the CCOI Interoperability and Standards working group and intends to contribute to the HL7 Eye Care IG refresh.
Implementation feedback, partner inquiries: partnerships@moyae.com or book at calendar.app.google/joEV8YqqYastTaNf6.