{
  "resourceType": "StructureDefinition",
  "id": "c5cd4fd0-5d9d-41e2-aae3-3fe246536687",
  "meta": {
    "lastUpdated": "2018-07-17T11:22:43.07+00:00"
  },
  "url": "https://simplifier.net/orca/omservicecomposition",
  "name": "OMServiceComposition",
  "status": "draft",
  "date": "2018-07-17T11:22:42.893+00:00",
  "description": "To extend the service request by some necessary properties like patient's size and weight, this composition is used.",
  "purpose": "There are no fields in the service request which describe our needs.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Composition",
        "path": "Composition",
        "short": "A set of properties used for the service",
        "definition": "A set of healthcare-related information that is assembled together into a single logical document. It consists of body height and weight, mobility and pregnancy status. It is used for the Agfa OrderManager to extend the service request.",
        "comment": "This composition will be extended soon by further properties"
      },
      {
        "id": "Composition.status",
        "path": "Composition.status",
        "definition": "The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document. In relation the the Order Manager, there is just the status final in use",
        "comment": "-",
        "requirements": "-",
        "fixedCode": "final"
      },
      {
        "id": "Composition.type",
        "path": "Composition.type",
        "short": "Additional service properties",
        "definition": "Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). It is a set of healthcare-related information that is assembled together into a single logical document. It consists of body height and weight, mobility and pregnancy status. It is used for the Agfa OrderManager to extend the service request.",
        "comment": "-",
        "requirements": "-",
        "fixedCodeableConcept": {
          "text": "Additional service properties"
        }
      },
      {
        "id": "Composition.class",
        "path": "Composition.class",
        "max": "0"
      },
      {
        "id": "Composition.subject",
        "path": "Composition.subject",
        "short": "Patient relation of the properties",
        "definition": "The properties of this composition are both service and patient related. So in this case there is a link to the patient.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "Composition.encounter",
        "path": "Composition.encounter",
        "max": "0"
      },
      {
        "id": "Composition.author",
        "path": "Composition.author",
        "short": "Who authored the composition",
        "comment": "-",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          }
        ]
      },
      {
        "id": "Composition.title",
        "path": "Composition.title",
        "comment": "-",
        "fixedString": "Additional order data"
      },
      {
        "id": "Composition.confidentiality",
        "path": "Composition.confidentiality",
        "max": "0"
      },
      {
        "id": "Composition.attester",
        "path": "Composition.attester",
        "max": "0"
      },
      {
        "id": "Composition.custodian",
        "path": "Composition.custodian",
        "max": "0"
      },
      {
        "id": "Composition.relatesTo",
        "path": "Composition.relatesTo",
        "max": "0"
      },
      {
        "id": "Composition.relatesTo.code",
        "path": "Composition.relatesTo.code",
        "fixedCode": "appends"
      },
      {
        "id": "Composition.relatesTo.target[x]:targetReference",
        "path": "Composition.relatesTo.targetReference",
        "sliceName": "targetReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
          }
        ]
      },
      {
        "id": "Composition.event",
        "path": "Composition.event",
        "max": "0"
      },
      {
        "id": "Composition.section",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "title"
            }
          ],
          "rules": "open"
        },
        "short": "sections collectiong the order properties"
      },
      {
        "id": "Composition.section:bodyHeight",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "bodyHeight",
        "short": "Patient's size",
        "definition": "Patient's size"
      },
      {
        "id": "Composition.section:bodyHeight.title",
        "path": "Composition.section.title",
        "short": "Patient's size",
        "definition": "Patient's size in cm",
        "fixedString": "bodyHeight"
      },
      {
        "id": "Composition.section:bodyHeight.code",
        "path": "Composition.section.code",
        "code": [
          {
            "system": "http://loinc.org",
            "code": "3137-7"
          }
        ]
      },
      {
        "id": "Composition.section:bodyWeight",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "bodyWeight",
        "short": "Patient's weight",
        "definition": "Patient's weight"
      },
      {
        "id": "Composition.section:bodyWeight.title",
        "path": "Composition.section.title",
        "short": "Patient's weight in kg",
        "fixedString": "bodyWeight"
      },
      {
        "id": "Composition.section:bodyWeight.code",
        "path": "Composition.section.code",
        "code": [
          {
            "system": "http://loinc.org",
            "code": "3141-9"
          }
        ]
      },
      {
        "id": "Composition.section:Mobility",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "Mobility",
        "short": "Mobility",
        "definition": "Mobility"
      },
      {
        "id": "Composition.section:Mobility.title",
        "path": "Composition.section.title",
        "short": "Mobility",
        "definition": "Mobility"
      },
      {
        "id": "Composition.section:Mobility.code",
        "path": "Composition.section.code",
        "fixedCodeableConcept": {
          "text": "walk|wheelchair|bed"
        }
      },
      {
        "id": "Composition.section:Mobility.text",
        "path": "Composition.section.text",
        "short": "Mobility of Patient"
      },
      {
        "id": "Composition.section:PregnancyStatus",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "PregnancyStatus",
        "short": "PregnancyStatus",
        "definition": "PregnancyStatus"
      },
      {
        "id": "Composition.section:PregnancyStatus.title",
        "path": "Composition.section.title",
        "short": "PregnancyStatus",
        "fixedString": "PregnancyStatus"
      },
      {
        "id": "Composition.section:PregnancyStatus.code",
        "path": "Composition.section.code",
        "code": [
          {
            "system": "http://loinc.org",
            "code": "11449-6"
          }
        ],
        "short": "PregnancyStatus",
        "definition": "1...Pregnant, 2...Not pregnant, 3...Unknown"
      },
      {
        "id": "Composition.section:Infectivity",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "Infectivity",
        "short": "Infectivity",
        "definition": "Infectivity"
      },
      {
        "id": "Composition.section:Infectivity.title",
        "path": "Composition.section.title",
        "short": "Infectivity",
        "definition": "Infectivity",
        "fixedString": "Infectivity"
      },
      {
        "id": "Composition.section:RiskFactor",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "RiskFactor",
        "short": "Risk factor",
        "definition": "Risk factor"
      },
      {
        "id": "Composition.section:RiskFactor.title",
        "path": "Composition.section.title",
        "short": "Risk factor",
        "definition": "Risk factor"
      }
    ]
  }
}