FhirEx (fhir_ex v0.2.0)

Copy Markdown View Source

FHIR R5 library for Elixir.

Focused on lab exam ordering and patient admissions workflows.

Quick Start

# Build a ServiceRequest (lab order)
alias FhirEx.Resources.ServiceRequest
alias FhirEx.Types.{Reference, CodeableConcept, Coding, Identifier}

order = %ServiceRequest{
  id: "lab-order-001",
  status: "active",
  intent: "order",
  code: %CodeableConcept{
    coding: [%Coding{system: "http://loinc.org", code: "58410-2", display: "CBC panel"}],
    text: "Complete Blood Count"
  },
  subject: %Reference{reference: "Patient/patient-001"}
}

json = FhirEx.JSON.encode!(order)

Resources

Data Types