r4/resource/resource
library
Classes
-
FhirField
-
-
Resource
-
This class ends up functioning mostly like an abstract superclass. Some of
the fields in other classes contain a generic resource, so in order for
them to be able to implement a resource.toJson() function, it also has to
be implemented here (although it is always overridden). Each resource
class also has it's own fromJson() function as well. The fromJson function
in this class is only used if the resourceType is not previously known
Properties
-
fhirFieldMap
→ Map<String, Map<String, FhirField>>
-
Because I don't want to root around in StructureDefinitions just to see
what kind of an object something is or if it's a list, I'm using this
final
Functions
-
checkIfResource(Map<String, dynamic> oldValue, String oldType)
→ Map<String, dynamic>
-
-
isPrimitive(String oldType, Map<String, dynamic> oldValue)
→ bool
-
-
primitiveValue(String fhirFieldType, dynamic oldValue, String key)
→ dynamic
-
-
reformatXmlJsonMap(Map<String, dynamic> map, Map<String, FhirField> fhirObjectMap)
→ Map<String, dynamic>
-