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< qualifiedLinks = const {}, Set<String, String> >CodingReference> codes = const {}, Set<CodingReference> labels = const {}}) - Returns a new DataSample instance.
Properties
-
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.
read / write
- batchId ↔ String?
-
Id of the batch that embeds this data sample
read / write
-
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.
read / write
- closingDate ↔ int?
-
The date (YYYYMMDDhhmmss) marking the end of the Data sample
read / write
-
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
read / write
- comment ↔ String?
-
Text, comments on the Data sample provided
read / write
-
content
↔ Map<
String, Content> -
Information contained in the data sample (Measure, number, ...). Content is localized, using ISO language code as key
read / write
- created ↔ int?
-
The timestamp (unix epoch in ms) of creation of this data sample in iCure system. Will be filled automatically if not provided.
read / write
- endOfLife ↔ int?
-
Soft delete (unix epoch in ms) timestamp of the data sample
read / write
- hashCode → int
-
The hash code for this object.
read-onlyoverride
-
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
read / write
- id ↔ String?
-
The Id of the Data sample. We encourage using either a v4 UUID or a HL7 Id.
read / write
-
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.
read / write
- index ↔ int?
-
Used for sorting data samples inside an upper object (A batch, a transaction, a FHIR bundle, ...)
read / write
-
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.
read / write
- 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.
read / write
- openingDate ↔ int?
-
The date (YYYYMMDDhhmmss) of the start of the Data sample
read / write
-
qualifiedLinks
↔ Map<
String, Map< String, String> > -
Links towards related data samples (possibly in other batches)
read / write
- 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
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- 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
read / write
- valueDate ↔ int?
-
The date (YYYYMMDDhhmmss) when the Data sample is noted to have started and also closes on the same date
read / write
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.
<String>{'identifiers', 'content', 'qualifiedLinks', 'codes', 'labels'}