{
  "resourceType": "StructureDefinition",
  "id": "c7d41d17-c307-4b39-be2a-58bdb725fab4",
  "meta": {
    "lastUpdated": "2017-09-19T09:36:59.01+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "oo"
    }
  ],
  "url": "http://helse-nord.no/FHIR/profiles/Diagnostics.Observation/LabObservation",
  "version": "1.0",
  "name": "LabObservation",
  "title": "LabObservation",
  "status": "draft",
  "date": "2017-11-30",
  "publisher": "Helse Nord IKT",
  "description": "LabObservation",
  "purpose": "Profile on observation results LAB",
  "fhirVersion": "3.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "comment": "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc.  Other resources are used to provide context for observations such as lab reports, etc.\r\nend of comment section."
      },
      {
        "id": "Observation.extension",
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.extension:RequesterSigningStatus",
        "path": "Observation.extension",
        "sliceName": "RequesterSigningStatus",
        "definition": "DIPS: describes if the lab result has been signed by the requester in DIPS",
        "type": [
          {
            "code": "Extension",
            "profile": "http://helse-nord.no/FHIR/profiles/Extension.RequesterSigningStatus"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSetUri": "http://dips.no/fhir/observation/requester-signing-status"
        }
      },
      {
        "id": "Observation.identifier.use",
        "path": "Observation.identifier.use",
        "max": "0"
      },
      {
        "id": "Observation.identifier.type",
        "path": "Observation.identifier.type",
        "max": "0"
      },
      {
        "id": "Observation.identifier.system",
        "path": "Observation.identifier.system",
        "short": "DIPS: OID for DIPS lab result id",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.9038.62"
      },
      {
        "id": "Observation.identifier.value",
        "path": "Observation.identifier.value",
        "short": "DIPS: lab result id",
        "min": 1
      },
      {
        "id": "Observation.identifier.period",
        "path": "Observation.identifier.period",
        "max": "0"
      },
      {
        "id": "Observation.identifier.assigner",
        "path": "Observation.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "max": "0"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "max": "0"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.code.coding:Nlk_code",
        "path": "Observation.code.coding",
        "sliceName": "Nlk_code",
        "short": "DIPS: NLK code",
        "max": "1"
      },
      {
        "id": "Observation.code.coding:Nlk_code.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "urn:oid:2.16.578.1.12.4.1.1.7280"
      },
      {
        "id": "Observation.code.coding:Nlk_code.version",
        "path": "Observation.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.code.coding:Nlk_code.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.code.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.code.coding:Nlk_code.userSelected",
        "path": "Observation.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.code.coding:DIPS_Analysis_code_id",
        "path": "Observation.code.coding",
        "sliceName": "DIPS_Analysis_code_id",
        "short": "DIPS: internal anaylsis code id",
        "max": "1"
      },
      {
        "id": "Observation.code.coding:DIPS_Analysis_code_id.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "urn:oid:1.3.6.1.4.1.9038.61.1"
      },
      {
        "id": "Observation.code.coding:DIPS_Analysis_code_id.version",
        "path": "Observation.code.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.code.coding:DIPS_Analysis_code_id.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.code.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.code.coding:DIPS_Analysis_code_id.userSelected",
        "path": "Observation.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.code.text",
        "short": "Analysis long name"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://helse-nord.no/FHIR/profiles/Clinical.Patient/Patient",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Observation.context",
        "path": "Observation.context",
        "max": "0"
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "max": "0"
      },
      {
        "id": "Observation.issued",
        "path": "Observation.issued",
        "max": "0"
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "max": "0"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "type": [
          {
            "code": "Quantity"
          },
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.interpretation.coding.system",
        "path": "Observation.interpretation.coding.system",
        "fixedUri": "http://hl7.org/fhir/ValueSet/observation-interpretation"
      },
      {
        "id": "Observation.interpretation.coding.version",
        "path": "Observation.interpretation.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.interpretation.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.interpretation.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.interpretation.coding.userSelected",
        "path": "Observation.interpretation.coding.userSelected",
        "max": "0"
      },
      {
        "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.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.related.type",
        "path": "Observation.related.type",
        "min": 1
      },
      {
        "id": "Observation.related.target",
        "path": "Observation.related.target",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://helse-nord.no/FHIR/profiles/Diagnostics.Lab/Observation",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}