fhir_node 0.6.2
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 #
ResourceModelgainsfromJsonText(String)andtoJsonText(R), so a package can hand a version the JSON text instead of a decoded map. A Dart map holds a decimal as adouble(1.50becomes1.5), and FHIR requires decimal precision be kept (https://hl7.org/fhir/R4B/datatypes.html#decimal). Both have default bodies (dart:convertaroundfromJson/toJson), so existing models still compile; the fhir_r4/r5/r6 bindings override them with their losslessfromJsonString/toJsonString.fhirJsonDecode,fhirJsonEncode,FhirJsonNumber,fhirJsonKeepsNumberTextandisJsonNumberText: 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.fhirJsonEncodenow keeps the text of an object met inside the value it writes, not only of whatbuildJsonreturns.
0.6.1 #
- Alongside the
FhirNodecontract (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 throughFhirNodeand builds them only from JSON: version, resource type names, from/to JSON),errorOperationOutcomeJson(the one error-issue OperationOutcome, as JSON, with optional contained resources), andJsonNode(aFhirNodeover plain JSON, for tests and tools without a model; a child's type is itsresourceType, 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
FhirNodemodel-reflection interface —fhirType,isPrimitive,isResource,primitiveValue,hasType,isEmpty,getChildrenByName,listChildrenNames,getChildByName,equalsDeep,isMetadataBased. - Implemented by the
fhir_r4/fhir_r5/fhir_r6FhirBaseclasses; consumed by the standalonefhirpathandcqlengines. - Scope commitment: this interface is read-only navigation, permanently.
Mutation support will be a separate
MutableFhirNodeinterface so that adding it never breaks implementers (see the compatibility policy in the README).