ObservationReferenceRange constructor

ObservationReferenceRange({
  1. Quantity? low,
  2. Quantity? high,
  3. CodeableConcept? type,
  4. FixedList<CodeableConcept>? appliesTo,
  5. Range? age,
  6. String? text,
})

Constructs a new ObservationReferenceRange with optional low, high, type, appliesTo, age, and text.

Implementation

ObservationReferenceRange({
  Quantity? low,
  Quantity? high,
  CodeableConcept? type,
  FixedList<CodeableConcept>? appliesTo,
  Range? age,
  String? text,
}) : this.fromJson(
        JsonObject({
          if (low != null) lowField.name: low.json,
          if (high != null) highField.name: high.json,
          if (type != null) typeField.name: type.json,
          if (appliesTo != null)
            appliesToField.name:
                JsonArray.unmodifiable(appliesTo.map((e) => e.json)),
          if (age != null) ageField.name: age.json,
          if (text != null) textField.name: JsonString(text),
        }),
      );