MedFabric.Interop.FhirClient (mf_exam v0.1.0)

Copy Markdown View Source

Maps accepted clinical observations (reviewed audio, manual pulse and typed device spot-check metrics) to HL7 FHIR R4 Observation resources and delivers them idempotently via conditional create (If-None-Exist) with strict typed read-back confirmation.

Summary

Functions

conditional_create(resource, opts)

deliver(resource, opts \\ [])

@spec deliver(map(), keyword()) :: {:ok, map()} | {:error, term()}

fetch_by_identifier(external_id, opts \\ [])

@spec fetch_by_identifier(String.t(), keyword()) :: {:ok, [map()]} | {:error, term()}

resource(evidence, external, actor, refs)

resource_checked(evidence, external, actor, refs)

Validate device export eligibility before writing an outbox intent.