SMIS Observation profile

Logical URI: http://smis.ch/fhir/StructureDefinition/Observation

Base Profile

The profile builds on Observation

identifierΣ0..*Identifier
basedOnΣ I0..*Reference(CarePlan | DeviceRequest | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ProcedureRequest | ReferralRequest)
statusΣ ?!1..1codeBinding
category0..*CodeableConceptBinding
codeΣ1..1CodeableConcept
subjectΣ I0..1Reference(Patient | Group | Device | Location)
contextI0..1Reference(Encounter | EpisodeOfCare)
effectiveDateTimedateTime
effectivePeriodPeriod
issuedΣ0..1instant
performerΣ I0..*Reference(Practitioner | Organization | Patient | RelatedPerson)
valueQuantityQuantity
valueCodeableConceptCodeableConcept
valueStringstring
valueBooleanboolean
valueRangeRange
valueRatioRatio
valueSampledDataSampledData
valueAttachmentAttachment
valueTimetime
valueDateTimedateTime
valuePeriodPeriod
dataAbsentReasonI0..1CodeableConceptBinding
interpretation0..1CodeableConceptBinding
comment0..1string
bodySite0..1CodeableConcept
method0..1CodeableConcept
specimenI0..1Reference(Specimen)
deviceI0..1Reference(Device | DeviceMetric)
lowI0..1SimpleQuantity
highI0..1SimpleQuantity
type0..1CodeableConceptBinding
appliesTo0..*CodeableConcept
ageI0..1Range
text0..1string
type0..1codeBinding
targetI1..1Reference(Observation | QuestionnaireResponse | Sequence)
codeΣ1..1CodeableConcept
valueQuantityQuantity
valueCodeableConceptCodeableConcept
valueStringstring
valueRangeRange
valueRatioRatio
valueSampledDataSampledData
valueAttachmentAttachment
valueTimetime
valueDateTimedateTime
valuePeriodPeriod
dataAbsentReasonI0..1CodeableConceptBinding
interpretation0..1CodeableConceptBinding
referenceRange0..*see (referenceRange)

Differential table

identifierΣ0..*Identifier
basedOnΣ I0..*Reference(CarePlan | DeviceRequest | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ProcedureRequest | ReferralRequest)
statusΣ ?!1..1codeBindingFixed Value
category1..*CodeableConceptBinding
codeΣ1..1CodeableConcept
subjectΣ I0..1Reference(SMIS Patient Profile)
contextI0..1Reference(Encounter | EpisodeOfCare)
effectiveDateTimeΣ0..1dateTime
issuedΣ0..1instant
performerΣ I0..*Reference(Practitioner | Organization | Patient | RelatedPerson)
valueQuantityQuantity
valueStringstring
dataAbsentReasonI0..1CodeableConceptBinding
interpretation0..1CodeableConceptBinding
comment0..1string
bodySite0..1CodeableConcept
method0..1CodeableConcept
specimenI0..1Reference(Specimen)
deviceI0..1Reference(Device | DeviceMetric)
lowI0..1SimpleQuantity
highI0..1SimpleQuantity
type0..1CodeableConceptBinding
appliesTo0..*CodeableConcept
ageI0..1Range
text0..1string
type0..1codeBinding
targetI1..1Reference(SMIS Related Observation Profile)
codeΣ1..1CodeableConcept
valueQuantityQuantity
valueCodeableConceptCodeableConcept
valueStringstring
valueRangeRange
valueRatioRatio
valueSampledDataSampledData
valueAttachmentAttachment
valueTimetime
valueDateTimedateTime
valuePeriodPeriod
dataAbsentReasonI0..1CodeableConceptBinding
interpretation0..1CodeableConceptBinding
referenceRange0..*see (referenceRange)

Structure Definition

<StructureDefinition xmlns="http://hl7.org/fhir">
    <id value="Observation" />
    <meta>
        <versionId value="1" />
        <lastUpdated value="2018-06-06T09:20:59.933+00:00" />
    </meta>
    <url value="http://smis.ch/fhir/StructureDefinition/Observation" />
    <version value="1.0" />
    <name value="Observation" />
    <title value="SMIS Observation Profile" />
    <status value="draft" />
    <date value="2018-06-06T09:20:56.969Z" />
    <publisher value="Arpage AG" />
    <contact>
        <name value="Patrick Husi" />
        <telecom>
            <system value="email" />
            <value value="patrick.husi@arpage.ch" />
        </telecom>
    </contact>
    <description value="SMIS Observation Profile" />
    <fhirVersion value="3.0.1" />
    <kind value="resource" />
    <abstract value="false" />
    <type value="Observation" />
    <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
    <derivation value="constraint" />
    <differential>
        <element id="Observation.status">
            <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint">
                <valueString value="default: final" />
            </extension>
            <path value="Observation.status" />
            <fixedCode value="final" />
        </element>
        <element id="Observation.category">
            <path value="Observation.category" />
            <min value="1" />
            <binding>
                <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
                    <valueString value="ObservationCategory" />
                </extension>
                <strength value="required" />
                <valueSetReference>
                    <reference value="http://smis.ch/fhir/ValueSet/observation-category" />
                </valueSetReference>
            </binding>
        </element>
        <element id="Observation.subject">
            <path value="Observation.subject" />
            <type>
                <code value="Reference" />
                <targetProfile value="http://smis.ch/fhir/StructureDefinition/Patient" />
                <aggregation value="referenced" />
            </type>
            <constraint>
                <key value="smis-obs-1" />
                <severity value="error" />
                <human value="Either reference or identifier should be present" />
                <expression value="reference.exists() or identifier.exists()" />
                <xpath value="exists(f:reference) or exists(f:identifier)" />
            </constraint>
        </element>
        <element id="Observation.effective[x]:effectiveDateTime">
            <path value="Observation.effectiveDateTime" />
            <sliceName value="effectiveDateTime" />
            <type>
                <code value="dateTime" />
            </type>
        </element>
        <element id="Observation.value[x]">
            <path value="Observation.value[x]" />
            <type>
                <code value="Quantity" />
            </type>
            <type>
                <code value="string" />
            </type>
        </element>
        <element id="Observation.related.target">
            <path value="Observation.related.target" />
            <type>
                <code value="Reference" />
                <targetProfile value="http://smis.ch/fhir/StructureDefinition/RelatedObservation" />
                <aggregation value="contained" />
            </type>
        </element>
    </differential>
</StructureDefinition>

Observation example

{
    "resourceType": "Observation",
    "id": "1481125339402581",
    "meta": {
        "lastUpdated": "2016-12-07T16:42:19.000+01:00"
    },
    "identifier":  [
        {
            "use": "usual",
            "system": "http://smis.ch/fhir/element/internal_id",
            "value": "1481125339402581"
        },
        {
            "use": "usual",
            "system": "http://smis.ch/fhir/element/external_id",
            "value": "2AEA46DF-D05A-4013-B489-9D491DC264E2"
        }
    ],
    "status": "final",
    "category":  [
        {
            "coding":  [
                {
                    "system": "http://smis.ch/fhir/CodeSystem/smis-observation-category-codes",
                    "code": "open-type",
                    "display": "Open Type"
                }
            ]
        }
    ],
    "code": {
        "coding":  [
            {
                "system": "http://smis.ch/fhir/types/open",
                "code": "nursing-report",
                "display": "Pflegebericht"
            }
        ]
    },
    "subject": {
        "reference": "Patient/1481029607447122"
    },
    "effectiveDateTime": "2016-12-07T00:00:00+01:00",
    "valueString": "Bitte die Medikamente nachruesten."
}