Observation constructor
Observation({
- String? id,
- Meta? meta,
- FixedList<
Identifier> ? identifier, - FixedList<
Reference> ? basedOn, - FixedList<
Reference> ? partOf, - String? status,
- FixedList<
CodeableConcept> ? category, - CodeableConcept? code,
- Reference? subject,
- Reference? encounter,
- DateTime? effectiveDateTime,
- Period? effectivePeriod,
- Timing? effectiveTiming,
- DateTime? effectiveInstant,
- DateTime? issued,
- Quantity? valueQuantity,
- CodeableConcept? valueCodeableConcept,
- String? valueString,
- bool? valueBoolean,
- int? valueInteger,
- Range? valueRange,
- Ratio? valueRatio,
- SampledData? valueSampledData,
- Time? valueTime,
- DateTime? valueDateTime,
- Period? valuePeriod,
- CodeableConcept? dataAbsentReason,
- FixedList<
CodeableConcept> ? interpretation, - FixedList<
Annotation> ? note, - CodeableConcept? bodySite,
- CodeableConcept? method,
- Reference? specimen,
- Reference? device,
- FixedList<
ObservationReferenceRange> ? referenceRange, - FixedList<
Reference> ? hasMember, - FixedList<
Reference> ? derivedFrom, - FixedList<
ObservationComponent> ? component, - FixedList<
CodeableReference> ? complicatedBy, - FixedList<
CodeableReference> ? contextOfUse,
Constructs a new Observation.
Implementation
Observation({
String? id,
Meta? meta,
FixedList<Identifier>? identifier,
FixedList<Reference>? basedOn,
FixedList<Reference>? partOf,
String? status,
FixedList<CodeableConcept>? category,
CodeableConcept? code,
Reference? subject,
Reference? encounter,
DateTime? effectiveDateTime,
Period? effectivePeriod,
Timing? effectiveTiming,
DateTime? effectiveInstant,
DateTime? issued,
Quantity? valueQuantity,
CodeableConcept? valueCodeableConcept,
String? valueString,
bool? valueBoolean,
int? valueInteger,
Range? valueRange,
Ratio? valueRatio,
SampledData? valueSampledData,
Time? valueTime,
DateTime? valueDateTime,
Period? valuePeriod,
CodeableConcept? dataAbsentReason,
FixedList<CodeableConcept>? interpretation,
FixedList<Annotation>? note,
CodeableConcept? bodySite,
CodeableConcept? method,
Reference? specimen,
Reference? device,
FixedList<ObservationReferenceRange>? referenceRange,
FixedList<Reference>? hasMember,
FixedList<Reference>? derivedFrom,
FixedList<ObservationComponent>? component,
FixedList<CodeableReference>? complicatedBy,
FixedList<CodeableReference>? contextOfUse,
}) : super._internal(
JsonObject({
if (id != null) Resource.idField.name: JsonString(id),
if (meta != null) Resource.metaField.name: meta.json,
if (identifier != null)
identifierField.name:
JsonArray.unmodifiable(identifier.map((e) => e.json)),
if (basedOn != null)
basedOnField.name:
JsonArray.unmodifiable(basedOn.map((e) => e.json)),
if (partOf != null)
partOfField.name:
JsonArray.unmodifiable(partOf.map((e) => e.json)),
if (status != null) statusField.name: JsonString(status),
if (category != null)
categoryField.name:
JsonArray.unmodifiable(category.map((e) => e.json)),
if (code != null) codeField.name: code.json,
if (subject != null) subjectField.name: subject.json,
if (encounter != null) encounterField.name: encounter.json,
if (effectiveDateTime != null)
effectiveDateTimeField.name:
JsonString(effectiveDateTime.toIso8601String()),
if (effectivePeriod != null)
effectivePeriodField.name: effectivePeriod.json,
if (effectiveTiming != null)
effectiveTimingField.name: effectiveTiming.json,
if (effectiveInstant != null)
effectiveInstantField.name:
JsonString(effectiveInstant.toIso8601String()),
if (issued != null)
issuedField.name: JsonString(issued.toIso8601String()),
if (valueQuantity != null)
valueQuantityField.name: valueQuantity.json,
if (valueCodeableConcept != null)
valueCodeableConceptField.name: valueCodeableConcept.json,
if (valueString != null)
valueStringField.name: JsonString(valueString),
if (valueBoolean != null)
valueBooleanField.name: JsonBoolean(valueBoolean),
if (valueInteger != null)
valueIntegerField.name: JsonNumber(valueInteger),
if (valueRange != null) valueRangeField.name: valueRange.json,
if (valueRatio != null) valueRatioField.name: valueRatio.json,
if (valueSampledData != null)
valueSampledDataField.name: valueSampledData.json,
if (valueTime != null)
valueTimeField.name: JsonString(valueTime.toString()),
if (valueDateTime != null)
valueDateTimeField.name:
JsonString(valueDateTime.toIso8601String()),
if (valuePeriod != null) valuePeriodField.name: valuePeriod.json,
if (dataAbsentReason != null)
dataAbsentReasonField.name: dataAbsentReason.json,
if (interpretation != null)
interpretationField.name:
JsonArray.unmodifiable(interpretation.map((e) => e.json)),
if (note != null)
noteField.name: JsonArray.unmodifiable(note.map((e) => e.json)),
if (bodySite != null) bodySiteField.name: bodySite.json,
if (method != null) methodField.name: method.json,
if (specimen != null) specimenField.name: specimen.json,
if (device != null) deviceField.name: device.json,
if (referenceRange != null)
referenceRangeField.name:
JsonArray.unmodifiable(referenceRange.map((e) => e.json)),
if (hasMember != null)
hasMemberField.name:
JsonArray.unmodifiable(hasMember.map((e) => e.json)),
if (derivedFrom != null)
derivedFromField.name:
JsonArray.unmodifiable(derivedFrom.map((e) => e.json)),
if (component != null)
componentField.name:
JsonArray.unmodifiable(component.map((e) => e.json)),
if (complicatedBy != null)
complicatedByField.name:
JsonArray.unmodifiable(complicatedBy.map((e) => e.json)),
if (contextOfUse != null)
contextOfUseField.name:
JsonArray.unmodifiable(contextOfUse.map((e) => e.json)),
}),
);