Example showing how to use Section Level Profiles
{
"resourceType": "StructureDefinition",
"id": "example-composition",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: StructureDefinition</b><a name=\"example-composition\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource StructureDefinition "example-composition" </p></div><p><b>url</b>: <code>http://hl7.org/fhir/StructureDefinition/example-composition</code></p><p><b>identifier</b>: id: urn:oid:2.16.840.1.113883.4.642.5.1040</p><p><b>name</b>: DocumentStructure</p><p><b>title</b>: Document Structure (For testing section templates)</p><p><b>status</b>: active</p><p><b>experimental</b>: false</p><p><b>date</b>: 2018-11-05T17:47:00+11:00</p><p><b>kind</b>: resource</p><p><b>abstract</b>: false</p><p><b>type</b>: <a href=\"composition.html\">Composition</a></p><p><b>baseDefinition</b>: <a href=\"composition.html\">Composition</a></p><p><b>derivation</b>: constraint</p><blockquote><p><b>differential</b></p><blockquote><p><b>element</b></p><p><b>path</b>: Composition</p></blockquote><blockquote><p><b>element</b></p><p><b>path</b>: Composition.section</p></blockquote><blockquote><p><b>element</b></p><p><b>path</b>: Composition.section</p><p><b>sliceName</b>: procedure</p><p><b>min</b>: 1</p></blockquote><blockquote><p><b>element</b></p><p><b>path</b>: Composition.section</p><p><b>sliceName</b>: medications</p><p><b>min</b>: 1</p></blockquote><blockquote><p><b>element</b></p><p><b>path</b>: Composition.section</p><p><b>sliceName</b>: plan</p><p><b>min</b>: 0</p></blockquote></blockquote></div>"
},
"url": "http://hl7.org/fhir/StructureDefinition/example-composition",
"identifier": [
{
"system": "urn:ietf:rfc:3986",
"value": "urn:oid:2.16.840.1.113883.4.642.5.1040"
}
],
"name": "DocumentStructure",
"title": "Document Structure (For testing section templates)",
"status": "active",
"experimental": false,
"date": "2018-11-05T17:47:00+11:00",
"kind": "resource",
"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/example-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/example-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/example-section-library"
],
"_profile": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element",
"valueString": "Composition.section:plan"
}
]
}
]
}
]
}
]
}
}
Usage note: every effort has been made to ensure that the
examples are correct and useful, but they are not a normative part
of the specification.