{
  "resourceType": "StructureDefinition",
  "id": "example-composition",
  "url": "http://hl7.org/fhir/StructureDefinition/example-composition",
  "name": "DocumentStructure",
  "title": "Document Structure (For testing section templates)",
  "status": "active",
  "experimental": false,
  "date": "2018-11-05T06:47:00+00:00",
  "kind": "complex-type",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Composition",
        "path": "Composition"
      },
      {
        "id": "Composition.section",
        "path": "Composition.section",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "description": "Slice by .section.code",
          "ordered": true,
          "rules": "closed"
        }
      },
      {
        "id": "Composition.section:procedure",
        "path": "Composition.section",
        "sliceName": "procedure",
        "min": 1,
        "type": [
          {
            "code": "BackboneElement",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/document-section-library"
            ],
            "_profile": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element",
                    "valueString": "Composition.section:procedure"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id": "Composition.section:medications",
        "path": "Composition.section",
        "sliceName": "medications",
        "min": 1,
        "type": [
          {
            "code": "BackboneElement",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/document-section-library"
            ],
            "_profile": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element",
                    "valueString": "Composition.section:medications"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id": "Composition.section:plan",
        "path": "Composition.section",
        "sliceName": "plan",
        "min": 0,
        "type": [
          {
            "code": "BackboneElement",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/document-section-library"
            ],
            "_profile": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element",
                    "valueString": "Composition.section:plan"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}