DataSample class

Available extensions

Constructors

DataSample({String? id, String? transactionId, List<Identifier> identifiers = const [], String? batchId, Set<String> healthcareElementsIds = const {}, Set<String> canvasesIds = const {}, int? index, Map<String, Content> content = const {}, int? valueDate, int? openingDate, int? closingDate, int? created, int? modified, int? endOfLife, String? author, String? responsible, String? comment, Map<String, Map<String, String>> qualifiedLinks = const {}, Set<CodingReference> codes = const {}, Set<CodingReference> labels = const {}})
Returns a new DataSample instance.

Properties

author String?
The id of the User that created this data sample. When creating the data sample, will be filled automatically by the current user id if not provided.
getter/setter pair
batchId String?
Id of the batch that embeds this data sample
getter/setter pair
canvasesIds Set<String>
List of Ids of all canvases linked to the Data sample. Only used when the Data sample is emitted outside of its batch.
getter/setter pair
closingDate int?
The date (YYYYMMDDhhmmss) marking the end of the Data sample
getter/setter pair
codes Set<CodingReference>
A code is an item from a codification system that qualifies the content of this data sample. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes
getter/setter pair
comment String?
Text, comments on the Data sample provided
getter/setter pair
content Map<String, Content>
Information contained in the data sample (Measure, number, ...). Content is localized, using ISO language code as key
getter/setter pair
created int?
The timestamp (unix epoch in ms) of creation of this data sample in iCure system. Will be filled automatically if not provided.
getter/setter pair
endOfLife int?
Soft delete (unix epoch in ms) timestamp of the data sample
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
healthcareElementsIds Set<String>
List of IDs of all healthcare elements for which the data sample is provided. Only used when the Data sample is emitted outside of its batch
getter/setter pair
id String?
The Id of the Data sample. We encourage using either a v4 UUID or a HL7 Id.
getter/setter pair
identifiers List<Identifier>
Typically used for business / client identifierss. An identifiers should identify a data sample uniquely and unambiguously. However, iCure can't guarantee the uniqueness of those identifierss : This is something you need to take care of.
getter/setter pair
index int?
Used for sorting data samples inside an upper object (A batch, a transaction, a FHIR bundle, ...)
getter/setter pair
labels Set<CodingReference>
A label is an item from a codification system that qualifies a data sample as being member of a certain class, whatever the value it might have taken. If the label qualifies the content of a field, it means that whatever the content of the field, the label will always apply. LOINC is a codification system typically used for labels.
getter/setter pair
modified int?
The timestamp (unix epoch in ms) of the latest modification of this data sample in iCure system. Will be filled automatically if not provided.
getter/setter pair
openingDate int?
The date (YYYYMMDDhhmmss) of the start of the Data sample
getter/setter pair
Links towards related data samples (possibly in other batches)
getter/setter pair
responsible String?
The id of the data owner that is responsible of this data sample. When creating the data sample, will be filled automatically by the current user data owner id (HealthcareProfessional, Patient or MedicalDevice) if missing
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transactionId String?
The transactionId is used when a single data sample had to be split into parts for technical reasons. Several data samples with the same non null transaction id form one single data sample
getter/setter pair
valueDate int?
The date (YYYYMMDDhhmmss) when the Data sample is noted to have started and also closes on the same date
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(dynamic value) DataSample?
Returns a new DataSample instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<DataSample>?
mapFromJson(dynamic json) Map<String, DataSample>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<DataSample>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.