EncryptedPatient constructor

const EncryptedPatient({
  1. required String id,
  2. @Default([]) List<Identifier> identifier,
  3. @Default(null) String? rev,
  4. @Default(null) int? created,
  5. @Default(null) int? modified,
  6. @Default(null) String? author,
  7. @Default(null) String? responsible,
  8. @Default({}) Set<CodeStub> tags,
  9. @Default({}) Set<CodeStub> codes,
  10. @Default(null) int? endOfLife,
  11. @Default(null) int? deletionDate,
  12. @Default(null) String? firstName,
  13. @Default(null) String? lastName,
  14. @Default([]) List<PersonName> names,
  15. @Default(null) String? companyName,
  16. @Default([]) List<String> languages,
  17. @Default([]) List<EncryptedAddress> addresses,
  18. @Default(null) String? civility,
  19. @Default(Gender.unknown) Gender? gender,
  20. @Default(Gender.unknown) Gender? birthSex,
  21. @Default(null) String? mergeToPatientId,
  22. @Default({}) Set<String> mergedIds,
  23. @Default(null) String? alias,
  24. @Default(true) bool active,
  25. @Default(DeactivationReason.none) DeactivationReason deactivationReason,
  26. @Default(null) int? deactivationDate,
  27. @Default(null) String? ssin,
  28. @Default(null) String? maidenName,
  29. @Default(null) String? spouseName,
  30. @Default(null) String? partnerName,
  31. @Default(PersonalStatus.unknown) PersonalStatus? personalStatus,
  32. @Default(null) int? dateOfBirth,
  33. @Default(null) int? dateOfDeath,
  34. @Default(null) int? timestampOfLatestEidReading,
  35. @Default(null) String? placeOfBirth,
  36. @Default(null) String? placeOfDeath,
  37. @Default(null) bool? deceased,
  38. @Default(null) String? education,
  39. @Default(null) String? profession,
  40. @Default([]) List<Annotation> notes,
  41. @Default(null) String? note,
  42. @Default(null) String? administrativeNote,
  43. @Default(null) String? nationality,
  44. @Default(null) String? race,
  45. @Default(null) String? ethnicity,
  46. @Default(null) String? preferredUserId,
  47. @Default(null) Uint8List? picture,
  48. @Default(null) String? externalId,
  49. @Default([]) List<EncryptedInsurability> insurabilities,
  50. @Default([]) List<Partnership> partnerships,
  51. @Default([]) List<EncryptedPatientHealthCareParty> patientHealthCareParties,
  52. @Default([]) List<EncryptedFinancialInstitutionInformation> financialInstitutionInformation,
  53. @Default([]) List<EncryptedMedicalHouseContract> medicalHouseContracts,
  54. @Default([]) List<CodeStub> patientProfessions,
  55. @Default({}) Map<String, List<String>> parameters,
  56. @Default({}) Set<EncryptedPropertyStub> properties,
  57. @Default({}) Map<String, List<HexString>> hcPartyKeys,
  58. @Default({}) Map<AesExchangeKeyEntryKeyString, Map<String, Map<AesExchangeKeyEncryptionKeypairIdentifier, HexString>>> aesExchangeKeys,
  59. @Default({}) Map<AesExchangeKeyEncryptionKeypairIdentifier, Map<AesExchangeKeyEncryptionKeypairIdentifier, HexString>> transferKeys,
  60. @Default({}) Map<String, HexString> privateKeyShamirPartitions,
  61. @Default(null) CardinalRsaPublicKey? publicKey,
  62. @Default({}) Set<CardinalRsaPublicKey> publicKeysForOaepWithSha256,
  63. @Default({}) Set<String> secretForeignKeys,
  64. @Default({}) Map<String, Set<Delegation>> cryptedForeignKeys,
  65. @Default({}) Map<String, Set<Delegation>> delegations,
  66. @Default({}) Map<String, Set<Delegation>> encryptionKeys,
  67. @Default(null) Base64String? encryptedSelf,
  68. @Default(null) SecurityMetadata? securityMetadata,
  69. @Default(null) Set<DecryptedPropertyStub>? cryptoActorProperties,
  70. @Default(null) String? medicalLocationId,
  71. @Default({}) Set<String> nonDuplicateIds,
  72. @Default({}) Set<String> encryptedAdministrativesDocuments,
  73. @Default(null) String? comment,
  74. @Default(null) String? warning,
  75. @Default(null) CodeStub? fatherBirthCountry,
  76. @Default(null) CodeStub? birthCountry,
  77. @Default(null) CodeStub? nativeCountry,
  78. @Default(null) CodeStub? socialStatus,
  79. @Default(null) CodeStub? mainSourceOfIncome,
  80. @Default([]) List<EncryptedSchoolingInfo> schoolingInfos,
  81. @Default([]) List<EncryptedEmploymentInfo> employementInfos,
  82. @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;