{ "description": "Profiled Narrative data type, designed to support the translation of the narratives", "_filename": "StructureDefinition-narrative-uv-ips.json", "package_name": "hl7.fhir.uv.ips", "date": "2018-03-08T14:31:40.32+01:00", "derivation": "constraint", "meta": { "lastUpdated": "2018-03-08T14:42:45.507+01:00" }, "publisher": null, "fhirVersion": "3.5.0", "jurisdiction": [ { "coding": [ { "code": "001", "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", "display": "World" } ] } ], "name": "Narrative-uv-ips", "mapping": [ { "uri": "http://hl7.org/v3", "name": "RIM Mapping", "identity": "rim" } ], "abstract": false, "type": "Narrative", "experimental": null, "resourceType": "StructureDefinition", "title": null, "package_version": "0.2.0", "snapshot": { "element": [ { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "Narrative", "min": 0, "definition": "A human-readable formatted text, including images.", "isModifier": false, "short": "A human-readable formatted text, including images", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "max": "*", "id": "Narrative", "condition": [ "ele-1" ], "base": { "max": "*", "min": 0, "path": "Narrative" } }, { "path": "Narrative.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "xml:id (or equivalent in JSON)", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "representation": [ "xmlAttr" ], "max": "1", "id": "Narrative.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "path": "Narrative.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "Narrative.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Narrative.extension", "min": 0, "definition": "Optional Extension Element - found in all resources.", "isModifier": false, "short": "Translated Narrative", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/ips/StructureDefinition/translateddiv-uv-ips" ] } ], "sliceName": "translatedDiv", "max": "*", "id": "Narrative.extension:translatedDiv", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "Narrative.status", "min": 1, "definition": "The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data.", "isModifier": false, "short": "generated | extensions | additional | empty", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "code" } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/narrative-status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "NarrativeStatus" } ], "description": "The status of a resource narrative." }, "max": "1", "id": "Narrative.status", "base": { "max": "1", "min": 1, "path": "Narrative.status" }, "isSummary": false }, { "constraint": [ { "key": "txt-1", "human": "The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, elements (either name or href), images and internally contained style attributes", "xpath": "not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])", "severity": "error", "expression": "htmlChecks()" }, { "key": "txt-2", "human": "The narrative SHALL have some non-whitespace content", "xpath": "descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]", "severity": "error", "expression": "htmlChecks()" } ], "path": "Narrative.div", "min": 1, "definition": "The actual narrative content, a stripped down version of XHTML.", "isModifier": false, "short": "Limited xhtml content", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "xhtml" } ], "max": "1", "id": "Narrative.div", "comment": "The contents of the html element are an XHTML fragment containing only the basic html formatting elements described in chapters 7-11 and 15 of the HTML 4.0 standard, elements (either name or href), images and internally contained stylesheets. The XHTML content SHALL NOT contain a head, a body, external stylesheet references, scripts, forms, base/link/xlink, frames, iframes and objects.", "base": { "max": "1", "min": 1, "path": "Narrative.div" }, "isSummary": false } ] }, "status": "draft", "id": "9e3257c6-68e2-4eb9-b61b-df03ef1c7607", "kind": "complex-type", "url": "http://hl7.org/fhir/uv/ips/StructureDefinition/narrative-uv-ips", "version": "0.2.0", "differential": { "element": [ { "id": "Narrative", "path": "Narrative" }, { "id": "Narrative.extension", "path": "Narrative.extension", "slicing": { "rules": "open", "discriminator": [ { "path": "url", "type": "value" } ] } }, { "id": "Narrative.extension:translatedDiv", "max": "*", "min": 0, "path": "Narrative.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/uv/ips/StructureDefinition/translateddiv-uv-ips" ] } ], "short": "Translated Narrative", "sliceName": "translatedDiv", "definition": "Optional Extension Element - found in all resources." } ] }, "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Narrative" }