This page is part of the Structured Data Capture FHIR IG (v2.7.0: STU 3 Ballot 2) based on FHIR R4. The current version which supercedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions
JSON representation of the sdc-usagecontext Profile.
{ "resourceType" : "StructureDefinition", "id" : "sdc-usagecontext", "text" : { "status" : "generated", "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><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 : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Minimum and Maximum # of times the the element can appear in the instance\">Card.</a></th><th style=\"width: 100px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Additional information about the element\">Description & Constraints</a><span style=\"float: right\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Legend for this format\"><img src=\"http://hl7.org/fhir/R4/help16.png\" 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 : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.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=\"sdc-usagecontext-definitions.html#UsageContext\" title=\"null\">UsageContext</a><a name=\"UsageContext\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span><span style=\"padding-left: 3px; padding-right: 3px; color: black; background-color: white\" title=\"This element has or is affected by some invariants\">I</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"font-weight:bold\">sdc-uc-1: </span>If code is gender, focus, user, venue or species, value must be CodeableConcept. If code is age, value must be Range. If code is workflow, task or program, value must be CodeableConcept or Reference</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.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=\"sdc-usagecontext-definitions.html#UsageContext.code\" title=\"null\">code</a><a name=\"UsageContext.code\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.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=\"sdc-usagecontext-definitions.html#UsageContext.value[x]\" title=\"null\">value[x]</a><a name=\"UsageContext.value_x_\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.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=\"sdc-usagecontext-definitions.html#UsageContext.valueCoding\" title=\"null\">valueCoding</a><a name=\"UsageContext.valueCoding\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.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=\"sdc-usagecontext-definitions.html#UsageContext.valueCoding.system\" title=\"null\">system</a><a name=\"UsageContext.valueCoding.system\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.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=\"sdc-usagecontext-definitions.html#UsageContext.valueCoding.code\" title=\"null\">code</a><a name=\"UsageContext.valueCoding.code\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.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=\"sdc-usagecontext-definitions.html#UsageContext.valueRange\" title=\"null\">valueRange</a><a name=\"UsageContext.valueRange\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.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=\"sdc-usagecontext-definitions.html#UsageContext.valueRange.low\" title=\"null\">low</a><a name=\"UsageContext.valueRange.low\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white;\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.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=\"sdc-usagecontext-definitions.html#UsageContext.valueRange.high\" title=\"null\">high</a><a name=\"UsageContext.valueRange.high\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Legend for this format\"><img src=\"http://hl7.org/fhir/R4/help16.png\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>" }, "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-usagecontext", "version" : "2.7.0", "name" : "SDCUsageContext", "title" : "SDC Usage Context", "status" : "draft", "date" : "2019-03-15T21:02:49+11:00", "description" : "Constraints on the codes and values of UsageContext to help ensure consistent usage in SDC Questionnaires", "fhirVersion" : "4.0.0", "mapping" : [ { "identity" : "rim", "uri" : "http://hl7.org/v3", "name" : "RIM Mapping" } ], "kind" : "complex-type", "abstract" : false, "type" : "UsageContext", "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/UsageContext", "derivation" : "constraint", "snapshot" : { "element" : [ { "id" : "UsageContext", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode" : "trial-use" } ], "path" : "UsageContext", "short" : "Describes the context of use for a conformance or knowledge resource", "definition" : "Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care).", "min" : 0, "max" : "*", "base" : { "path" : "UsageContext", "min" : 0, "max" : "*" }, "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() or (children().count() > id.count())", "xpath" : "@value|f:*|h:div", "source" : "Element" }, { "key" : "sdc-uc-1", "severity" : "error", "human" : "If code is gender, focus, user, venue or species, value must be CodeableConcept. If code is age, value must be Range. If code is workflow, task or program, value must be CodeableConcept or Reference", "expression" : "code.system!='http://terminology.hl7.org/CodeSystem/usage-context-type' or (((code.code='gender' or code.code='focus' or code.code='user' or code.code='venue' or code.code='species') implies value.exists() and value is CodeableConcept) and (code.code='age' implies value.exists() and value is Range) ((code.code='workflow' or code.code='task' or code.code='program') implies (value.exists() and (value is CodeableConcept or value is Reference))))", "xpath" : "not(f:code/:system='http://terminology.hl7.org/CodeSystem/usage-context-type') or ((not(f:code/f:code=('gender', 'focus', 'user', 'venue', 'species')) or exists(f:valueCodeableConcept) and (not(f:code/f:code='age') or exists(f:valueRange) and (not(f:code/f:code=('workflow', 'task', 'program')) or exists(f:valueCodeableConcept)or exists(f:valueReference))" } ], "mustSupport" : true, "isModifier" : false, "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "UsageContext.id", "path" : "UsageContext.id", "representation" : [ "xmlAttr" ], "short" : "Unique id for inter-element referencing", "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "isModifier" : false, "isSummary" : false, "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "UsageContext.extension", "path" : "UsageContext.extension", "slicing" : { "discriminator" : [ { "type" : "value", "path" : "url" } ], "description" : "Extensions are always sliced by (at least) url", "rules" : "open" }, "short" : "Additional content defined by implementations", "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias" : [ "extensions", "user content" ], "min" : 0, "max" : "*", "base" : { "path" : "Element.extension", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Extension" } ], "isModifier" : false, "isSummary" : false, "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "UsageContext.code", "path" : "UsageContext.code", "short" : "Type of context being specified", "definition" : "A code that identifies the type of context being specified by this usage context.", "min" : 1, "max" : "1", "base" : { "path" : "UsageContext.code", "min" : 1, "max" : "1" }, "type" : [ { "code" : "Coding" } ], "mustSupport" : true, "isModifier" : false, "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "UsageContextType" } ], "strength" : "extensible", "description" : "A code that specifies a type of context being specified by a usage context.", "valueSet" : "http://hl7.org/fhir/ValueSet/usage-context-type" } }, { "id" : "UsageContext.value[x]", "path" : "UsageContext.value[x]", "short" : "Value that defines the context", "definition" : "A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.", "min" : 1, "max" : "1", "base" : { "path" : "UsageContext.value[x]", "min" : 1, "max" : "1" }, "type" : [ { "code" : "CodeableConcept" }, { "code" : "Quantity" }, { "code" : "Range" }, { "code" : "Reference", "targetProfile" : [ "http://hl7.org/fhir/StructureDefinition/PlanDefinition", "http://hl7.org/fhir/StructureDefinition/ResearchStudy", "http://hl7.org/fhir/StructureDefinition/InsurancePlan", "http://hl7.org/fhir/StructureDefinition/HealthcareService", "http://hl7.org/fhir/StructureDefinition/Group", "http://hl7.org/fhir/StructureDefinition/Location", "http://hl7.org/fhir/StructureDefinition/Organization" ] } ], "mustSupport" : true, "isModifier" : false, "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "UsageContextValue" } ], "strength" : "example", "description" : "A code that defines the specific value for the context being specified.", "valueSet" : "http://hl7.org/fhir/ValueSet/use-context" } }, { "id" : "UsageContext.value[x]", "path" : "UsageContext.value[x]", "short" : "Value that defines the context", "definition" : "A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.", "min" : 1, "max" : "1", "base" : { "path" : "UsageContext.value[x]", "min" : 1, "max" : "1" }, "type" : [ { "code" : "Coding" } ], "mustSupport" : true, "isModifier" : false, "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "UsageContextValue" } ], "strength" : "example", "description" : "A code that defines the specific value for the context being specified.", "valueSet" : "http://hl7.org/fhir/ValueSet/use-context" } }, { "id" : "UsageContext.value[x].id", "path" : "UsageContext.value[x].id", "representation" : [ "xmlAttr" ], "short" : "Unique id for inter-element referencing", "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "isModifier" : false, "isSummary" : false, "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "UsageContext.value[x].extension", "path" : "UsageContext.value[x].extension", "slicing" : { "discriminator" : [ { "type" : "value", "path" : "url" } ], "description" : "Extensions are always sliced by (at least) url", "rules" : "open" }, "short" : "Additional content defined by implementations", "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias" : [ "extensions", "user content" ], "min" : 0, "max" : "*", "base" : { "path" : "Element.extension", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Extension" } ], "isModifier" : false, "isSummary" : false, "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "UsageContext.value[x].system", "path" : "UsageContext.value[x].system", "short" : "Identity of the terminology system", "definition" : "The identification of the code system that defines the meaning of the symbol in the code.", "comment" : "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.", "requirements" : "Need to be unambiguous about the source of the definition of the symbol.", "min" : 0, "max" : "1", "base" : { "path" : "Coding.system", "min" : 0, "max" : "1" }, "type" : [ { "code" : "uri" } ], "mustSupport" : true, "isModifier" : false, "isSummary" : true, "mapping" : [ { "identity" : "v2", "map" : "C*E.3" }, { "identity" : "rim", "map" : "./codeSystem" }, { "identity" : "orim", "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" } ] }, { "id" : "UsageContext.value[x].version", "path" : "UsageContext.value[x].version", "short" : "Version of the system - if relevant", "definition" : "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.", "comment" : "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.", "min" : 0, "max" : "1", "base" : { "path" : "Coding.version", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "isModifier" : false, "isSummary" : true, "mapping" : [ { "identity" : "v2", "map" : "C*E.7" }, { "identity" : "rim", "map" : "./codeSystemVersion" }, { "identity" : "orim", "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" } ] }, { "id" : "UsageContext.value[x].code", "path" : "UsageContext.value[x].code", "short" : "Symbol in syntax defined by the system", "definition" : "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).", "requirements" : "Need to refer to a particular code in the system.", "min" : 0, "max" : "1", "base" : { "path" : "Coding.code", "min" : 0, "max" : "1" }, "type" : [ { "code" : "code" } ], "mustSupport" : true, "isModifier" : false, "isSummary" : true, "mapping" : [ { "identity" : "v2", "map" : "C*E.1" }, { "identity" : "rim", "map" : "./code" }, { "identity" : "orim", "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" } ] }, { "id" : "UsageContext.value[x].display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "UsageContext.value[x].display", "short" : "Representation defined by the system", "definition" : "A representation of the meaning of the code in the system, following the rules of the system.", "requirements" : "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.", "min" : 0, "max" : "1", "base" : { "path" : "Coding.display", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "isModifier" : false, "isSummary" : true, "mapping" : [ { "identity" : "v2", "map" : "C*E.2 - but note this is not well followed" }, { "identity" : "rim", "map" : "CV.displayName" }, { "identity" : "orim", "map" : "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" } ] }, { "id" : "UsageContext.value[x].userSelected", "path" : "UsageContext.value[x].userSelected", "short" : "If this coding was chosen directly by the user", "definition" : "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).", "comment" : "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.", "requirements" : "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.", "min" : 0, "max" : "1", "base" : { "path" : "Coding.userSelected", "min" : 0, "max" : "1" }, "type" : [ { "code" : "boolean" } ], "isModifier" : false, "isSummary" : true, "mapping" : [ { "identity" : "v2", "map" : "Sometimes implied by being first" }, { "identity" : "rim", "map" : "CD.codingRationale" }, { "identity" : "orim", "map" : "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]" } ] }, { "id" : "UsageContext.value[x]", "path" : "UsageContext.value[x]", "short" : "Value that defines the context", "definition" : "A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.", "min" : 1, "max" : "1", "base" : { "path" : "UsageContext.value[x]", "min" : 1, "max" : "1" }, "type" : [ { "code" : "Range" } ], "mustSupport" : true, "isModifier" : false, "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "UsageContextValue" } ], "strength" : "example", "description" : "A code that defines the specific value for the context being specified.", "valueSet" : "http://hl7.org/fhir/ValueSet/use-context" } }, { "id" : "UsageContext.value[x].id", "path" : "UsageContext.value[x].id", "representation" : [ "xmlAttr" ], "short" : "Unique id for inter-element referencing", "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "isModifier" : false, "isSummary" : false, "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "UsageContext.value[x].extension", "path" : "UsageContext.value[x].extension", "slicing" : { "discriminator" : [ { "type" : "value", "path" : "url" } ], "description" : "Extensions are always sliced by (at least) url", "rules" : "open" }, "short" : "Additional content defined by implementations", "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "alias" : [ "extensions", "user content" ], "min" : 0, "max" : "*", "base" : { "path" : "Element.extension", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Extension" } ], "isModifier" : false, "isSummary" : false, "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "UsageContext.value[x].low", "path" : "UsageContext.value[x].low", "short" : "Low limit", "definition" : "The low limit. The boundary is inclusive.", "comment" : "If the low element is missing, the low boundary is not known.", "min" : 0, "max" : "1", "base" : { "path" : "Range.low", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Quantity", "profile" : [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ] } ], "mustSupport" : true, "isModifier" : false, "isSummary" : true, "mapping" : [ { "identity" : "v2", "map" : "NR.1" }, { "identity" : "rim", "map" : "./low" } ] }, { "id" : "UsageContext.value[x].high", "path" : "UsageContext.value[x].high", "short" : "High limit", "definition" : "The high limit. The boundary is inclusive.", "comment" : "If the high element is missing, the high boundary is not known.", "min" : 0, "max" : "1", "base" : { "path" : "Range.high", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Quantity", "profile" : [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ] } ], "mustSupport" : true, "isModifier" : false, "isSummary" : true, "mapping" : [ { "identity" : "v2", "map" : "NR.2" }, { "identity" : "rim", "map" : "./high" } ] } ] }, "differential" : { "element" : [ { "id" : "UsageContext", "path" : "UsageContext", "constraint" : [ { "key" : "sdc-uc-1", "severity" : "error", "human" : "If code is gender, focus, user, venue or species, value must be CodeableConcept. If code is age, value must be Range. If code is workflow, task or program, value must be CodeableConcept or Reference", "expression" : "code.system!='http://terminology.hl7.org/CodeSystem/usage-context-type' or (((code.code='gender' or code.code='focus' or code.code='user' or code.code='venue' or code.code='species') implies value.exists() and value is CodeableConcept) and (code.code='age' implies value.exists() and value is Range) ((code.code='workflow' or code.code='task' or code.code='program') implies (value.exists() and (value is CodeableConcept or value is Reference))))", "xpath" : "not(f:code/:system='http://terminology.hl7.org/CodeSystem/usage-context-type') or ((not(f:code/f:code=('gender', 'focus', 'user', 'venue', 'species')) or exists(f:valueCodeableConcept) and (not(f:code/f:code='age') or exists(f:valueRange) and (not(f:code/f:code=('workflow', 'task', 'program')) or exists(f:valueCodeableConcept)or exists(f:valueReference))" } ], "mustSupport" : true }, { "id" : "UsageContext.code", "path" : "UsageContext.code", "mustSupport" : true }, { "id" : "UsageContext.value[x]", "path" : "UsageContext.value[x]", "mustSupport" : true }, { "id" : "UsageContext.valueCoding", "path" : "UsageContext.valueCoding", "mustSupport" : true }, { "id" : "UsageContext.valueCoding.system", "path" : "UsageContext.valueCoding.system", "mustSupport" : true }, { "id" : "UsageContext.valueCoding.code", "path" : "UsageContext.valueCoding.code", "mustSupport" : true }, { "id" : "UsageContext.valueRange", "path" : "UsageContext.valueRange", "mustSupport" : true }, { "id" : "UsageContext.valueRange.low", "path" : "UsageContext.valueRange.low", "mustSupport" : true }, { "id" : "UsageContext.valueRange.high", "path" : "UsageContext.valueRange.high", "mustSupport" : true } ] } }