CDADocument class

Equivalent of CDADocument from HealthKitReporter https://github.com/kvs-coder/HealthKitReporter

Consolidated Clinical Document (CDA) sample.

Supports map representation.

Has a CDADocument.fromJson constructor to create instances from JSON payload coming from iOS native code. And supports multiple object creation by collect method from JSON list.

Requires DocumentType.cda permissions provided.

Inheritance

Constructors

CDADocument(String uuid, String identifier, num startTimestamp, num endTimestamp, Device? device, SourceRevision sourceRevision, CDADocumentHarmonized harmonized)
const
CDADocument.fromJson(Map<String, dynamic> json)
General constructor from JSON payload

Properties

device → Device?
finalinherited
endTimestamp → num
Seconds since 1970
finalinherited
harmonized → CDADocumentHarmonized
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
identifier → String
finalinherited
map → Map<String, dynamic>
General map representation
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceRevision → SourceRevision
finalinherited
startTimestamp → num
Seconds since 1970, also for samples built in Dart (see SecondsSinceEpoch.secondsSinceEpoch)
finalinherited
uuid → String
The uuid of the sample stored in HealthKit. Send the sample back with it to delete it or to unrelate it.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parsed() → Map<String, dynamic>
For saving or deleting data, prepares appropriate map for HealthKitReporter.save and HealthKitReporter.delete. uuid is part of it: the native side deletes the stored sample with it
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

collect(List list) → List<CDADocument>
Simplifies creating a list of objects from JSON payload.
override