{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-02-16T17:38:24.701+00:00"
  },
  "url": "http://hl7.org/fhir/ips/StructureDefinition/observation-member-pathology-uv-ips",
  "version": "0.2",
  "name": "Observation-member-pathology-uv-ips",
  "title": "Observation (member pathology)",
  "status": "draft",
  "experimental": true,
  "date": "2018-03-21",
  "publisher": "HL7 International",
  "contact": [
    {
      "name": "François Macary - Phast"
    }
  ],
  "description": "This profile constrains the Observation resource to represent a sub-observation, member of an \"organizer\" observation, in the \"pathology results entry of a patient summary",
  "purpose": "This profile constrains the Observation resource to represent a sub-observation member of a grouping observation (for instance a panel). It 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",
        "path": "Observation",
        "short": "pathology simple observation",
        "definition": "Either a  simple observation member of a pathology study containing multiple observations,  or a clinical observation associated with this study, in order to enable the interpretation of this set of observations",
        "comment": "This observation is a member of a multiple observations pathology study."
      },
      {
        "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",
        "definition": "The status of the result value.  Only final results feed patient summaries.",
        "fixedCode": "final"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "definition": "A code that classifies the general type of observation being made, between two categories: \r\na) laboratory observation: \"laboratory\"\r\nb) clinical observation: \"vital-signs\"",
        "comment": "In this profile designed for the IPS, this element distinguishes between observations performed by a laboratory and observations obtained from the ordering party, which are just included in the summary to support the interpretation of the lab observations.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ObservationCategory"
            }
          ],
          "strength": "required",
          "description": "Codes for sub-observation categories",
          "valueSetUri": "http://hl7.org/fhir/ips/ValueSet/sub-observation-category-uv-ips"
        }
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ],
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ObservationCode"
            }
          ],
          "strength": "extensible",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ips/ValueSet/pathology-and-vital-signs-observations"
          }
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.subject.identifier",
        "path": "Observation.subject.identifier",
        "max": "0"
      },
      {
        "id": "Observation.effectiveDateTime:effectiveDateTime",
        "path": "Observation.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "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://hl7.org/fhir/ips/StructureDefinition/organization-laboratory-uv-ips"
          }
        ]
      },
      {
        "id": "Observation.performer.identifier",
        "path": "Observation.performer.identifier",
        "max": "0"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "min": 1,
        "type": [
          {
            "code": "string"
          },
          {
            "code": "Range"
          },
          {
            "code": "Ratio"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          },
          {
            "code": "Quantity",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/Quantity-uv-ips"
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ips/ValueSet/pathology-result-coded-value-uv-ips"
          }
        }
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.interpretation",
        "path": "Observation.interpretation",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": "http://hl7.org/fhir/ips/StructureDefinition/CodeableConcept-uv-ips"
          }
        ]
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "comment": "The specimen is often implied by the observation code. \r\nIn the context of this Observation-member-laboratory-uv-ips profile, specimen should be provided only when it is not implied by the Observation.code, and when further information about the specimen needs to be captured (such as specimen source body site).",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/ips/StructureDefinition/specimen-uv-ips"
          }
        ]
      },
      {
        "id": "Observation.specimen.identifier",
        "path": "Observation.specimen.identifier",
        "max": "0"
      },
      {
        "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"
      }
    ]
  }
}