EHDS openEHR data exchange, published by Ian. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/freshehr/EHDS-openEHR-FHIR-IG/ and changes regularly. See the Directory of published versions
| Draft as of 2026-03-25 |
TTL representation of the CodePhrase logical model.
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
a fhir:StructureDefinition ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "CodePhrase"] ; #
fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition CodePhrase</b></p><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Minimum and Maximum # of times the element can appear in the instance\">Card.</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Additional information about the element\">Description & Constraints</a><span style=\"float: right\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck0.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CodePhrase-definitions.html#CodePhrase\" title=\"openEHR CodePhrase\">CodePhrase</a><a name=\"CodePhrase\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://specifications.openehr.org/releases/RM/Release-1.1.0/data_types.html#_code_phrase_class\">CODE_PHRASE</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">CodePhrase<br/><br/>Elements defined in Ancestors:<a href=\"https://specifications.openehr.org/releases/RM/Release-1.1.0/data_types.html#_code_phrase_class\" title=\"Identifier of the distinct terminology from which the code_string (or its elements) was extracted.\">terminology_id</a>, <a href=\"https://specifications.openehr.org/releases/RM/Release-1.1.0/data_types.html#_code_phrase_class\" title=\"The key used by the terminology service to identify a concept or coordination of concepts. This string is most likely parsable inside the terminology service, but nothing can be assumed about its syntax outside that context. \">code_string</a>, <a href=\"https://specifications.openehr.org/releases/RM/Release-1.1.0/data_types.html#_code_phrase_class\" title=\"Optional attribute to carry preferred term corresponding to the code or expression in `_code_string_`. Typical use in integration situations which create mappings, and representing data for which both a (non-preferred) actual term and a preferred term are both required.\">preferred_term</a></td></tr>#xD;\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"^^rdf:XMLLiteral ]
] ; #
fhir:extension ( [
fhir:url [
fhir:v "http://hl7.org/fhir/tools/StructureDefinition/web-source"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/tools/StructureDefinition/web-source> ] ;
fhir:value [
a fhir:Url ;
fhir:v "https://specifications.openehr.org/releases/RM/Release-1.1.0/data_types.html#_code_phrase_class"^^xsd:anyURI ;
fhir:l <https://specifications.openehr.org/releases/RM/Release-1.1.0/data_types.html#_code_phrase_class> ]
] [
fhir:url [
fhir:v "http://hl7.org/fhir/tools/StructureDefinition/view-hint"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/tools/StructureDefinition/view-hint> ] ;
fhir:value [
a fhir:Code ;
fhir:v "element-view-replace-cardinality" ]
] [
fhir:url [
fhir:v "http://hl7.org/fhir/tools/StructureDefinition/view-hint"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/tools/StructureDefinition/view-hint> ] ;
fhir:value [
a fhir:Code ;
fhir:v "element-view-replace-cardinality" ]
] ) ; #
fhir:url [
fhir:v "https://ianbennett.github.io/ExampleIG_Ian/StructureDefinition/CodePhrase"^^xsd:anyURI ;
fhir:l <https://ianbennett.github.io/ExampleIG_Ian/StructureDefinition/CodePhrase>
] ; #
fhir:version [ fhir:v "0.1.0"] ; #
fhir:name [ fhir:v "DvCodePhrase"] ; #
fhir:status [ fhir:v "draft"] ; #
fhir:date [ fhir:v "2026-03-25T15:55:34+00:00"^^xsd:dateTime] ; #
fhir:publisher [ fhir:v "Ian"] ; #
fhir:contact ( [
fhir:name [ fhir:v "Ian" ] ;
( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://example.org/example-publisher" ] ] )
] ) ; #
fhir:fhirVersion [ fhir:v "4.0.1"] ; #
fhir:mapping ( [
fhir:identity [ fhir:v "rim" ] ;
fhir:uri [
fhir:v "http://hl7.org/v3"^^xsd:anyURI ;
fhir:l <http://hl7.org/v3> ] ;
fhir:name [ fhir:v "RIM Mapping" ]
] ) ; #
fhir:kind [ fhir:v "logical"] ; #
fhir:abstract [ fhir:v false] ; #
fhir:type [
fhir:v "https://ianbennett.github.io/ExampleIG_Ian/StructureDefinition/CodePhrase"^^xsd:anyURI ;
fhir:l <https://ianbennett.github.io/ExampleIG_Ian/StructureDefinition/CodePhrase>
] ; #
fhir:baseDefinition [
fhir:v "http://openehr.org/fhir/StructureDefinition/CODE-PHRASE"^^xsd:anyURI ;
fhir:l <http://openehr.org/fhir/StructureDefinition/CODE-PHRASE>
] ; #
fhir:derivation [ fhir:v "specialization"] ; #
fhir:snapshot [
( fhir:extension [
fhir:url [
fhir:v "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version"^^xsd:anyURI ;
fhir:l <http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version> ] ;
fhir:value [
a fhir:String ;
fhir:v "0.1.0-snapshot" ] ] ) ;
( fhir:element [
fhir:id [ fhir:v "CodePhrase" ] ;
fhir:path [ fhir:v "CodePhrase" ] ;
fhir:short [ fhir:v "CodePhrase" ] ;
fhir:definition [ fhir:v "openEHR CodePhrase" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ;
fhir:base [
fhir:path [ fhir:v "Base" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "*" ] ] ;
( fhir:constraint [
fhir:key [ fhir:v "Code_string_valid" ] ;
fhir:severity [ fhir:v "error" ] ;
fhir:human [ fhir:v "Code string valid must not be empty" ] ;
fhir:expression [ fhir:v "code_string.empty().not()" ] ;
fhir:source [
fhir:v "http://openehr.org/fhir/StructureDefinition/CODE-PHRASE"^^xsd:anyURI ;
fhir:l <http://openehr.org/fhir/StructureDefinition/CODE-PHRASE> ] ] ) ;
fhir:isModifier [ fhir:v false ] ;
( fhir:mapping [
fhir:identity [ fhir:v "rim" ] ;
fhir:map [ fhir:v "n/a" ] ] ) ] [
fhir:id [ fhir:v "CodePhrase.terminology-id" ] ;
fhir:path [ fhir:v "CodePhrase.terminology_id" ] ;
fhir:short [ fhir:v "Identifier of the distinct terminology from which the code_string (or its elements) was extracted." ] ;
fhir:definition [ fhir:v "Identifier of the distinct terminology from which the code_string (or its elements) was extracted." ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "CODE_PHRASE.terminology_id" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ] ;
( fhir:type [
fhir:code [
fhir:v "http://openehr.org/fhir/StructureDefinition/TERMINOLOGY-ID"^^xsd:anyURI ;
fhir:l <http://openehr.org/fhir/StructureDefinition/TERMINOLOGY-ID> ] ] ) ;
fhir:isModifier [ fhir:v false ] ] [
fhir:id [ fhir:v "CodePhrase.code-string" ] ;
fhir:path [ fhir:v "CodePhrase.code_string" ] ;
fhir:short [ fhir:v "The key used by the terminology service to identify a concept or coordination of concepts." ] ;
fhir:definition [ fhir:v "The key used by the terminology service to identify a concept or coordination of concepts. This string is most likely parsable inside the terminology service, but nothing can be assumed about its syntax outside that context." ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "CODE_PHRASE.code_string" ] ;
fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ] ;
( fhir:type [
fhir:code [
fhir:v "string"^^xsd:anyURI ;
fhir:l fhir:string ] ] ) ;
fhir:isModifier [ fhir:v false ] ] [
fhir:id [ fhir:v "CodePhrase.preferred-term" ] ;
fhir:path [ fhir:v "CodePhrase.preferred_term" ] ;
fhir:short [ fhir:v "Optional attribute to carry preferred term corresponding to the code or expression in `_code_string_`." ] ;
fhir:definition [ fhir:v "Optional attribute to carry preferred term corresponding to the code or expression in `_code_string_`. Typical use in integration situations which create mappings, and representing data for which both a (non-preferred) actual term and a preferred term are both required." ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ;
fhir:base [
fhir:path [ fhir:v "CODE_PHRASE.preferred_term" ] ;
fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
fhir:max [ fhir:v "1" ] ] ;
( fhir:type [
fhir:code [
fhir:v "string"^^xsd:anyURI ;
fhir:l fhir:string ] ] ) ;
fhir:isModifier [ fhir:v false ] ] )
] ; #
fhir:differential [
( fhir:element [
fhir:id [ fhir:v "CodePhrase" ] ;
fhir:path [ fhir:v "CodePhrase" ] ;
fhir:short [ fhir:v "CodePhrase" ] ;
fhir:definition [ fhir:v "openEHR CodePhrase" ] ] )
] . #
IG © 2026+ Ian. Package openehr.ehds.fhir.dataexchange#0.1.0 based on FHIR 4.0.1. Generated 2026-03-25
The Xt-EHR action is co-funded by the European Union, EU4Health Program 2021-2027, under Grant Agreement Nr.ยบ 101128085.