{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.graphnethealth.com/STU3/StructureDefinition/Observation",
  "version": "1.0.0",
  "name": "Observation",
  "title": "Observation",
  "status": "draft",
  "date": "2020-11-23",
  "publisher": "Graphnet Health",
  "contact": [
    {
      "name": "Product Team",
      "telecom": [
        {
          "system": "email",
          "value": "product@graphnethealth.com",
          "use": "work"
        }
      ]
    }
  ],
  "purpose": "Used to represent Observations within the context of Graphnet Health",
  "copyright": "Copyright 2020 Graphnet Health",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Mapping"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.info/sct",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "max": "0"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "fixedCode": "final"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "max": "0"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "comment": "At least one code should be supplied. \r\nA maximum of two is allowed to support local codes.\r\nIf two codes are supplied, one must be a SNOMED code.",
        "min": 1,
        "max": "2"
      },
      {
        "id": "Observation.subject.display",
        "path": "Observation.subject.display",
        "max": "0"
      },
      {
        "id": "Observation.context",
        "path": "Observation.context",
        "max": "0"
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "max": "1"
      },
      {
        "id": "Observation.performer.reference",
        "path": "Observation.performer.reference",
        "max": "0"
      },
      {
        "id": "Observation.performer.identifier",
        "path": "Observation.performer.identifier",
        "max": "0"
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.valueQuantity",
        "sliceName": "valueQuantity",
        "short": "Actual result.",
        "type": [
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/StructureDefinition/Quantity"
          }
        ]
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "https://fhir.graphnethealth.com/STU3/ValueSet/Observation-Interpretation"
          }
        }
      },
      {
        "id": "Observation.interpretation.coding",
        "path": "Observation.interpretation.coding",
        "max": "1"
      },
      {
        "id": "Observation.comment",
        "path": "Observation.comment",
        "comment": "Limited to 1000 bytes.",
        "maxLength": 1000
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "1"
      },
      {
        "id": "Observation.referenceRange.type",
        "path": "Observation.referenceRange.type",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.appliesTo",
        "path": "Observation.referenceRange.appliesTo",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.age",
        "path": "Observation.referenceRange.age",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.text",
        "path": "Observation.referenceRange.text",
        "max": "0"
      },
      {
        "id": "Observation.related.type",
        "path": "Observation.related.type",
        "max": "0"
      },
      {
        "id": "Observation.related.target.reference",
        "path": "Observation.related.target.reference",
        "max": "0"
      },
      {
        "id": "Observation.related.target.identifier.use",
        "path": "Observation.related.target.identifier.use",
        "max": "0"
      },
      {
        "id": "Observation.related.target.identifier.type",
        "path": "Observation.related.target.identifier.type",
        "max": "0"
      },
      {
        "id": "Observation.related.target.identifier.period",
        "path": "Observation.related.target.identifier.period",
        "max": "0"
      },
      {
        "id": "Observation.related.target.identifier.assigner",
        "path": "Observation.related.target.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}