Skip to main content

fhir_node 0.6.2 copy "fhir_node: ^0.6.2" to clipboard
fhir_node: ^0.6.2 copied to clipboard

Minimal model-reflection interface (FhirNode) letting model-independent FHIRPath/CQL engines navigate FHIR data of any version (R4/R5/R6).

0.6.2 #

  • ResourceModel gains fromJsonText(String) and toJsonText(R), so a package can hand a version the JSON text instead of a decoded map. A Dart map holds a decimal as a double (1.50 becomes 1.5), and FHIR requires decimal precision be kept (https://hl7.org/fhir/R4B/datatypes.html#decimal). Both have default bodies (dart:convert around fromJson/toJson), so existing models still compile; the fhir_r4/r5/r6 bindings override them with their lossless fromJsonString/toJsonString.
  • fhirJsonDecode, fhirJsonEncode, FhirJsonNumber, fhirJsonKeepsNumberText and isJsonNumberText: JSON text in and out that keeps a decimal's exact text. Moved here from fhir_r4/r5/r6 (which re-export them), so every version and every model-independent package uses one copy. fhirJsonEncode now keeps the text of an object met inside the value it writes, not only of what buildJson returns.

0.6.1 #

  • Alongside the FhirNode contract (unchanged), the pieces every model-independent package in the family had started to copy: ResourceModel<R> (what a version supplies to a package that reads resources through FhirNode and builds them only from JSON: version, resource type names, from/to JSON), errorOperationOutcomeJson (the one error-issue OperationOutcome, as JSON, with optional contained resources), and JsonNode (a FhirNode over plain JSON, for tests and tools without a model; a child's type is its resourceType, an optional element-type table entry, a choice suffix, the JSON scalar's primitive type, or else its element name).

0.6.0 #

Versioned 0.6.0 (not 0.1.0) to ship on the same release train as the fhir_r4/r5/r6 family — the fhir-fli packages version in lockstep (ucum excepted, which is independent).

  • Initial release: the read-only FhirNode model-reflection interface — fhirType, isPrimitive, isResource, primitiveValue, hasType, isEmpty, getChildrenByName, listChildrenNames, getChildByName, equalsDeep, isMetadataBased.
  • Implemented by the fhir_r4/fhir_r5/fhir_r6 FhirBase classes; consumed by the standalone fhirpath and cql engines.
  • Scope commitment: this interface is read-only navigation, permanently. Mutation support will be a separate MutableFhirNode interface so that adding it never breaks implementers (see the compatibility policy in the README).
0
likes
160
points
4.07k
downloads

Documentation

API reference

Publisher

verified publisherfhirfli.dev

Weekly Downloads

Minimal model-reflection interface (FhirNode) letting model-independent FHIRPath/CQL engines navigate FHIR data of any version (R4/R5/R6).

Homepage
Repository (GitHub)
View/report issues

Topics

#fhir #fhirpath #hl7 #healthcare #interoperability

License

MIT (license)

More

Packages that depend on fhir_node