Dosage constructor

const Dosage({
  1. @JsonKey(name: 'id') String? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. List<FhirExtension>? modifierExtension,
  4. FhirInteger? sequence,
  5. @JsonKey(name: '_sequence') Element? sequenceElement,
  6. String? text,
  7. @JsonKey(name: '_text') Element? textElement,
  8. List<CodeableConcept>? additionalInstruction,
  9. String? patientInstruction,
  10. @JsonKey(name: '_patientInstruction') Element? patientInstructionElement,
  11. Timing? timing,
  12. FhirBoolean? asNeededBoolean,
  13. @JsonKey(name: '_asNeededBoolean') Element? asNeededBooleanElement,
  14. CodeableConcept? asNeededCodeableConcept,
  15. CodeableConcept? site,
  16. CodeableConcept? route,
  17. CodeableConcept? method,
  18. List<DosageDoseAndRate>? doseAndRate,
  19. Ratio? maxDosePerPeriod,
  20. Quantity? maxDosePerAdministration,
  21. Quantity? maxDosePerLifetime,
})

Dosage Indicates how the medication is/was taken or should be taken by the patient.

id Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

extension_ May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

modifierExtension May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

sequence Indicates the order in which the dosage instructions should be applied or interpreted.

sequenceElement Extensions for sequence

text Free text dosage instructions e.g. SIG.

textElement Extensions for text

additionalInstruction Supplemental instructions to the patient on how to take the medication (e.g. "with meals" or"take half to one hour before food") or warnings for the patient about the medication (e.g. "may cause drowsiness" or "avoid exposure of skin to direct sunlight or sunlamps").

patientInstruction Instructions in terms that are understood by the patient or consumer.

patientInstructionElement Extensions for patientInstruction

timing When medication should be administered.

asNeededBoolean Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).

asNeededBooleanElement Extensions for asNeededBoolean

asNeededCodeableConcept Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).

site Body site to administer to.

route How drug should enter body.

method Technique for administering medication.

doseAndRate The amount of medication administered.

maxDosePerPeriod Upper limit on medication per unit of time.

maxDosePerAdministration Upper limit on medication per administration.

maxDosePerLifetime Upper limit on medication per lifetime of the patient.

Implementation

const factory Dosage({
  /// [id] Unique id for the element within a resource (for internal
  ///  references). This may be any string value that does not contain spaces.
  @JsonKey(name: 'id') String? fhirId,

  /// [extension_] May be used to represent additional information that is not
  /// part of the basic definition of the element. To make the use of extensions
  /// safe and manageable, there is a strict set of governance  applied to the
  /// definition and use of extensions. Though any implementer can define an
  /// extension, there is a set of requirements that SHALL be met as part of the
  ///  definition of the extension.
  @JsonKey(name: 'extension') List<FhirExtension>? extension_,

  /// [modifierExtension] May be used to represent additional information that
  /// is not part of the basic definition of the element and that modifies the
  /// understanding of the element in which it is contained and/or the
  /// understanding of the containing element's descendants. Usually modifier
  /// elements provide negation or qualification. To make the use of extensions
  /// safe and manageable, there is a strict set of governance applied to the
  /// definition and use of extensions. Though any implementer can define an
  /// extension, there is a set of requirements that SHALL be met as part of the
  /// definition of the extension. Applications processing a resource are
  ///  required to check for modifier extensions.
  /// Modifier extensions SHALL NOT change the meaning of any elements on
  /// Resource or DomainResource (including cannot change the meaning of
  ///  modifierExtension itself).
  List<FhirExtension>? modifierExtension,

  /// [sequence] Indicates the order in which the dosage instructions should be
  ///  applied or interpreted.
  FhirInteger? sequence,

  /// [sequenceElement] Extensions for sequence
  @JsonKey(name: '_sequence') Element? sequenceElement,

  /// [text] Free text dosage instructions e.g. SIG.
  String? text,

  /// [textElement] Extensions for text
  @JsonKey(name: '_text') Element? textElement,

  /// [additionalInstruction] Supplemental instructions to the patient on how
  /// to take the medication  (e.g. "with meals" or"take half to one hour before
  /// food") or warnings for the patient about the medication (e.g. "may cause
  ///  drowsiness" or "avoid exposure of skin to direct sunlight or sunlamps").
  List<CodeableConcept>? additionalInstruction,

  /// [patientInstruction] Instructions in terms that are understood by the
  ///  patient or consumer.
  String? patientInstruction,

  /// [patientInstructionElement] Extensions for patientInstruction
  @JsonKey(name: '_patientInstruction') Element? patientInstructionElement,

  /// [timing] When medication should be administered.
  Timing? timing,

  /// [asNeededBoolean] Indicates whether the Medication is only taken when
  /// needed within a specific dosing schedule (Boolean option), or it indicates
  ///  the precondition for taking the Medication (CodeableConcept).
  FhirBoolean? asNeededBoolean,

  /// [asNeededBooleanElement] Extensions for asNeededBoolean
  @JsonKey(name: '_asNeededBoolean') Element? asNeededBooleanElement,

  /// [asNeededCodeableConcept] Indicates whether the Medication is only taken
  /// when needed within a specific dosing schedule (Boolean option), or it
  ///  indicates the precondition for taking the Medication (CodeableConcept).
  CodeableConcept? asNeededCodeableConcept,

  /// [site] Body site to administer to.
  CodeableConcept? site,

  /// [route] How drug should enter body.
  CodeableConcept? route,

  /// [method] Technique for administering medication.
  CodeableConcept? method,

  /// [doseAndRate] The amount of medication administered.
  List<DosageDoseAndRate>? doseAndRate,

  /// [maxDosePerPeriod] Upper limit on medication per unit of time.
  Ratio? maxDosePerPeriod,

  /// [maxDosePerAdministration] Upper limit on medication per administration.
  Quantity? maxDosePerAdministration,

  /// [maxDosePerLifetime] Upper limit on medication per lifetime of the
  ///  patient.
  Quantity? maxDosePerLifetime,
}) = _Dosage;