DecryptedMessageDto class

Constructors

DecryptedMessageDto({required String id, String? rev, int? created, int? modified, String? author, String? responsible, String? medicalLocationId, Set<CodeStubDto> tags = const {}, Set<CodeStubDto> codes = const {}, int? endOfLife, int? deletionDate, String? fromAddress, String? fromHealthcarePartyId, String? formId, int? status, String? recipientsType, Set<String> recipients = const {}, Set<String> toAddresses = const {}, int? received, int? sent, Map<String, String> metas = const {}, Map<String, MessageReadStatusDto> readStatus = const {}, String? transportGuid, String? remark, String? conversationGuid, String? subject, Set<String> invoiceIds = const {}, String? parentId, String? externalRef, Set<String> unassignedResults = const {}, Map<String, String> assignedResults = const {}, Map<String, String> senderReferences = const {}, Set<String> secretForeignKeys = const {}, Map<String, Set<DelegationDto>> cryptedForeignKeys = const {}, Map<String, Set<DelegationDto>> delegations = const {}, Map<String, Set<DelegationDto>> encryptionKeys = const {}, String? encryptedSelf})
Returns a new DecryptedMessageDto instance.

Properties

assignedResults Map<String, String>
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
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
conversationGuid 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
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
cryptedForeignKeys Map<String, Set<DelegationDto>>
The secretForeignKeys are filled at the to many end of a one to many relationship (for example inside Contact for the Patient -> Contacts relationship). Used when we want to find the patient for a specific contact. These keys are the encrypted id (using the hcParty key for the delegate) that can be found in clear inside the patient. ids encrypted using the hcParty keys.
getter/setter pair
delegations Map<String, Set<DelegationDto>>
When a document is created, the responsible generates a cryptographically random master key (never to be used for something else than referencing from other entities). He/she encrypts it using his own AES exchange key and stores it as a delegation. The responsible is thus always in the delegations as well
getter/setter pair
deletionDate int?
hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.
getter/setter pair
encryptedSelf String?
The base64 encoded data of this object, formatted as JSON and encrypted in AES using the random master key from encryptionKeys.
getter/setter pair
encryptionKeys Map<String, Set<DelegationDto>>
When a document needs to be encrypted, the responsible generates a cryptographically random master key (different from the delegation key, never to appear in clear anywhere in the db. He/she encrypts it using his own AES exchange key and stores it as a delegation
getter/setter pair
endOfLife int?
Soft delete (unix epoch in ms) timestamp of the object.
getter/setter pair
externalRef 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
formId 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
fromAddress String?
Address of the sender of the message
getter/setter pair
fromHealthcarePartyId String?
ID of the healthcare party sending the message
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String
The ID of the message. We encourage using either a v4 UUID or a HL7 Id.
getter/setter pair
invoiceIds Set<String>
Set of IDs for invoices in the message
getter/setter pair
medicalLocationId String?
The id of the medical location where this entity was created.
getter/setter pair
metas Map<String, String>
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
parentId String?
ID of a parent in a message conversation
getter/setter pair
readStatus Map<String, MessageReadStatusDto>
Status showing whether the message is read or not and the time of reading
getter/setter pair
received int?
The timestamp (unix epoch in ms) when the message was received
getter/setter pair
recipients Set<String>
List of IDs of healthcare parties to whom the message is addressed
getter/setter pair
recipientsType String?
The type of user who is the recipient of this message
getter/setter pair
remark 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
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?
The revision of the message in the database, used for conflict management / optimistic locking.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretForeignKeys Set<String>
The secretForeignKeys are filled at the to many end of a one to many relationship (for example inside Contact for the Patient -> Contacts relationship). Used when we want to find all contacts for a specific patient. These keys are in clear. You can have several to partition the medical document space.
getter/setter pair
senderReferences Map<String, String>
getter/setter pair
sent int?
The timestamp (unix epoch in ms) when the message was sent
getter/setter pair
status int?
Status of the message
getter/setter pair
subject String?
Subject for the message
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
toAddresses Set<String>
The address of the recipient of the message. Format is of an email address with extra domains defined for mycarenet and ehealth: (efact.mycarenet.be/eattest.mycarenet.be/chapter4.mycarenet.be/ehbox.ehealth.fgov.be)
getter/setter pair
transportGuid 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
unassignedResults Set<String>
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) DecryptedMessageDto?
Returns a new DecryptedMessageDto instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<DecryptedMessageDto>?
mapFromJson(dynamic json) Map<String, DecryptedMessageDto>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<DecryptedMessageDto>>

Constants

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