{
  "resourceType": "StructureDefinition",
  "id": "ncdhc-composition-base-cdhr",
  "url": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-composition-base-cdhr",
  "version": "r1.0.0",
  "name": "CDHRBaseCompositionProfile",
  "title": "CDHR Base Composition",
  "status": "draft",
  "date": "2019-03-01",
  "publisher": "National Children's Digital Health Collaborative (NCDHC)",
  "description": "This profile is used to represent CDHR Base Composition profile.",
  "purpose": "Define CDHR Base Composition pfofile for all document types",
  "copyright": "Copyright © 2019 Australian Digital Health Agency - All rights reserved. This content is licensed under a Creative Commons Attribution 4.0 International License. See https://creativecommons.org/licenses/by/4.0/",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org.au/fhir/StructureDefinition/au-composition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Composition",
        "path": "Composition",
        "short": "CHDR Base Composition Profile"
      },
      {
        "id": "Composition.type",
        "path": "Composition.type",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ch/v1/ValueSet/ncdhc-document-type-1"
          }
        }
      },
      {
        "id": "Composition.class",
        "path": "Composition.class",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ch/v1/ValueSet/ncdhc-document-class-1"
          }
        }
      },
      {
        "id": "Composition.subject",
        "path": "Composition.subject",
        "short": "Reference to the NCDHC Patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-patient-baby"
          }
        ]
      },
      {
        "id": "Composition.encounter",
        "path": "Composition.encounter",
        "short": "Provides the details on venue, organization and person who is clinically responsible for the encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-encounter"
          }
        ]
      },
      {
        "id": "Composition.author",
        "path": "Composition.author",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-device"
          }
        ]
      },
      {
        "id": "Composition.attester",
        "path": "Composition.attester",
        "min": 1
      },
      {
        "id": "Composition.attester.party",
        "path": "Composition.attester.party",
        "short": "An organisation/practitioner/patient (consumer document) who has attested to the accuracy of the composition/document.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-patient",
            "aggregation": [
              "bundled"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-practitioner",
            "aggregation": [
              "bundled"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-organisation",
            "aggregation": [
              "bundled"
            ]
          }
        ]
      }
    ]
  }
}