hack observation for change

This commit is contained in:
Grahame Grieve 2023-03-11 18:54:35 +11:00
parent 957e9fe7cc
commit 571c170e13
1 changed files with 1 additions and 1 deletions

View File

@ -2768,7 +2768,7 @@ Reflex | Repeat | Re-run.
* @param value {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
public Observation setValue(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof CodeableConcept || value instanceof MarkdownType || value instanceof BooleanType || value instanceof IntegerType || value instanceof Range || value instanceof Ratio || value instanceof SampledData || value instanceof TimeType || value instanceof DateTimeType || value instanceof Period || value instanceof Attachment || value instanceof Reference || value instanceof CanonicalType))
if (value != null && !(value instanceof Quantity || value instanceof CodeableConcept || value instanceof StringType || value instanceof BooleanType || value instanceof IntegerType || value instanceof Range || value instanceof Ratio || value instanceof SampledData || value instanceof TimeType || value instanceof DateTimeType || value instanceof Period || value instanceof Attachment || value instanceof Reference || value instanceof CanonicalType))
throw new FHIRException("Not the right type for Observation.value[x]: "+value.fhirType());
this.value = value;
return this;