DeviceDto class

Constructors

DeviceDto({required String id, String? rev, int? deletionDate, List<IdentifierDto> identifiers = const [], int? created, int? modified, String? author, String? responsible, Set<CodeStubDto> tags = const {}, Set<CodeStubDto> codes = const {}, int? endOfLife, String? medicalLocationId, String? externalId, String? name, String? type, String? brand, String? model, String? serialNumber, String? parentId, List<String> picture = const [], Set<PropertyStubDto> properties = const {}, Map<String, List<String>> hcPartyKeys = const {}, Map<String, Map<String, Map<String, String>>> aesExchangeKeys = const {}, Map<String, Map<String, String>> transferKeys = const {}, Map<String, String> privateKeyShamirPartitions = const {}, String? publicKey})
Returns a new DeviceDto instance.

Properties

aesExchangeKeys Map<String, Map<String, Map<String, String>>>
Extra AES exchange keys, usually the ones we lost access to at some point The structure is { publicKey: { delegateId: aesExKey_for_this, aesExKey_for_delegate } }
getter/setter pair
author String?
The id of the User that has created this entity, will be filled automatically if missing. Not enforced by the application server.
getter/setter pair
brand String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
codes Set<CodeStubDto>
A code is an item from a codification system that qualifies the content of this entity. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes
getter/setter pair
created int?
The timestamp (unix epoch in ms) of creation of this entity, will be filled automatically if missing. Not enforced by the application server.
getter/setter pair
deletionDate int?
hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.
getter/setter pair
endOfLife int?
Soft delete (unix epoch in ms) timestamp of the object.
getter/setter pair
externalId String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
hcPartyKeys Map<String, List<String>>
For each couple of HcParties (delegator and delegate), this map contains the exchange AES key. The delegator is always this hcp, the key of the map is the id of the delegate. The AES exchange key is encrypted using RSA twice : once using this hcp public key (index 0 in the Array) and once using the other hcp public key (index 1 in the Array). For a pair of HcParties. Each HcParty always has one AES exchange key for himself.
getter/setter pair
id String
getter/setter pair
identifiers List<IdentifierDto>
getter/setter pair
medicalLocationId String?
The id of the medical location where this entity was created.
getter/setter pair
model String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
modified int?
The date (unix epoch in ms) of the latest modification of this entity, will be filled automatically if missing. Not enforced by the application server.
getter/setter pair
name String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
parentId String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
picture List<String>
getter/setter pair
privateKeyShamirPartitions Map<String, String>
The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is "threshold⎮partition in hex" encrypted using the the partition's holder's public RSA key
getter/setter pair
properties Set<PropertyStubDto>
getter/setter pair
publicKey String?
The public key of this hcp
getter/setter pair
responsible String?
The id of the HealthcareParty that is responsible for this entity, will be filled automatically if missing. Not enforced by the application server.
getter/setter pair
rev String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serialNumber String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
tags Set<CodeStubDto>
A tag is an item from a codification system that qualifies an entity as being member of a certain class, whatever the value it might have taken. If the tag qualifies the content of a field, it means that whatever the content of the field, the tag will always apply. For example, the label of a field is qualified using a tag. LOINC is a codification system typically used for tags.
getter/setter pair
transferKeys Map<String, Map<String, String>>
Data owner private keys encrypted with its other public keys. This mechanism will help the data owner to re-encrypt all information with its new key, if he found back the lost one. The structure is { publicKey1: { publicKey2: privateKey2_encrypted_with_publicKey1, publicKey3: privateKey3_encrypted_with_publicKey1 } }
getter/setter pair
type String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
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) DeviceDto?
Returns a new DeviceDto instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<DeviceDto>?
mapFromJson(dynamic json) Map<String, DeviceDto>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<DeviceDto>>

Constants

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