{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-02-16T17:38:24.701+00:00"
  },
  "url": "http://trilliumbridge.eu/fhir/StructureDefinition/observation-member-laboratory-uv-trillium2",
  "version": "0.1",
  "name": "Observation-member-laboratory-uv-trillium2",
  "status": "draft",
  "experimental": true,
  "date": "2018-02-09T21:11:33.131+00:00",
  "publisher": "Trillium II",
  "contact": [
    {
      "name": "François Macary - Phast"
    }
  ],
  "description": "This profile constrains the Observation resource to represent a sub-observation, member of a grouping observation, in the \"Laboratory results\" entry of a patient summary",
  "purpose": "This sub-observation member of a grouping observation (for instance a panel), can be either a the result of a laboratory observation or a vital sign observation, which helps to interpret the set of results of the grouping observation",
  "fhirVersion": "3.0.1",
  "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",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
            "valueString": "default: final"
          }
        ],
        "path": "Observation.status",
        "fixedCode": "final"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "min": 1,
        "max": "1",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ObservationCategory"
            }
          ],
          "strength": "required",
          "valueSetUri": "http://trilliumbridge.eu/fhir/ValueSet/sub-observation-category"
        }
      },
      {
        "id": "Observation.category.coding",
        "path": "Observation.category.coding",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "either a laboratory result or a vital sign",
          "valueSetUri": "http://trilliumbridge.eu/fhir/ValueSet/sub-observation-category"
        }
      },
      {
        "id": "Observation.category.coding.userSelected",
        "path": "Observation.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ObservationCode"
            }
          ],
          "strength": "example",
          "valueSetUri": "http://trilliumbridge.eu/fhir/ValueSet/laboratory- and-vital-signs-observations"
        }
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "extensible",
          "valueSetUri": "http://trilliumbridge.eu/fhir/ValueSet/laboratory- and-vital-signs-observations"
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "Observation.effective[x]:effectiveDateTime",
        "path": "Observation.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://trilliumbridge.eu/fhir/StructureDefinition/organization-laboratory-uv-trillium2",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          },
          {
            "code": "CodeableConcept"
          },
          {
            "code": "string"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "time"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "comment": "Should only be used if not implicitly inferred from the code found in `Observation.code`.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://trilliumbridge.eu/fhir/StructureDefinition/specimen-uv-trillium2",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.type",
        "path": "Observation.referenceRange.type",
        "min": 1
      },
      {
        "id": "Observation.referenceRange.appliesTo",
        "path": "Observation.referenceRange.appliesTo",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange.age",
        "path": "Observation.referenceRange.age",
        "max": "0"
      },
      {
        "id": "Observation.related",
        "path": "Observation.related",
        "max": "0"
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "max": "0"
      }
    ]
  }
}