{
  "resourceType": "StructureDefinition",
  "id": "2b9770fc-3a7a-402d-8b83-c5db802079db",
  "meta": {
    "lastUpdated": "2020-03-11T09:59:15.113+00:00"
  },
  "url": "http://example.org/fhir/StructureDefinition/MyComposition",
  "name": "MyComposition",
  "status": "draft",
  "date": "2020-03-11T09:59:14.0665219+00:00",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "fhirdocumentreference",
      "uri": "http://hl7.org/fhir/documentreference",
      "name": "FHIR DocumentReference"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Composition.identifier",
        "path": "Composition.identifier",
        "min": 1
      },
      {
        "id": "Composition.identifier.use",
        "path": "Composition.identifier.use",
        "max": "0"
      },
      {
        "id": "Composition.identifier.type",
        "path": "Composition.identifier.type",
        "max": "0"
      },
      {
        "id": "Composition.identifier.system",
        "path": "Composition.identifier.system",
        "max": "0"
      },
      {
        "id": "Composition.identifier.value",
        "path": "Composition.identifier.value",
        "min": 1
      },
      {
        "id": "Composition.identifier.period",
        "path": "Composition.identifier.period",
        "max": "0"
      },
      {
        "id": "Composition.identifier.assigner",
        "path": "Composition.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Composition.subject",
        "path": "Composition.subject",
        "min": 1
      },
      {
        "id": "Composition.subject.reference",
        "path": "Composition.subject.reference",
        "min": 1
      },
      {
        "id": "Composition.subject.type",
        "path": "Composition.subject.type",
        "max": "0"
      },
      {
        "id": "Composition.subject.identifier",
        "path": "Composition.subject.identifier",
        "max": "0"
      },
      {
        "id": "Composition.subject.display",
        "path": "Composition.subject.display",
        "max": "0"
      },
      {
        "id": "Composition.encounter.reference",
        "path": "Composition.encounter.reference",
        "min": 1
      },
      {
        "id": "Composition.encounter.type",
        "path": "Composition.encounter.type",
        "max": "0"
      },
      {
        "id": "Composition.encounter.identifier",
        "path": "Composition.encounter.identifier",
        "max": "0"
      },
      {
        "id": "Composition.encounter.display",
        "path": "Composition.encounter.display",
        "max": "0"
      },
      {
        "id": "Composition.author.reference",
        "path": "Composition.author.reference",
        "min": 1
      },
      {
        "id": "Composition.author.type",
        "path": "Composition.author.type",
        "max": "0"
      },
      {
        "id": "Composition.author.identifier",
        "path": "Composition.author.identifier",
        "max": "0"
      },
      {
        "id": "Composition.author.display",
        "path": "Composition.author.display",
        "max": "0"
      },
      {
        "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.event",
        "path": "Composition.event",
        "max": "0"
      },
      {
        "id": "Composition.section.title",
        "path": "Composition.section.title",
        "min": 1
      },
      {
        "id": "Composition.section.code",
        "path": "Composition.section.code",
        "min": 1
      },
      {
        "id": "Composition.section.code.coding",
        "path": "Composition.section.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Composition.section.code.coding.system",
        "path": "Composition.section.code.coding.system",
        "max": "0"
      },
      {
        "id": "Composition.section.code.coding.version",
        "path": "Composition.section.code.coding.version",
        "max": "0"
      },
      {
        "id": "Composition.section.code.coding.code",
        "path": "Composition.section.code.coding.code",
        "min": 1
      },
      {
        "id": "Composition.section.code.coding.display",
        "path": "Composition.section.code.coding.display",
        "min": 1
      },
      {
        "id": "Composition.section.code.coding.userSelected",
        "path": "Composition.section.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Composition.section.code.text",
        "path": "Composition.section.code.text",
        "min": 1
      },
      {
        "id": "Composition.section.mode",
        "path": "Composition.section.mode",
        "min": 1,
        "fixedCode": "snapshot"
      },
      {
        "id": "Composition.section.orderedBy",
        "path": "Composition.section.orderedBy",
        "min": 1
      },
      {
        "id": "Composition.section.orderedBy.coding",
        "path": "Composition.section.orderedBy.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Composition.section.orderedBy.coding.system",
        "path": "Composition.section.orderedBy.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/list-order"
      },
      {
        "id": "Composition.section.orderedBy.coding.version",
        "path": "Composition.section.orderedBy.coding.version",
        "max": "0"
      },
      {
        "id": "Composition.section.orderedBy.coding.code",
        "path": "Composition.section.orderedBy.coding.code",
        "min": 1,
        "fixedCode": "The list was sorted by the system. The criteria the user used are not specified; define additional codes to specify a particular order (or use other defined codes)."
      },
      {
        "id": "Composition.section.orderedBy.coding.display",
        "path": "Composition.section.orderedBy.coding.display",
        "min": 1,
        "fixedString": "Sorted by System"
      },
      {
        "id": "Composition.section.orderedBy.coding.userSelected",
        "path": "Composition.section.orderedBy.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Composition.section.orderedBy.text",
        "path": "Composition.section.orderedBy.text",
        "max": "0"
      },
      {
        "id": "Composition.section.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1
      },
      {
        "id": "Composition.section.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section.section",
        "path": "Composition.section.section",
        "max": "0"
      }
    ]
  }
}