EncryptedPatient constructor
const
EncryptedPatient({
- required String id,
- @Default([]) List<
Identifier> identifier, - @Default(null) String? rev,
- @Default(null) int? created,
- @Default(null) int? modified,
- @Default(null) String? author,
- @Default(null) String? responsible,
- @Default({}) Set<
CodeStub> tags, - @Default({}) Set<
CodeStub> codes, - @Default(null) int? endOfLife,
- @Default(null) int? deletionDate,
- @Default(null) String? firstName,
- @Default(null) String? lastName,
- @Default([]) List<
PersonName> names, - @Default(null) String? companyName,
- @Default([]) List<
String> languages, - @Default([]) List<
EncryptedAddress> addresses, - @Default(null) String? civility,
- @Default(Gender.unknown) Gender? gender,
- @Default(Gender.unknown) Gender? birthSex,
- @Default(null) String? mergeToPatientId,
- @Default({}) Set<
String> mergedIds, - @Default(null) String? alias,
- @Default(true) bool active,
- @Default(DeactivationReason.none) DeactivationReason deactivationReason,
- @Default(null) int? deactivationDate,
- @Default(null) String? ssin,
- @Default(null) String? maidenName,
- @Default(null) String? spouseName,
- @Default(null) String? partnerName,
- @Default(PersonalStatus.unknown) PersonalStatus? personalStatus,
- @Default(null) int? dateOfBirth,
- @Default(null) int? dateOfDeath,
- @Default(null) int? timestampOfLatestEidReading,
- @Default(null) String? placeOfBirth,
- @Default(null) String? placeOfDeath,
- @Default(null) bool? deceased,
- @Default(null) String? education,
- @Default(null) String? profession,
- @Default([]) List<
Annotation> notes, - @Default(null) String? note,
- @Default(null) String? administrativeNote,
- @Default(null) String? nationality,
- @Default(null) String? race,
- @Default(null) String? ethnicity,
- @Default(null) String? preferredUserId,
- @Default(null) Uint8List? picture,
- @Default(null) String? externalId,
- @Default([]) List<
EncryptedInsurability> insurabilities, - @Default([]) List<
Partnership> partnerships, - @Default([]) List<
EncryptedPatientHealthCareParty> patientHealthCareParties, - @Default([]) List<
EncryptedFinancialInstitutionInformation> financialInstitutionInformation, - @Default([]) List<
EncryptedMedicalHouseContract> medicalHouseContracts, - @Default([]) List<
CodeStub> patientProfessions, - @Default({}) Map<
String, List< parameters,String> > - @Default({}) Set<
EncryptedPropertyStub> properties, - @Default({}) Map<
String, List< hcPartyKeys,HexString> > - @Default({}) Map<
AesExchangeKeyEntryKeyString, Map< aesExchangeKeys,String, Map< >AesExchangeKeyEncryptionKeypairIdentifier, HexString> > - @Default({}) Map<
AesExchangeKeyEncryptionKeypairIdentifier, Map< transferKeys,AesExchangeKeyEncryptionKeypairIdentifier, HexString> > - @Default({}) Map<
String, HexString> privateKeyShamirPartitions, - @Default(null) CardinalRsaPublicKey? publicKey,
- @Default({}) Set<
CardinalRsaPublicKey> publicKeysForOaepWithSha256, - @Default({}) Set<
String> secretForeignKeys, - @Default({}) Map<
String, Set< cryptedForeignKeys,Delegation> > - @Default({}) Map<
String, Set< delegations,Delegation> > - @Default({}) Map<
String, Set< encryptionKeys,Delegation> > - @Default(null) Base64String? encryptedSelf,
- @Default(null) SecurityMetadata? securityMetadata,
- @Default(null) Set<
DecryptedPropertyStub> ? cryptoActorProperties, - @Default(null) String? medicalLocationId,
- @Default({}) Set<
String> nonDuplicateIds, - @Default({}) Set<
String> encryptedAdministrativesDocuments, - @Default(null) String? comment,
- @Default(null) String? warning,
- @Default(null) CodeStub? fatherBirthCountry,
- @Default(null) CodeStub? birthCountry,
- @Default(null) CodeStub? nativeCountry,
- @Default(null) CodeStub? socialStatus,
- @Default(null) CodeStub? mainSourceOfIncome,
- @Default([]) List<
EncryptedSchoolingInfo> schoolingInfos, - @Default([]) List<
EncryptedEmploymentInfo> employementInfos, - @Default(null) Never parentId,
Implementation
const factory EncryptedPatient({
required String id,
@Default([]) List<Identifier> identifier,
@Default(null) String? rev,
@Default(null) int? created,
@Default(null) int? modified,
@Default(null) String? author,
@Default(null) String? responsible,
@Default({}) Set<CodeStub> tags,
@Default({}) Set<CodeStub> codes,
@Default(null) int? endOfLife,
@Default(null) int? deletionDate,
@Default(null) String? firstName,
@Default(null) String? lastName,
@Default([]) List<PersonName> names,
@Default(null) String? companyName,
@Default([]) List<String> languages,
@Default([]) List<EncryptedAddress> addresses,
@Default(null) String? civility,
@Default(Gender.unknown) Gender? gender,
@Default(Gender.unknown) Gender? birthSex,
@Default(null) String? mergeToPatientId,
@Default({}) Set<String> mergedIds,
@Default(null) String? alias,
@Default(true) bool active,
@Default(DeactivationReason.none) DeactivationReason deactivationReason,
@Default(null) int? deactivationDate,
@Default(null) String? ssin,
@Default(null) String? maidenName,
@Default(null) String? spouseName,
@Default(null) String? partnerName,
@Default(PersonalStatus.unknown) PersonalStatus? personalStatus,
@Default(null) int? dateOfBirth,
@Default(null) int? dateOfDeath,
@Default(null) int? timestampOfLatestEidReading,
@Default(null) String? placeOfBirth,
@Default(null) String? placeOfDeath,
@Default(null) bool? deceased,
@Default(null) String? education,
@Default(null) String? profession,
@Default([]) List<Annotation> notes,
@Default(null) String? note,
@Default(null) String? administrativeNote,
@Default(null) String? nationality,
@Default(null) String? race,
@Default(null) String? ethnicity,
@Default(null) String? preferredUserId,
@Default(null) Uint8List? picture,
@Default(null) String? externalId,
@Default([]) List<EncryptedInsurability> insurabilities,
@Default([]) List<Partnership> partnerships,
@Default([]) List<EncryptedPatientHealthCareParty> patientHealthCareParties,
@Default([]) List<EncryptedFinancialInstitutionInformation> financialInstitutionInformation,
@Default([]) List<EncryptedMedicalHouseContract> medicalHouseContracts,
@Default([]) List<CodeStub> patientProfessions,
@Default({}) Map<String, List<String>> parameters,
@Default({}) Set<EncryptedPropertyStub> properties,
@Default({}) Map<String, List<HexString>> hcPartyKeys,
@Default({}) Map<AesExchangeKeyEntryKeyString, Map<String, Map<AesExchangeKeyEncryptionKeypairIdentifier, HexString>>> aesExchangeKeys,
@Default({}) Map<AesExchangeKeyEncryptionKeypairIdentifier, Map<AesExchangeKeyEncryptionKeypairIdentifier, HexString>> transferKeys,
@Default({}) Map<String, HexString> privateKeyShamirPartitions,
@Default(null) CardinalRsaPublicKey? publicKey,
@Default({}) Set<CardinalRsaPublicKey> publicKeysForOaepWithSha256,
@Default({}) Set<String> secretForeignKeys,
@Default({}) Map<String, Set<Delegation>> cryptedForeignKeys,
@Default({}) Map<String, Set<Delegation>> delegations,
@Default({}) Map<String, Set<Delegation>> encryptionKeys,
@Default(null) Base64String? encryptedSelf,
@Default(null) SecurityMetadata? securityMetadata,
@Default(null) Set<DecryptedPropertyStub>? cryptoActorProperties,
@Default(null) String? medicalLocationId,
@Default({}) Set<String> nonDuplicateIds,
@Default({}) Set<String> encryptedAdministrativesDocuments,
@Default(null) String? comment,
@Default(null) String? warning,
@Default(null) CodeStub? fatherBirthCountry,
@Default(null) CodeStub? birthCountry,
@Default(null) CodeStub? nativeCountry,
@Default(null) CodeStub? socialStatus,
@Default(null) CodeStub? mainSourceOfIncome,
@Default([]) List<EncryptedSchoolingInfo> schoolingInfos,
@Default([]) List<EncryptedEmploymentInfo> employementInfos,
@Default(null) Never? parentId,
}) = _EncryptedPatient;