{
  "resourceType": "StructureDefinition",
  "id": "shs-v1",
  "url": "http://hl7.org.au/fhir/StructureDefinition/shs-v1",
  "version": "1.1.0",
  "name": "Shared Health Summary (discussion)",
  "status": "draft",
  "date": "2017-05-02T11:19:08.0657855+00:00",
  "publisher": "Health Level Seven Australia (Patient Administration WG)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org.au",
          "use": "work"
        }
      ]
    }
  ],
  "description": "SHS example",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org.au/fhir/StructureDefinition/base-composition-v1",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "path": "Composition",
        "mapping": [
          {
            "identity": "scs-name",
            "map": "SHARED HEALTH SUMMARY"
          }
        ]
      },
      {
        "path": "Composition.type",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "60591-5",
              "display": "Patient Summary"
            }
          ]
        },
        "mapping": [
          {
            "identity": "scs-name",
            "map": "Document Type"
          }
        ]
      },
      {
        "path": "Composition.title",
        "defaultValueString": "Shared Health Summary",
        "fixedString": "Shared Health Summary"
      },
      {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Composition.section:adverse-reactions",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "adverse-reactions",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "scs-name",
            "map": "ADVERSE REACTIONS"
          }
        ]
      },
      {
        "path": "Composition.section.title",
        "short": "Adverse Reactions",
        "min": 1,
        "fixedString": "Adverse Reactions"
      },
      {
        "path": "Composition.section.code",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://ns.electronichealth.net.au/ci/dc",
              "code": "101.20113",
              "display": "Adverse Reactions"
            }
          ]
        }
      },
      {
        "path": "Composition.section.code.coding",
        "max": "1"
      },
      {
        "path": "Composition.section.text",
        "min": 1
      },
      {
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "scs-name",
            "map": "ADVERSE REACTION"
          }
        ]
      },
      {
        "path": "Composition.section.emptyReason",
        "mapping": [
          {
            "identity": "scs-name",
            "map": "EXCLUSION STATEMENT - ADVERSE REACTIONS"
          }
        ]
      },
      {
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:medications",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "medications",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "scs-name",
            "map": "Medications (MEDICATION ORDERS)"
          }
        ]
      },
      {
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Medications"
      },
      {
        "path": "Composition.section.code",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "code": "101.16146",
              "display": "Medication Orders"
            }
          ],
          "text": "Medication Orders"
        }
      },
      {
        "path": "Composition.section.text",
        "min": 1
      },
      {
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "scs-name",
            "map": "Known Medication (MEDICATION INSTRUCTION)"
          }
        ]
      },
      {
        "path": "Composition.section.emptyReason",
        "mapping": [
          {
            "identity": "scs-name",
            "map": "EXCLUSION STATEMENT - MEDICATIONS"
          }
        ]
      },
      {
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:medical-history",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "medical-history",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "scs-name",
            "map": "Past and Current Medical History (MEDICAL HISTORY)"
          }
        ]
      },
      {
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Medical History"
      },
      {
        "path": "Composition.section.code",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://ns.electronichealth.net.au/ci/dc",
              "code": "101.16117",
              "display": "Medical History"
            }
          ]
        }
      },
      {
        "path": "Composition.section.text",
        "min": 1
      },
      {
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Condition",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Procedure",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "scs-name",
            "map": "PROBLEM/DIAGNOSIS"
          },
          {
            "identity": "scs-name",
            "map": "PROCEDURE"
          }
        ]
      },
      {
        "path": "Composition.section.emptyReason",
        "mapping": [
          {
            "identity": "scs-name",
            "map": "EXCLUSION STATEMENT - PROBLEMS AND DIAGNOSES"
          }
        ]
      },
      {
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:immunisations",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "immunisations",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "scs-name",
            "map": "IMMUNISATIONS"
          }
        ]
      },
      {
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Immunisations"
      },
      {
        "path": "Composition.section.code",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://ns.electronichealth.net.au/ci/dc",
              "code": "101.16638",
              "display": "Immunisations"
            }
          ]
        }
      },
      {
        "path": "Composition.section.text",
        "min": 1
      },
      {
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Immunization",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "path": "Composition.section.emptyReason",
        "mapping": [
          {
            "identity": "scs-name",
            "map": "Exclusion Statement - Immunisations (EXCLUSION STATEMENT - MEDICATIONS)"
          }
        ]
      },
      {
        "path": "Composition.section.section",
        "max": "0"
      }
    ]
  }
}