-
Notifications
You must be signed in to change notification settings - Fork 82
FHIR and Interoperability
Yosemite Crew models clinical data against FHIR R4 so it can interoperate with external lab and EHR systems instead of being locked into a proprietary schema. This is one of the two properties (with multi-tenancy) that shapes the architecture.
- Core clinical entities have FHIR R4 converters in
packages/fhir; the FHIR type definitions live inpackages/fhirtypes. - The convention (from the architecture guide) is that every core entity maps to a FHIR resource, and HL7 v2.5 messages (ADT / ORU / ORM) are exportable. This is why many backend routes are namespaced
/fhir/v1/.... - Keeping FHIR types in their own package lets web, mobile, and backend share one definition of a clinical resource rather than re-describing it per app.
The
@yosemite-crew/typespackage must be mocked carefully in frontend tests — spreadjest.requireActualorforms.tsfails to load. See Frontend Testing.
Lab connectivity sits behind the LabOrderAdapter interface (apps/backend/src/labs/types.ts, resolved via getLabOrderAdapter(); integration accounts resolve via getIntegrationAdapter() in src/integrations/) so no single lab vendor is load-bearing:
- IDEXX is the live — and currently only — implementation (lab orders and results flow into the companion's clinical timeline).
- Antech, Zoetis, and in-house analyzers are prospective future adapters behind the same seam; they are not modeled in code today.
Lab orders and result ingestion are async (BullMQ) and land in the unified companion history — see Backend: Integrations and Backend: Realtime, Chat, Jobs.
The mobile app integrates the Merck Veterinary Manual as clinical reference content (apps/mobileAppYC/src/features/merck/ plus a backend integration path). It is treated as a first-class integration domain in the contribution workflow.
Clinical records reference standard coding systems where they exist — ICD-11 / SNOMED (diagnoses), RxNorm / NDC / ATC (drugs), AAHA (chart of accounts / services), and DEA schedules (controlled substances). For other (non dog/cat/horse) species, free-text or custom codes are allowed where a standard code doesn't fit.
- DICOM SR → HL7 / imaging interop — Future-Scope #1667.
- Country regulation & compliance packs (region-specific controlled-substance logs, audit exports) — #1658.
- See the full Future-Scope Register.
Home · Architecture · ADRs · Plans · Roadmap · Contributing · Main repo · DeepWiki · Discord
Yosemite Crew is a product of DuneXploration UG (haftungsbeschränkt). This wiki mirrors the repository; where a page and the repo disagree, the repo wins. See the Wiki Style Guide.
Product & Domain
Architecture
Applications
- Backend — Overview
- Frontend / PIMS Web — Overview
- Mobile — Overview
- Desktop PIMS Shell
- Developer Portal
- SuperAdmin
Design & Accessibility
Engineering Handbook
Decisions (ADRs)
Design Docs & Plans
Meta
Canonical code & docs: main repo · Auto-generated companion: DeepWiki