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? asNeeded,
  13. @JsonKey(name: '_asNeeded') Element? asNeededElement,
  14. List<CodeableConcept>? asNeededFor,
  15. CodeableConcept? site,
  16. CodeableConcept? route,
  17. CodeableConcept? method,
  18. List<DosageDoseAndRate>? doseAndRate,
  19. List<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_ ("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 managable, 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 managable, 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 ("_sequence") Extensions for sequence

text Free text dosage instructions e.g. SIG.

textElement ("_text") 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 ("_patientInstruction") Extensions for patientInstruction

timing When medication should be administered.

asNeeded Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option).

asNeededElement ("_asNeeded") Extensions for asNeeded

asNeededFor Indicates whether the Medication is only taken based on a precondition for taking the Medication (CodeableConcept).

site Body site to administer to.

route How drug should enter body.

method Technique for administering medication.

doseAndRate Depending on the resource,this is the amount of medication administered, to be administered or typical amount to be 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_] ("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 managable, 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 managable, 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] ("_sequence") Extensions for sequence
  @JsonKey(name: '_sequence') Element? sequenceElement,

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

  /// [textElement] ("_text") 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] ("_patientInstruction") Extensions for
  ///  patientInstruction
  @JsonKey(name: '_patientInstruction') Element? patientInstructionElement,

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

  /// [asNeeded] Indicates whether the Medication is only taken when needed
  ///  within a specific dosing schedule (Boolean option).
  FhirBoolean? asNeeded,

  /// [asNeededElement] ("_asNeeded") Extensions for asNeeded
  @JsonKey(name: '_asNeeded') Element? asNeededElement,

  /// [asNeededFor] Indicates whether the Medication is only taken based on a
  ///  precondition for taking the Medication (CodeableConcept).
  List<CodeableConcept>? asNeededFor,

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

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

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

  /// [doseAndRate] Depending on the resource,this is the amount of
  ///  medication administered, to  be administered or typical amount to be
  ///  administered.
  List<DosageDoseAndRate>? doseAndRate,

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

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

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