AllergyIntolerance constructor

AllergyIntolerance({
  1. @JsonKey.new(name: 'ID') String? id,
  2. @JsonKey.new(name: 'Identifier') List<Identifier?>? identifier,
  3. @JsonKey.new(name: 'ClinicalStatus') CodeableConcept? clinicalStatus,
  4. @JsonKey.new(name: 'VerificationStatus') CodeableConcept? verificationStatus,
  5. @JsonKey.new(name: 'Type', unknownEnumValue: AllergyIntoleranceTypeEnum.allergy) AllergyIntoleranceTypeEnum? type,
  6. @JsonKey.new(name: 'Category', unknownEnumValue: AllergyIntoleranceCategoryEnum.environment) List<AllergyIntoleranceCategoryEnum?>? category,
  7. @JsonKey.new(name: 'Criticality', unknownEnumValue: AllergyIntoleranceCriticalityEnum.unable_to_assess) AllergyIntoleranceCriticalityEnum? criticality,
  8. @JsonKey.new(name: 'Code') CodeableConcept? code,
  9. @JsonKey.new(name: 'Patient') Reference? patient,
  10. @JsonKey.new(name: 'Encounter') Reference? encounter,
  11. @JsonKey.new(name: 'OnsetDateTime') String? onsetDateTime,
  12. @JsonKey.new(name: 'OnsetAge') Age? onsetAge,
  13. @JsonKey.new(name: 'OnsetPeriod') Period? onsetPeriod,
  14. @JsonKey.new(name: 'OnsetRange') Range? onsetRange,
  15. @JsonKey.new(name: 'OnsetString') String? onsetString,
  16. @JsonKey.new(name: 'RecordedDate') String? recordedDate,
  17. @JsonKey.new(name: 'Recorder') Reference? recorder,
  18. @JsonKey.new(name: 'Asserter') Reference? asserter,
  19. @JsonKey.new(name: 'LastOccurrence') String? lastOccurrence,
  20. @JsonKey.new(name: 'Note') List<Annotation?>? note,
  21. @JsonKey.new(name: 'Reaction') List<AllergyIntoleranceReaction?>? reaction,
})

Implementation

factory AllergyIntolerance({
  @JsonKey(name: 'ID') String? id,

  /// Business identifiers assigned to this AllergyIntolerance by
  ///  the performer or other systems which remain constant as the resource
  ///  is updated and propagates from server to server.
  @JsonKey(name: 'Identifier') List<Identifier?>? identifier,

  /// The clinical status of the allergy or intolerance.
  @JsonKey(name: 'ClinicalStatus') CodeableConcept? clinicalStatus,

  /// Assertion about certainty associated with the propensity, or
  ///  potential risk, of a reaction to the identified substance
  ///  (including pharmaceutical product).
  @JsonKey(name: 'VerificationStatus') CodeableConcept? verificationStatus,

  /// Identification of the underlying physiological mechanism for the reaction risk
  @JsonKey(name: 'Type', unknownEnumValue: AllergyIntoleranceTypeEnum.allergy)
      AllergyIntoleranceTypeEnum? type,

  /// Category of the identified substance.
  @JsonKey(name: 'Category', unknownEnumValue: AllergyIntoleranceCategoryEnum.environment)
      List<AllergyIntoleranceCategoryEnum?>? category,

  /// Estimate of the potential clinical harm, or seriousness, of the
  ///  reaction to the identified substance.
  @JsonKey(name: 'Criticality', unknownEnumValue: AllergyIntoleranceCriticalityEnum.unable_to_assess)
      AllergyIntoleranceCriticalityEnum? criticality,

  /// Code for an allergy or intolerance statement
  ///  (either a positive or a negated/excluded statement).
  ///
  /// This may be a code for a substance or pharmaceutical product that is considered to
  ///  be responsible for the adverse reaction risk (e.g., "Latex"), an
  ///  allergy or intolerance condition (e.g., "Latex allergy"), or a
  ///  negated/excluded code for a specific substance or class (e.g., "No
  ///  latex allergy") or a general or categorical negated statement (e.g.,
  ///  "No known allergy", "No known drug allergies"). Note: the substance
  ///  for a specific reaction may be different from the substance identified
  ///  as the cause of the risk, but it must be consistent with it. For
  ///  instance, it may be a more specific substance (e.g. a brand medication)
  ///  or a composite product that includes the identified substance. It must
  ///  be clinically safe to only process the 'code' and ignore the
  ///  'reaction.substance'. If a receiving system is unable to confirm that
  ///  AllergyIntolerance.reaction.substance falls within the semantic scope
  ///  of AllergyIntolerance.code, then the receiving system should ignore
  ///  AllergyIntolerance.reaction.substance
  @JsonKey(name: 'Code') CodeableConcept? code,

  /// The patient who has the allergy or intolerance.
  @JsonKey(name: 'Patient') Reference? patient,

  /// The encounter when the allergy or intolerance was asserted.
  @JsonKey(name: 'Encounter') Reference? encounter,

  /// Estimated or actual date, date-time, or age when allergy or intolerance
  ///  was identified.
  @JsonKey(name: 'OnsetDateTime') String? onsetDateTime,
  @JsonKey(name: 'OnsetAge') Age? onsetAge,
  @JsonKey(name: 'OnsetPeriod') Period? onsetPeriod,
  @JsonKey(name: 'OnsetRange') Range? onsetRange,
  @JsonKey(name: 'OnsetString') String? onsetString,

  /// The recordedDate represents when this particular AllergyIntolerance
  ///  record was created in the system, which is often a system-generated date.
  @JsonKey(name: 'RecordedDate') String? recordedDate,

  /// Individual who recorded the record and takes responsibility for its content.
  @JsonKey(name: 'Recorder') Reference? recorder,

  /// The source of the information about the allergy that is recorded
  @JsonKey(name: 'Asserter') Reference? asserter,

  /// Represents the date and/or time of the last known occurrence of a reaction event.
  @JsonKey(name: 'LastOccurrence') String? lastOccurrence,

  /// Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.
  @JsonKey(name: 'Note') List<Annotation?>? note,

  /// Details about each adverse reaction event linked to exposure to the
  ///  identified substance.
  @JsonKey(name: 'Reaction') List<AllergyIntoleranceReaction?>? reaction,
}) = _AllergyIntolerance;