This page is part of the International Patient Summary Implementation Guide (v0.1.0: STU 1 Ballot 1) based on FHIR R3. The current version which supercedes this version is 1.1.0. For a full list of available versions, see the Directory of published versions
JSON Format: StructureDefinition-specimen-uv-ips
Raw json
{ "resourceType" : "StructureDefinition", "id" : "specimen-uv-ips", "meta" : { "lastUpdated" : "2018-02-10T07:49:57.382+11:00" }, "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/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/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/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/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/formats.html#table" title="Additional information about the element">Description & Constraints</a><span style="float: right"><a href="http://hl7.org/fhir/formats.html#table" title="Legend for this format"><img src="http://hl7.org/fhir/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="StructureDefinition-specimen-uv-ips-definitions.html#Specimen.type" title="null">type</a><a name="Specimen.type"> </a></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">1..</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"><span style="font-weight:bold">Binding: </span><a href="http://hl7.org/ips/fhir/ValueSet/specimen-type">http://hl7.org/ips/fhir/ValueSet/specimen-type</a> (<a href="http://hl7.org/fhir/terminologies.html#extensible" title="To be conformant, the concept in this element SHALL be from the specified value set if any of the codes within the value set can apply to the concept being communicated. If the value set does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.">extensible</a>)</td></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_bck00.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_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-specimen-uv-ips-definitions.html#Specimen.type.coding" title="null">coding</a><a name="Specimen.type.coding"> </a></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"><a href="StructureDefinition-coding-uv-ips.html" title="Coding">coding-uv-ips</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr> <tr><td colspan="5" class="hierarchy"><br/><a href="http://hl7.org/fhir/formats.html#table" title="Legend for this format"><img src="http://hl7.org/fhir/help16.png" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>" }, "url" : "http://hl7.org/fhir/uv/ips/StructureDefinition/specimen-uv-ips", "version" : "0.1.0", "name" : "specimen-uv-ips", "title" : "Specimen", "status" : "draft", "date" : "2018-03-09T00:00:00+11:00", "publisher" : "HL7 International", "contact" : [ { "name" : "François Macary - Phast" } ], "description" : "This profile constrains the Specimen resource to represent the characteristics of a biological specimens in the context of laboratory results integrated to a patient summary", "jurisdiction" : [ { "coding" : [ { "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm", "code" : "001", "display" : "World" } ] } ], "purpose" : "Minimal specimen attributes, usable for the laboratory results section and entry of a patient summary", "fhirVersion" : "3.0.1", "kind" : "resource", "abstract" : false, "type" : "Specimen", "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Specimen", "derivation" : "constraint", "snapshot" : { "element" : [ { "id" : "Specimen", "path" : "Specimen", "short" : "Sample for analysis", "definition" : "A sample to be used for analysis.", "min" : 0, "max" : "*", "base" : { "path" : "Resource", "min" : 0, "max" : "*" }, "constraint" : [ { "key" : "dom-2", "severity" : "error", "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression" : "contained.contained.empty()", "xpath" : "not(parent::f:contained and f:contained)" }, { "key" : "dom-1", "severity" : "error", "human" : "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression" : "contained.text.empty()", "xpath" : "not(parent::f:contained and f:text)" }, { "key" : "dom-4", "severity" : "error", "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" }, { "key" : "dom-3", "severity" : "error", "human" : "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression" : "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath" : "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))" } ], "mapping" : [ { "identity" : "rim", "map" : "Entity. Role, or Act" }, { "identity" : "rim", "map" : "Role[classCode=SPEC]" }, { "identity" : "w5", "map" : "clinical.diagnostics" } ] }, { "id" : "Specimen.id", "path" : "Specimen.id", "short" : "Logical id of this artifact", "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", "min" : 0, "max" : "1", "base" : { "path" : "Resource.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "id" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.meta", "path" : "Specimen.meta", "short" : "Metadata about the resource", "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.", "min" : 0, "max" : "1", "base" : { "path" : "Resource.meta", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Meta" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.implicitRules", "path" : "Specimen.implicitRules", "short" : "A set of rules under which this content was created", "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.", "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.", "min" : 0, "max" : "1", "base" : { "path" : "Resource.implicitRules", "min" : 0, "max" : "1" }, "type" : [ { "code" : "uri" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isModifier" : true, "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.language", "path" : "Specimen.language", "short" : "Language of the resource content", "definition" : "The base language in which the resource is written.", "comment" : "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", "min" : 0, "max" : "1", "base" : { "path" : "Resource.language", "min" : 0, "max" : "1" }, "type" : [ { "code" : "code" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference" : { "reference" : "http://hl7.org/fhir/ValueSet/all-languages" } }, { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "Language" }, { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", "valueBoolean" : true } ], "strength" : "extensible", "description" : "A human language.", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/languages" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.text", "path" : "Specimen.text", "short" : "Text summary of the resource, for human interpretation", "definition" : "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded in formation is added later.", "alias" : [ "narrative", "html", "xhtml", "display" ], "min" : 0, "max" : "1", "base" : { "path" : "DomainResource.text", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Narrative" } ], "condition" : [ "ele-1", "dom-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" }, { "identity" : "rim", "map" : "Act.text?" } ] }, { "id" : "Specimen.contained", "path" : "Specimen.contained", "short" : "Contained, inline Resources", "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.", "alias" : [ "inline resources", "anonymous resources", "contained resources" ], "min" : 0, "max" : "*", "base" : { "path" : "DomainResource.contained", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Resource" } ], "mapping" : [ { "identity" : "rim", "map" : "Entity. Role, or Act" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.extension", "path" : "Specimen.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 resource. In order 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 is allowed to 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" : "DomainResource.extension", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Extension" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.modifierExtension", "path" : "Specimen.modifierExtension", "slicing" : { "discriminator" : [ { "type" : "value", "path" : "url" } ], "description" : "Extensions are always sliced by (at least) url", "rules" : "open" }, "short" : "Extensions that cannot be ignored", "definition" : "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", "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" : "DomainResource.modifierExtension", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Extension" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "isModifier" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.identifier", "path" : "Specimen.identifier", "short" : "External Identifier", "definition" : "Id for specimen.", "min" : 0, "max" : "*", "base" : { "path" : "Specimen.identifier", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Identifier" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX / EI (occasionally, more often EI maps to a resource id or a URL)" }, { "identity" : "rim", "map" : "II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]" }, { "identity" : "servd", "map" : "Identifier" }, { "identity" : "v2", "map" : "SPM-2" }, { "identity" : "rim", "map" : ".id" }, { "identity" : "w5", "map" : "id" } ] }, { "id" : "Specimen.identifier.id", "path" : "Specimen.identifier.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.identifier.extension", "path" : "Specimen.identifier.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.identifier.use", "path" : "Specimen.identifier.use", "short" : "usual | official | temp | secondary (If known)", "definition" : "The purpose of this identifier.", "comment" : "This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.", "requirements" : "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.use", "min" : 0, "max" : "1" }, "type" : [ { "code" : "code" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isModifier" : true, "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "IdentifierUse" } ], "strength" : "required", "description" : "Identifies the purpose for this identifier, if known .", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/identifier-use" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "N/A" }, { "identity" : "rim", "map" : "Role.code or implied by context" } ] }, { "id" : "Specimen.identifier.type", "path" : "Specimen.identifier.type", "short" : "Description of identifier", "definition" : "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.", "comment" : "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.", "requirements" : "Allows users to make use of identifiers when the identifier system is not known.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.type", "min" : 0, "max" : "1" }, "type" : [ { "code" : "CodeableConcept" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "IdentifierType" }, { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", "valueBoolean" : true } ], "strength" : "extensible", "description" : "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/identifier-type" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE" }, { "identity" : "rim", "map" : "CD" }, { "identity" : "orim", "map" : "fhir:CodeableConcept rdfs:subClassOf dt:CD" }, { "identity" : "v2", "map" : "CX.5" }, { "identity" : "rim", "map" : "Role.code or implied by context" } ] }, { "id" : "Specimen.identifier.type.id", "path" : "Specimen.identifier.type.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.identifier.type.extension", "path" : "Specimen.identifier.type.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.identifier.type.coding", "path" : "Specimen.identifier.type.coding", "short" : "Code defined by a terminology system", "definition" : "A reference to a code defined by a terminology system.", "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", "requirements" : "Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", "min" : 0, "max" : "*", "base" : { "path" : "CodeableConcept.coding", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Coding" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" }, { "identity" : "rim", "map" : "CV" }, { "identity" : "orim", "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding" }, { "identity" : "v2", "map" : "C*E.1-8, C*E.10-22" }, { "identity" : "rim", "map" : "union(., ./translation)" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" } ] }, { "id" : "Specimen.identifier.type.coding.id", "path" : "Specimen.identifier.type.coding.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.identifier.type.coding.extension", "path" : "Specimen.identifier.type.coding.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.identifier.type.coding.system", "path" : "Specimen.identifier.type.coding.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 de-reference to some definition that establish 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.3" }, { "identity" : "rim", "map" : "./codeSystem" }, { "identity" : "orim", "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" } ] }, { "id" : "Specimen.identifier.type.coding.version", "path" : "Specimen.identifier.type.coding.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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.7" }, { "identity" : "rim", "map" : "./codeSystemVersion" }, { "identity" : "orim", "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" } ] }, { "id" : "Specimen.identifier.type.coding.code", "path" : "Specimen.identifier.type.coding.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).", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.1" }, { "identity" : "rim", "map" : "./code" }, { "identity" : "orim", "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" } ] }, { "id" : "Specimen.identifier.type.coding.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.identifier.type.coding.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.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.identifier.type.coding.userSelected", "path" : "Specimen.identifier.type.coding.userSelected", "short" : "If this coding was chosen directly by the user", "definition" : "Indicates that this coding was chosen by a user directly - i.e. 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.identifier.type.text", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.identifier.type.text", "short" : "Plain text representation of the concept", "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "comment" : "Very often the text is the same as a displayName of one of the codings.", "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min" : 0, "max" : "1", "base" : { "path" : "CodeableConcept.text", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.9. But note many systems use C*E.2 for this" }, { "identity" : "rim", "map" : "./originalText[mediaType/code="text/plain"]/data" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" } ] }, { "id" : "Specimen.identifier.system", "path" : "Specimen.identifier.system", "short" : "The namespace for the identifier value", "definition" : "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.", "comment" : "see http://en.wikipedia.org/wiki/Uniform_resource_identifier", "requirements" : "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.system", "min" : 0, "max" : "1" }, "type" : [ { "code" : "uri" } ], "example" : [ { "label" : "General", "valueUri" : "http://www.acme.com/identifiers/patient" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX.4 / EI-2-4" }, { "identity" : "rim", "map" : "II.root or Role.id.root" }, { "identity" : "servd", "map" : "./IdentifierType" } ] }, { "id" : "Specimen.identifier.value", "path" : "Specimen.identifier.value", "short" : "The value that is unique", "definition" : "The portion of the identifier typically relevant to the user and which is unique within the context of the system.", "comment" : "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.value", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "example" : [ { "label" : "General", "valueString" : "123456" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX.1 / EI.1" }, { "identity" : "rim", "map" : "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" }, { "identity" : "servd", "map" : "./Value" } ] }, { "id" : "Specimen.identifier.period", "path" : "Specimen.identifier.period", "short" : "Time period when id is/was valid for use", "definition" : "Time period during which identifier is/was valid for use.", "comment" : "This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.period", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Period" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "per-1", "severity" : "error", "human" : "If present, start SHALL have a lower value than end", "expression" : "start.empty() or end.empty() or (start <= end)", "xpath" : "not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "DR" }, { "identity" : "rim", "map" : "IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" }, { "identity" : "v2", "map" : "CX.7 + CX.8" }, { "identity" : "rim", "map" : "Role.effectiveTime or implied by context" }, { "identity" : "servd", "map" : "./StartDate and ./EndDate" } ] }, { "id" : "Specimen.identifier.period.id", "path" : "Specimen.identifier.period.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.identifier.period.extension", "path" : "Specimen.identifier.period.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.identifier.period.start", "path" : "Specimen.identifier.period.start", "short" : "Starting time with inclusive boundary", "definition" : "The start of the period. The boundary is inclusive.", "comment" : "If the low element is missing, the meaning is that the low boundary is not known.", "min" : 0, "max" : "1", "base" : { "path" : "Period.start", "min" : 0, "max" : "1" }, "type" : [ { "code" : "dateTime" } ], "condition" : [ "ele-1", "per-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "DR.1" }, { "identity" : "rim", "map" : "./low" } ] }, { "id" : "Specimen.identifier.period.end", "path" : "Specimen.identifier.period.end", "short" : "End time with inclusive boundary, if not ongoing", "definition" : "The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.", "comment" : "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.", "min" : 0, "max" : "1", "base" : { "path" : "Period.end", "min" : 0, "max" : "1" }, "type" : [ { "code" : "dateTime" } ], "meaningWhenMissing" : "If the end of the period is missing, it means that the period is ongoing", "condition" : [ "ele-1", "per-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "DR.2" }, { "identity" : "rim", "map" : "./high" } ] }, { "id" : "Specimen.identifier.assigner", "path" : "Specimen.identifier.assigner", "short" : "Organization that issued id (may be just text)", "definition" : "Organization that issued/manages the identifier.", "comment" : "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.assigner", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Organization" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ref-1", "severity" : "error", "human" : "SHALL have a contained resource if a local reference is provided", "expression" : "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))", "xpath" : "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" }, { "identity" : "v2", "map" : "CX.4 / (CX.4,CX.9,CX.10)" }, { "identity" : "rim", "map" : "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper" }, { "identity" : "servd", "map" : "./IdentifierIssuingAuthority" } ] }, { "id" : "Specimen.identifier.assigner.id", "path" : "Specimen.identifier.assigner.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.identifier.assigner.extension", "path" : "Specimen.identifier.assigner.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.identifier.assigner.reference", "path" : "Specimen.identifier.assigner.reference", "short" : "Literal reference, Relative, internal or absolute URL", "definition" : "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.", "comment" : "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.reference", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1", "ref-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.identifier.assigner.identifier", "path" : "Specimen.identifier.assigner.identifier", "short" : "Logical reference, when literal reference is not known", "definition" : "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.", "comment" : "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.identifier", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Identifier" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX / EI (occasionally, more often EI maps to a resource id or a URL)" }, { "identity" : "rim", "map" : "II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]" }, { "identity" : "servd", "map" : "Identifier" }, { "identity" : "rim", "map" : ".identifier" } ] }, { "id" : "Specimen.identifier.assigner.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.identifier.assigner.display", "short" : "Text alternative for the resource", "definition" : "Plain text narrative that identifies the resource in addition to the resource reference.", "comment" : "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.display", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.accessionIdentifier", "path" : "Specimen.accessionIdentifier", "short" : "Identifier assigned by the lab", "definition" : "The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures.", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.accessionIdentifier", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Identifier" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX / EI (occasionally, more often EI maps to a resource id or a URL)" }, { "identity" : "rim", "map" : "II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]" }, { "identity" : "servd", "map" : "Identifier" }, { "identity" : "v2", "map" : "SPM-30 (v2.7+)" }, { "identity" : "rim", "map" : ".participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id" }, { "identity" : "w5", "map" : "id" } ] }, { "id" : "Specimen.accessionIdentifier.id", "path" : "Specimen.accessionIdentifier.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.accessionIdentifier.extension", "path" : "Specimen.accessionIdentifier.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.accessionIdentifier.use", "path" : "Specimen.accessionIdentifier.use", "short" : "usual | official | temp | secondary (If known)", "definition" : "The purpose of this identifier.", "comment" : "This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.", "requirements" : "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.use", "min" : 0, "max" : "1" }, "type" : [ { "code" : "code" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isModifier" : true, "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "IdentifierUse" } ], "strength" : "required", "description" : "Identifies the purpose for this identifier, if known .", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/identifier-use" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "N/A" }, { "identity" : "rim", "map" : "Role.code or implied by context" } ] }, { "id" : "Specimen.accessionIdentifier.type", "path" : "Specimen.accessionIdentifier.type", "short" : "Description of identifier", "definition" : "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.", "comment" : "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.", "requirements" : "Allows users to make use of identifiers when the identifier system is not known.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.type", "min" : 0, "max" : "1" }, "type" : [ { "code" : "CodeableConcept" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "IdentifierType" }, { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", "valueBoolean" : true } ], "strength" : "extensible", "description" : "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/identifier-type" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE" }, { "identity" : "rim", "map" : "CD" }, { "identity" : "orim", "map" : "fhir:CodeableConcept rdfs:subClassOf dt:CD" }, { "identity" : "v2", "map" : "CX.5" }, { "identity" : "rim", "map" : "Role.code or implied by context" } ] }, { "id" : "Specimen.accessionIdentifier.type.id", "path" : "Specimen.accessionIdentifier.type.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.accessionIdentifier.type.extension", "path" : "Specimen.accessionIdentifier.type.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.accessionIdentifier.type.coding", "path" : "Specimen.accessionIdentifier.type.coding", "short" : "Code defined by a terminology system", "definition" : "A reference to a code defined by a terminology system.", "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", "requirements" : "Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", "min" : 0, "max" : "*", "base" : { "path" : "CodeableConcept.coding", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Coding" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" }, { "identity" : "rim", "map" : "CV" }, { "identity" : "orim", "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding" }, { "identity" : "v2", "map" : "C*E.1-8, C*E.10-22" }, { "identity" : "rim", "map" : "union(., ./translation)" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" } ] }, { "id" : "Specimen.accessionIdentifier.type.coding.id", "path" : "Specimen.accessionIdentifier.type.coding.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.accessionIdentifier.type.coding.extension", "path" : "Specimen.accessionIdentifier.type.coding.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.accessionIdentifier.type.coding.system", "path" : "Specimen.accessionIdentifier.type.coding.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 de-reference to some definition that establish 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.3" }, { "identity" : "rim", "map" : "./codeSystem" }, { "identity" : "orim", "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" } ] }, { "id" : "Specimen.accessionIdentifier.type.coding.version", "path" : "Specimen.accessionIdentifier.type.coding.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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.7" }, { "identity" : "rim", "map" : "./codeSystemVersion" }, { "identity" : "orim", "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" } ] }, { "id" : "Specimen.accessionIdentifier.type.coding.code", "path" : "Specimen.accessionIdentifier.type.coding.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).", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.1" }, { "identity" : "rim", "map" : "./code" }, { "identity" : "orim", "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" } ] }, { "id" : "Specimen.accessionIdentifier.type.coding.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.accessionIdentifier.type.coding.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.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.accessionIdentifier.type.coding.userSelected", "path" : "Specimen.accessionIdentifier.type.coding.userSelected", "short" : "If this coding was chosen directly by the user", "definition" : "Indicates that this coding was chosen by a user directly - i.e. 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.accessionIdentifier.type.text", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.accessionIdentifier.type.text", "short" : "Plain text representation of the concept", "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "comment" : "Very often the text is the same as a displayName of one of the codings.", "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min" : 0, "max" : "1", "base" : { "path" : "CodeableConcept.text", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.9. But note many systems use C*E.2 for this" }, { "identity" : "rim", "map" : "./originalText[mediaType/code="text/plain"]/data" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" } ] }, { "id" : "Specimen.accessionIdentifier.system", "path" : "Specimen.accessionIdentifier.system", "short" : "The namespace for the identifier value", "definition" : "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.", "comment" : "see http://en.wikipedia.org/wiki/Uniform_resource_identifier", "requirements" : "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.system", "min" : 0, "max" : "1" }, "type" : [ { "code" : "uri" } ], "example" : [ { "label" : "General", "valueUri" : "http://www.acme.com/identifiers/patient" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX.4 / EI-2-4" }, { "identity" : "rim", "map" : "II.root or Role.id.root" }, { "identity" : "servd", "map" : "./IdentifierType" } ] }, { "id" : "Specimen.accessionIdentifier.value", "path" : "Specimen.accessionIdentifier.value", "short" : "The value that is unique", "definition" : "The portion of the identifier typically relevant to the user and which is unique within the context of the system.", "comment" : "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.value", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "example" : [ { "label" : "General", "valueString" : "123456" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX.1 / EI.1" }, { "identity" : "rim", "map" : "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" }, { "identity" : "servd", "map" : "./Value" } ] }, { "id" : "Specimen.accessionIdentifier.period", "path" : "Specimen.accessionIdentifier.period", "short" : "Time period when id is/was valid for use", "definition" : "Time period during which identifier is/was valid for use.", "comment" : "This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.period", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Period" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "per-1", "severity" : "error", "human" : "If present, start SHALL have a lower value than end", "expression" : "start.empty() or end.empty() or (start <= end)", "xpath" : "not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "DR" }, { "identity" : "rim", "map" : "IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" }, { "identity" : "v2", "map" : "CX.7 + CX.8" }, { "identity" : "rim", "map" : "Role.effectiveTime or implied by context" }, { "identity" : "servd", "map" : "./StartDate and ./EndDate" } ] }, { "id" : "Specimen.accessionIdentifier.period.id", "path" : "Specimen.accessionIdentifier.period.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.accessionIdentifier.period.extension", "path" : "Specimen.accessionIdentifier.period.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.accessionIdentifier.period.start", "path" : "Specimen.accessionIdentifier.period.start", "short" : "Starting time with inclusive boundary", "definition" : "The start of the period. The boundary is inclusive.", "comment" : "If the low element is missing, the meaning is that the low boundary is not known.", "min" : 0, "max" : "1", "base" : { "path" : "Period.start", "min" : 0, "max" : "1" }, "type" : [ { "code" : "dateTime" } ], "condition" : [ "ele-1", "per-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "DR.1" }, { "identity" : "rim", "map" : "./low" } ] }, { "id" : "Specimen.accessionIdentifier.period.end", "path" : "Specimen.accessionIdentifier.period.end", "short" : "End time with inclusive boundary, if not ongoing", "definition" : "The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.", "comment" : "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.", "min" : 0, "max" : "1", "base" : { "path" : "Period.end", "min" : 0, "max" : "1" }, "type" : [ { "code" : "dateTime" } ], "meaningWhenMissing" : "If the end of the period is missing, it means that the period is ongoing", "condition" : [ "ele-1", "per-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "DR.2" }, { "identity" : "rim", "map" : "./high" } ] }, { "id" : "Specimen.accessionIdentifier.assigner", "path" : "Specimen.accessionIdentifier.assigner", "short" : "Organization that issued id (may be just text)", "definition" : "Organization that issued/manages the identifier.", "comment" : "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.assigner", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Organization" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ref-1", "severity" : "error", "human" : "SHALL have a contained resource if a local reference is provided", "expression" : "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))", "xpath" : "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" }, { "identity" : "v2", "map" : "CX.4 / (CX.4,CX.9,CX.10)" }, { "identity" : "rim", "map" : "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper" }, { "identity" : "servd", "map" : "./IdentifierIssuingAuthority" } ] }, { "id" : "Specimen.accessionIdentifier.assigner.id", "path" : "Specimen.accessionIdentifier.assigner.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.accessionIdentifier.assigner.extension", "path" : "Specimen.accessionIdentifier.assigner.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.accessionIdentifier.assigner.reference", "path" : "Specimen.accessionIdentifier.assigner.reference", "short" : "Literal reference, Relative, internal or absolute URL", "definition" : "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.", "comment" : "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.reference", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1", "ref-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.accessionIdentifier.assigner.identifier", "path" : "Specimen.accessionIdentifier.assigner.identifier", "short" : "Logical reference, when literal reference is not known", "definition" : "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.", "comment" : "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.identifier", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Identifier" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX / EI (occasionally, more often EI maps to a resource id or a URL)" }, { "identity" : "rim", "map" : "II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]" }, { "identity" : "servd", "map" : "Identifier" }, { "identity" : "rim", "map" : ".identifier" } ] }, { "id" : "Specimen.accessionIdentifier.assigner.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.accessionIdentifier.assigner.display", "short" : "Text alternative for the resource", "definition" : "Plain text narrative that identifies the resource in addition to the resource reference.", "comment" : "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.display", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.status", "path" : "Specimen.status", "short" : "available | unavailable | unsatisfactory | entered-in-error", "definition" : "The availability of the specimen.", "comment" : "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.status", "min" : 0, "max" : "1" }, "type" : [ { "code" : "code" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isModifier" : true, "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "SpecimenStatus" } ], "strength" : "required", "description" : "Codes providing the status/availability of a specimen.", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/specimen-status" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SPM-20" }, { "identity" : "rim", "map" : "status" }, { "identity" : "w5", "map" : "status" } ] }, { "id" : "Specimen.type", "path" : "Specimen.type", "short" : "Kind of material that forms the specimen", "definition" : "The kind of material that forms the specimen.", "comment" : "The type can change the way that a specimen is handled, and drives what kind of analyses can properly be performed on the specimen. It is frequently used in diagnostic work flow decision making systems.", "min" : 1, "max" : "1", "base" : { "path" : "Specimen.type", "min" : 0, "max" : "1" }, "type" : [ { "code" : "CodeableConcept" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "SpecimenType" } ], "strength" : "extensible", "description" : "The type of the specimen.", "valueSetUri" : "http://hl7.org/ips/fhir/ValueSet/specimen-type" }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE" }, { "identity" : "rim", "map" : "CD" }, { "identity" : "orim", "map" : "fhir:CodeableConcept rdfs:subClassOf dt:CD" }, { "identity" : "v2", "map" : "SPM-4 and possibly SPM-5" }, { "identity" : "rim", "map" : ".code" }, { "identity" : "w5", "map" : "what" } ] }, { "id" : "Specimen.type.id", "path" : "Specimen.type.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.type.extension", "path" : "Specimen.type.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.type.coding", "path" : "Specimen.type.coding", "short" : "A reference to a code defined by a terminology system", "definition" : "A reference to a code defined by a terminology system.", "comment" : "Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.", "requirements" : "Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", "min" : 0, "max" : "*", "base" : { "path" : "CodeableConcept.coding", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Coding", "profile" : "http://hl7.org/fhir/uv/ips/StructureDefinition/coding-uv-ips" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" }, { "identity" : "rim", "map" : "CV" }, { "identity" : "orim", "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding" }, { "identity" : "v2", "map" : "C*E.1-8, C*E.10-22" }, { "identity" : "rim", "map" : "union(., ./translation)" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" } ] }, { "id" : "Specimen.type.coding.id", "path" : "Specimen.type.coding.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.type.coding.extension", "path" : "Specimen.type.coding.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.type.coding.system", "path" : "Specimen.type.coding.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 de-reference to some definition that establish 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.3" }, { "identity" : "rim", "map" : "./codeSystem" }, { "identity" : "orim", "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" } ] }, { "id" : "Specimen.type.coding.version", "path" : "Specimen.type.coding.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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.7" }, { "identity" : "rim", "map" : "./codeSystemVersion" }, { "identity" : "orim", "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" } ] }, { "id" : "Specimen.type.coding.code", "path" : "Specimen.type.coding.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).", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.1" }, { "identity" : "rim", "map" : "./code" }, { "identity" : "orim", "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" } ] }, { "id" : "Specimen.type.coding.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.type.coding.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.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.type.coding.userSelected", "path" : "Specimen.type.coding.userSelected", "short" : "If this coding was chosen directly by the user", "definition" : "Indicates that this coding was chosen by a user directly - i.e. 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.type.text", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.type.text", "short" : "Plain text representation of the concept", "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "comment" : "Very often the text is the same as a displayName of one of the codings.", "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min" : 0, "max" : "1", "base" : { "path" : "CodeableConcept.text", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.9. But note many systems use C*E.2 for this" }, { "identity" : "rim", "map" : "./originalText[mediaType/code="text/plain"]/data" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" } ] }, { "id" : "Specimen.subject", "path" : "Specimen.subject", "short" : "Where the specimen came from. This may be from the patient(s) or from the environment or a device", "definition" : "Where the specimen came from. This may be from the patient(s) or from the environment or a device.", "comment" : "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.", "requirements" : "Must know the subject context.", "min" : 1, "max" : "1", "base" : { "path" : "Specimen.subject", "min" : 1, "max" : "1" }, "type" : [ { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Patient" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ref-1", "severity" : "error", "human" : "SHALL have a contained resource if a local reference is provided", "expression" : "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))", "xpath" : "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" }, { "identity" : "rim", "map" : ".scoper or .scoper.playsRole" }, { "identity" : "w5", "map" : "who.focus" } ] }, { "id" : "Specimen.subject.id", "path" : "Specimen.subject.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.subject.extension", "path" : "Specimen.subject.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.subject.reference", "path" : "Specimen.subject.reference", "short" : "Literal reference, Relative, internal or absolute URL", "definition" : "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.", "comment" : "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.reference", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1", "ref-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.subject.identifier", "path" : "Specimen.subject.identifier", "short" : "Logical reference, when literal reference is not known", "definition" : "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.", "comment" : "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.identifier", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Identifier" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX / EI (occasionally, more often EI maps to a resource id or a URL)" }, { "identity" : "rim", "map" : "II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]" }, { "identity" : "servd", "map" : "Identifier" }, { "identity" : "rim", "map" : ".identifier" } ] }, { "id" : "Specimen.subject.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.subject.display", "short" : "Text alternative for the resource", "definition" : "Plain text narrative that identifies the resource in addition to the resource reference.", "comment" : "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.display", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.receivedTime", "path" : "Specimen.receivedTime", "short" : "The time when specimen was received for processing", "definition" : "Time when specimen was received for processing or testing.", "min" : 0, "max" : "0", "base" : { "path" : "Specimen.receivedTime", "min" : 0, "max" : "1" }, "type" : [ { "code" : "dateTime" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SPM-18" }, { "identity" : "rim", "map" : ".participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime" }, { "identity" : "w5", "map" : "when.done" } ] }, { "id" : "Specimen.parent", "path" : "Specimen.parent", "short" : "Specimen from which this specimen originated", "definition" : "Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.", "comment" : "The parent specimen could be the source from which the current specimen is derived by some processing step (e.g. an aliquot or isolate or extracted nucleic acids from clinical samples) or one of many specimens that were combined to create a pooled sample.", "min" : 0, "max" : "0", "base" : { "path" : "Specimen.parent", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Specimen" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ref-1", "severity" : "error", "human" : "SHALL have a contained resource if a local reference is provided", "expression" : "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))", "xpath" : "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" }, { "identity" : "rim", "map" : ".scoper (if parent) .player.scopesRole[classCode=SPEC].player (if child)" } ] }, { "id" : "Specimen.parent.id", "path" : "Specimen.parent.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.parent.extension", "path" : "Specimen.parent.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.parent.reference", "path" : "Specimen.parent.reference", "short" : "Literal reference, Relative, internal or absolute URL", "definition" : "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.", "comment" : "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.reference", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1", "ref-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.parent.identifier", "path" : "Specimen.parent.identifier", "short" : "Logical reference, when literal reference is not known", "definition" : "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.", "comment" : "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.identifier", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Identifier" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX / EI (occasionally, more often EI maps to a resource id or a URL)" }, { "identity" : "rim", "map" : "II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]" }, { "identity" : "servd", "map" : "Identifier" }, { "identity" : "rim", "map" : ".identifier" } ] }, { "id" : "Specimen.parent.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.parent.display", "short" : "Text alternative for the resource", "definition" : "Plain text narrative that identifies the resource in addition to the resource reference.", "comment" : "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.display", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.request", "path" : "Specimen.request", "short" : "Why the specimen was collected", "definition" : "Details concerning a test or procedure request that required a specimen to be collected.", "comment" : "The request may be explicit or implied such with a ProcedureRequest that requires a blood draw.", "min" : 0, "max" : "0", "base" : { "path" : "Specimen.request", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/ProcedureRequest" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ref-1", "severity" : "error", "human" : "SHALL have a contained resource if a local reference is provided", "expression" : "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))", "xpath" : "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" }, { "identity" : "v2", "map" : "ORC? OBR-2/3?" }, { "identity" : "rim", "map" : "outboundRelationship[typeCode=FLFS].target" }, { "identity" : "w5", "map" : "why" } ] }, { "id" : "Specimen.request.id", "path" : "Specimen.request.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.request.extension", "path" : "Specimen.request.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.request.reference", "path" : "Specimen.request.reference", "short" : "Literal reference, Relative, internal or absolute URL", "definition" : "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.", "comment" : "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.reference", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1", "ref-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.request.identifier", "path" : "Specimen.request.identifier", "short" : "Logical reference, when literal reference is not known", "definition" : "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.", "comment" : "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.identifier", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Identifier" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX / EI (occasionally, more often EI maps to a resource id or a URL)" }, { "identity" : "rim", "map" : "II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]" }, { "identity" : "servd", "map" : "Identifier" }, { "identity" : "rim", "map" : ".identifier" } ] }, { "id" : "Specimen.request.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.request.display", "short" : "Text alternative for the resource", "definition" : "Plain text narrative that identifies the resource in addition to the resource reference.", "comment" : "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.display", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.collection", "path" : "Specimen.collection", "short" : "Collection details", "definition" : "Details concerning the specimen collection.", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.collection", "min" : 0, "max" : "1" }, "type" : [ { "code" : "BackboneElement" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SPM-14" }, { "identity" : "rim", "map" : ".participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]" } ] }, { "id" : "Specimen.collection.id", "path" : "Specimen.collection.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.collection.extension", "path" : "Specimen.collection.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.collection.modifierExtension", "path" : "Specimen.collection.modifierExtension", "short" : "Extensions that cannot be ignored", "definition" : "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", "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", "modifiers" ], "min" : 0, "max" : "*", "base" : { "path" : "BackboneElement.modifierExtension", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Extension" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "isModifier" : true, "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.collection.collector", "path" : "Specimen.collection.collector", "short" : "Who collected the specimen", "definition" : "Person who collected the specimen.", "comment" : "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.", "min" : 0, "max" : "0", "base" : { "path" : "Specimen.collection.collector", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Practitioner" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ref-1", "severity" : "error", "human" : "SHALL have a contained resource if a local reference is provided", "expression" : "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))", "xpath" : "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" }, { "identity" : "v2", "map" : "PRT" }, { "identity" : "rim", "map" : ".participation[typeCode=PFM].role" }, { "identity" : "w5", "map" : "who.actor" } ] }, { "id" : "Specimen.collection.collector.id", "path" : "Specimen.collection.collector.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.collection.collector.extension", "path" : "Specimen.collection.collector.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.collection.collector.reference", "path" : "Specimen.collection.collector.reference", "short" : "Literal reference, Relative, internal or absolute URL", "definition" : "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.", "comment" : "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.reference", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1", "ref-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.collection.collector.identifier", "path" : "Specimen.collection.collector.identifier", "short" : "Logical reference, when literal reference is not known", "definition" : "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.", "comment" : "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.identifier", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Identifier" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX / EI (occasionally, more often EI maps to a resource id or a URL)" }, { "identity" : "rim", "map" : "II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]" }, { "identity" : "servd", "map" : "Identifier" }, { "identity" : "rim", "map" : ".identifier" } ] }, { "id" : "Specimen.collection.collector.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.collection.collector.display", "short" : "Text alternative for the resource", "definition" : "Plain text narrative that identifies the resource in addition to the resource reference.", "comment" : "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.display", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.collection.collected[x]", "path" : "Specimen.collection.collected[x]", "short" : "Collection time", "definition" : "Time when specimen was collected from subject - the physiologically relevant time.", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.collection.collected[x]", "min" : 0, "max" : "1" }, "type" : [ { "code" : "dateTime" }, { "code" : "Period" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SPM-17" }, { "identity" : "rim", "map" : ".effectiveTime" }, { "identity" : "w5", "map" : "when.init" } ] }, { "id" : "Specimen.collection.quantity", "path" : "Specimen.collection.quantity", "short" : "The quantity of specimen collected", "definition" : "The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.", "comment" : "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.", "min" : 0, "max" : "0", "base" : { "path" : "Specimen.collection.quantity", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Quantity", "profile" : "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "qty-3", "severity" : "error", "human" : "If a code for the unit is present, the system SHALL also be present", "expression" : "code.empty() or system.exists()", "xpath" : "not(exists(f:code)) or exists(f:system)" }, { "key" : "sqty-1", "severity" : "error", "human" : "The comparator is not used on a SimpleQuantity", "expression" : "comparator.empty()", "xpath" : "not(exists(f:comparator))" } ], "isModifier" : false, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SN (see also Range) or CQ" }, { "identity" : "rim", "map" : "PQ, IVL<PQ>, MO, CO, depending on the values" }, { "identity" : "v2", "map" : "SPM-12" }, { "identity" : "rim", "map" : ".participation[typeCode=SBJ].role[classCode=SPEC].player.quantity" } ] }, { "id" : "Specimen.collection.quantity.id", "path" : "Specimen.collection.quantity.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.collection.quantity.extension", "path" : "Specimen.collection.quantity.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.collection.quantity.value", "path" : "Specimen.collection.quantity.value", "short" : "Numerical value (with implicit precision)", "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.", "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).", "requirements" : "Precision is handled implicitly in almost all cases of measurement.", "min" : 0, "max" : "1", "base" : { "path" : "Quantity.value", "min" : 0, "max" : "1" }, "type" : [ { "code" : "decimal" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SN.2 / CQ - N/A" }, { "identity" : "rim", "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value" } ] }, { "id" : "Specimen.collection.quantity.comparator", "path" : "Specimen.collection.quantity.comparator", "short" : "< | <= | >= | > - how to understand the value", "definition" : "Not allowed to be used in this context", "comment" : "This is labeled as "Is Modifier" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value.", "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.", "min" : 0, "max" : "0", "base" : { "path" : "Quantity.comparator", "min" : 0, "max" : "1" }, "type" : [ { "code" : "code" } ], "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value", "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isModifier" : true, "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "QuantityComparator" } ], "strength" : "required", "description" : "How the Quantity should be understood and represented.", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/quantity-comparator" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SN.1 / CQ.1" }, { "identity" : "rim", "map" : "IVL properties" } ] }, { "id" : "Specimen.collection.quantity.unit", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.collection.quantity.unit", "short" : "Unit representation", "definition" : "A human-readable form of the unit.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.", "min" : 0, "max" : "1", "base" : { "path" : "Quantity.unit", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "(see OBX.6 etc.) / CQ.2" }, { "identity" : "rim", "map" : "PQ.unit" } ] }, { "id" : "Specimen.collection.quantity.system", "path" : "Specimen.collection.quantity.system", "short" : "System that defines coded unit form", "definition" : "The identification of the system that provides the coded form of the unit.", "comment" : "see http://en.wikipedia.org/wiki/Uniform_resource_identifier", "requirements" : "Need to know the system that defines the coded form of the unit.", "min" : 0, "max" : "1", "base" : { "path" : "Quantity.system", "min" : 0, "max" : "1" }, "type" : [ { "code" : "uri" } ], "condition" : [ "ele-1", "qty-3" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "(see OBX.6 etc.) / CQ.2" }, { "identity" : "rim", "map" : "CO.codeSystem, PQ.translation.codeSystem" } ] }, { "id" : "Specimen.collection.quantity.code", "path" : "Specimen.collection.quantity.code", "short" : "Coded form of the unit", "definition" : "A computer processable form of the unit in some unit representation system.", "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.", "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.", "min" : 0, "max" : "1", "base" : { "path" : "Quantity.code", "min" : 0, "max" : "1" }, "type" : [ { "code" : "code" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "(see OBX.6 etc.) / CQ.2" }, { "identity" : "rim", "map" : "PQ.code, MO.currency, PQ.translation.code" } ] }, { "id" : "Specimen.collection.method", "path" : "Specimen.collection.method", "short" : "Technique used to perform collection", "definition" : "A coded value specifying the technique that is used to perform the procedure.", "comment" : "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.collection.method", "min" : 0, "max" : "1" }, "type" : [ { "code" : "CodeableConcept" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "SpecimenCollectionMethod" } ], "strength" : "example", "description" : "The technique that is used to perform the procedure", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/specimen-collection-method" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE" }, { "identity" : "rim", "map" : "CD" }, { "identity" : "orim", "map" : "fhir:CodeableConcept rdfs:subClassOf dt:CD" }, { "identity" : "v2", "map" : "SPM-7" }, { "identity" : "rim", "map" : ".methodCode" } ] }, { "id" : "Specimen.collection.method.id", "path" : "Specimen.collection.method.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.collection.method.extension", "path" : "Specimen.collection.method.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.collection.method.coding", "path" : "Specimen.collection.method.coding", "short" : "A reference to a code defined by a terminology system", "definition" : "A reference to a code defined by a terminology system.", "comment" : "Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.", "requirements" : "Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", "min" : 0, "max" : "*", "base" : { "path" : "CodeableConcept.coding", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Coding", "profile" : "http://hl7.org/fhir/uv/ips/StructureDefinition/coding-uv-ips" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "binding" : { "strength" : "extensible", "valueSetUri" : "http://trilliumbridge.eu/fhir/ValueSet/specimen-collection-method" }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" }, { "identity" : "rim", "map" : "CV" }, { "identity" : "orim", "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding" }, { "identity" : "v2", "map" : "C*E.1-8, C*E.10-22" }, { "identity" : "rim", "map" : "union(., ./translation)" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" } ] }, { "id" : "Specimen.collection.method.coding.id", "path" : "Specimen.collection.method.coding.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.collection.method.coding.extension", "path" : "Specimen.collection.method.coding.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.collection.method.coding.system", "path" : "Specimen.collection.method.coding.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 de-reference to some definition that establish 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.3" }, { "identity" : "rim", "map" : "./codeSystem" }, { "identity" : "orim", "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" } ] }, { "id" : "Specimen.collection.method.coding.version", "path" : "Specimen.collection.method.coding.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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.7" }, { "identity" : "rim", "map" : "./codeSystemVersion" }, { "identity" : "orim", "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" } ] }, { "id" : "Specimen.collection.method.coding.code", "path" : "Specimen.collection.method.coding.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).", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.1" }, { "identity" : "rim", "map" : "./code" }, { "identity" : "orim", "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" } ] }, { "id" : "Specimen.collection.method.coding.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.collection.method.coding.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.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.collection.method.coding.userSelected", "path" : "Specimen.collection.method.coding.userSelected", "short" : "If this coding was chosen directly by the user", "definition" : "Indicates that this coding was chosen by a user directly - i.e. 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.collection.method.text", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.collection.method.text", "short" : "Plain text representation of the concept", "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "comment" : "Very often the text is the same as a displayName of one of the codings.", "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min" : 0, "max" : "1", "base" : { "path" : "CodeableConcept.text", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.9. But note many systems use C*E.2 for this" }, { "identity" : "rim", "map" : "./originalText[mediaType/code="text/plain"]/data" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" } ] }, { "id" : "Specimen.collection.bodySite", "path" : "Specimen.collection.bodySite", "short" : "Anatomical collection site", "definition" : "Anatomical location from which the specimen was collected (if subject is a patient). This is the target site. This element is not used for environmental specimens.", "comment" : "If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately) then use the standard extension [body-site-instance](extension-body-site-instance.html).", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.collection.bodySite", "min" : 0, "max" : "1" }, "type" : [ { "code" : "CodeableConcept" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "BodySite" } ], "strength" : "example", "description" : "Codes describing anatomical locations. May include laterality.", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/body-site" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE" }, { "identity" : "rim", "map" : "CD" }, { "identity" : "orim", "map" : "fhir:CodeableConcept rdfs:subClassOf dt:CD" }, { "identity" : "v2", "map" : "SPM-8 and SPM-9" }, { "identity" : "rim", "map" : ".targetSiteCode" } ] }, { "id" : "Specimen.collection.bodySite.id", "path" : "Specimen.collection.bodySite.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.collection.bodySite.extension", "path" : "Specimen.collection.bodySite.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.collection.bodySite.coding", "path" : "Specimen.collection.bodySite.coding", "short" : "A reference to a code defined by a terminology system", "definition" : "A reference to a code defined by a terminology system.", "comment" : "Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.", "requirements" : "Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", "min" : 0, "max" : "*", "base" : { "path" : "CodeableConcept.coding", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Coding", "profile" : "http://hl7.org/fhir/uv/ips/StructureDefinition/coding-uv-ips" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "binding" : { "strength" : "extensible", "valueSetUri" : "http://hl7.org/fhir/ValueSet/body-site" }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" }, { "identity" : "rim", "map" : "CV" }, { "identity" : "orim", "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding" }, { "identity" : "v2", "map" : "C*E.1-8, C*E.10-22" }, { "identity" : "rim", "map" : "union(., ./translation)" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" } ] }, { "id" : "Specimen.collection.bodySite.coding.id", "path" : "Specimen.collection.bodySite.coding.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.collection.bodySite.coding.extension", "path" : "Specimen.collection.bodySite.coding.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.collection.bodySite.coding.system", "path" : "Specimen.collection.bodySite.coding.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 de-reference to some definition that establish 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.3" }, { "identity" : "rim", "map" : "./codeSystem" }, { "identity" : "orim", "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" } ] }, { "id" : "Specimen.collection.bodySite.coding.version", "path" : "Specimen.collection.bodySite.coding.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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.7" }, { "identity" : "rim", "map" : "./codeSystemVersion" }, { "identity" : "orim", "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" } ] }, { "id" : "Specimen.collection.bodySite.coding.code", "path" : "Specimen.collection.bodySite.coding.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).", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.1" }, { "identity" : "rim", "map" : "./code" }, { "identity" : "orim", "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" } ] }, { "id" : "Specimen.collection.bodySite.coding.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.collection.bodySite.coding.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.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.collection.bodySite.coding.userSelected", "path" : "Specimen.collection.bodySite.coding.userSelected", "short" : "If this coding was chosen directly by the user", "definition" : "Indicates that this coding was chosen by a user directly - i.e. 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.collection.bodySite.text", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.collection.bodySite.text", "short" : "Plain text representation of the concept", "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "comment" : "Very often the text is the same as a displayName of one of the codings.", "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min" : 0, "max" : "1", "base" : { "path" : "CodeableConcept.text", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.9. But note many systems use C*E.2 for this" }, { "identity" : "rim", "map" : "./originalText[mediaType/code="text/plain"]/data" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" } ] }, { "id" : "Specimen.processing", "path" : "Specimen.processing", "short" : "Processing and processing step details", "definition" : "Details concerning processing and processing steps for the specimen.", "min" : 0, "max" : "0", "base" : { "path" : "Specimen.processing", "min" : 0, "max" : "*" }, "type" : [ { "code" : "BackboneElement" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : ".participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]" } ] }, { "id" : "Specimen.processing.id", "path" : "Specimen.processing.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.processing.extension", "path" : "Specimen.processing.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.processing.modifierExtension", "path" : "Specimen.processing.modifierExtension", "short" : "Extensions that cannot be ignored", "definition" : "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", "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", "modifiers" ], "min" : 0, "max" : "*", "base" : { "path" : "BackboneElement.modifierExtension", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Extension" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "isModifier" : true, "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.processing.description", "path" : "Specimen.processing.description", "short" : "Textual description of procedure", "definition" : "Textual description of procedure.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.processing.description", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : ".text" } ] }, { "id" : "Specimen.processing.procedure", "path" : "Specimen.processing.procedure", "short" : "Indicates the treatment step applied to the specimen", "definition" : "A coded value specifying the procedure used to process the specimen.", "comment" : "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.processing.procedure", "min" : 0, "max" : "1" }, "type" : [ { "code" : "CodeableConcept" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "SpecimenProcessingProcedure" } ], "strength" : "example", "description" : "Type indicating the technique used to process the specimen", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/specimen-processing-procedure" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE" }, { "identity" : "rim", "map" : "CD" }, { "identity" : "orim", "map" : "fhir:CodeableConcept rdfs:subClassOf dt:CD" }, { "identity" : "rim", "map" : ".code" } ] }, { "id" : "Specimen.processing.procedure.id", "path" : "Specimen.processing.procedure.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.processing.procedure.extension", "path" : "Specimen.processing.procedure.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.processing.procedure.coding", "path" : "Specimen.processing.procedure.coding", "short" : "Code defined by a terminology system", "definition" : "A reference to a code defined by a terminology system.", "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", "requirements" : "Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", "min" : 0, "max" : "*", "base" : { "path" : "CodeableConcept.coding", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Coding" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" }, { "identity" : "rim", "map" : "CV" }, { "identity" : "orim", "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding" }, { "identity" : "v2", "map" : "C*E.1-8, C*E.10-22" }, { "identity" : "rim", "map" : "union(., ./translation)" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" } ] }, { "id" : "Specimen.processing.procedure.coding.id", "path" : "Specimen.processing.procedure.coding.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.processing.procedure.coding.extension", "path" : "Specimen.processing.procedure.coding.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.processing.procedure.coding.system", "path" : "Specimen.processing.procedure.coding.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 de-reference to some definition that establish 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.3" }, { "identity" : "rim", "map" : "./codeSystem" }, { "identity" : "orim", "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" } ] }, { "id" : "Specimen.processing.procedure.coding.version", "path" : "Specimen.processing.procedure.coding.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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.7" }, { "identity" : "rim", "map" : "./codeSystemVersion" }, { "identity" : "orim", "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" } ] }, { "id" : "Specimen.processing.procedure.coding.code", "path" : "Specimen.processing.procedure.coding.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).", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.1" }, { "identity" : "rim", "map" : "./code" }, { "identity" : "orim", "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" } ] }, { "id" : "Specimen.processing.procedure.coding.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.processing.procedure.coding.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.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.processing.procedure.coding.userSelected", "path" : "Specimen.processing.procedure.coding.userSelected", "short" : "If this coding was chosen directly by the user", "definition" : "Indicates that this coding was chosen by a user directly - i.e. 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.processing.procedure.text", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.processing.procedure.text", "short" : "Plain text representation of the concept", "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "comment" : "Very often the text is the same as a displayName of one of the codings.", "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min" : 0, "max" : "1", "base" : { "path" : "CodeableConcept.text", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.9. But note many systems use C*E.2 for this" }, { "identity" : "rim", "map" : "./originalText[mediaType/code="text/plain"]/data" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" } ] }, { "id" : "Specimen.processing.additive", "path" : "Specimen.processing.additive", "short" : "Material used in the processing step", "definition" : "Material used in the processing step.", "comment" : "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.", "min" : 0, "max" : "*", "base" : { "path" : "Specimen.processing.additive", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Substance" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ref-1", "severity" : "error", "human" : "SHALL have a contained resource if a local reference is provided", "expression" : "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))", "xpath" : "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" }, { "identity" : "v2", "map" : "SPM-6" }, { "identity" : "rim", "map" : ".participation[typeCode=CSM].role[classCode=ADTV].code" } ] }, { "id" : "Specimen.processing.additive.id", "path" : "Specimen.processing.additive.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.processing.additive.extension", "path" : "Specimen.processing.additive.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.processing.additive.reference", "path" : "Specimen.processing.additive.reference", "short" : "Literal reference, Relative, internal or absolute URL", "definition" : "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.", "comment" : "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.reference", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1", "ref-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.processing.additive.identifier", "path" : "Specimen.processing.additive.identifier", "short" : "Logical reference, when literal reference is not known", "definition" : "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.", "comment" : "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.identifier", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Identifier" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX / EI (occasionally, more often EI maps to a resource id or a URL)" }, { "identity" : "rim", "map" : "II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]" }, { "identity" : "servd", "map" : "Identifier" }, { "identity" : "rim", "map" : ".identifier" } ] }, { "id" : "Specimen.processing.additive.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.processing.additive.display", "short" : "Text alternative for the resource", "definition" : "Plain text narrative that identifies the resource in addition to the resource reference.", "comment" : "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.display", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.processing.time[x]", "path" : "Specimen.processing.time[x]", "short" : "Date and time of specimen processing", "definition" : "A record of the time or period when the specimen processing occurred. For example the time of sample fixation or the period of time the sample was in formalin.", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.processing.time[x]", "min" : 0, "max" : "1" }, "type" : [ { "code" : "dateTime" }, { "code" : "Period" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : ".effectiveTime" } ] }, { "id" : "Specimen.container", "path" : "Specimen.container", "short" : "Direct container of specimen (tube/slide, etc.)", "definition" : "The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.", "min" : 0, "max" : "0", "base" : { "path" : "Specimen.container", "min" : 0, "max" : "*" }, "type" : [ { "code" : "BackboneElement" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : ".player.scopingRole[classCode=CONT].scoper" } ] }, { "id" : "Specimen.container.id", "path" : "Specimen.container.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.container.extension", "path" : "Specimen.container.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.modifierExtension", "path" : "Specimen.container.modifierExtension", "short" : "Extensions that cannot be ignored", "definition" : "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", "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", "modifiers" ], "min" : 0, "max" : "*", "base" : { "path" : "BackboneElement.modifierExtension", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Extension" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "isModifier" : true, "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.identifier", "path" : "Specimen.container.identifier", "short" : "Id for the container", "definition" : "Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances.", "min" : 0, "max" : "*", "base" : { "path" : "Specimen.container.identifier", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Identifier" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX / EI (occasionally, more often EI maps to a resource id or a URL)" }, { "identity" : "rim", "map" : "II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]" }, { "identity" : "servd", "map" : "Identifier" }, { "identity" : "v2", "map" : "SAC-3" }, { "identity" : "rim", "map" : ".id" } ] }, { "id" : "Specimen.container.identifier.id", "path" : "Specimen.container.identifier.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.container.identifier.extension", "path" : "Specimen.container.identifier.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.identifier.use", "path" : "Specimen.container.identifier.use", "short" : "usual | official | temp | secondary (If known)", "definition" : "The purpose of this identifier.", "comment" : "This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.", "requirements" : "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.use", "min" : 0, "max" : "1" }, "type" : [ { "code" : "code" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isModifier" : true, "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "IdentifierUse" } ], "strength" : "required", "description" : "Identifies the purpose for this identifier, if known .", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/identifier-use" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "N/A" }, { "identity" : "rim", "map" : "Role.code or implied by context" } ] }, { "id" : "Specimen.container.identifier.type", "path" : "Specimen.container.identifier.type", "short" : "Description of identifier", "definition" : "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.", "comment" : "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.", "requirements" : "Allows users to make use of identifiers when the identifier system is not known.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.type", "min" : 0, "max" : "1" }, "type" : [ { "code" : "CodeableConcept" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "IdentifierType" }, { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", "valueBoolean" : true } ], "strength" : "extensible", "description" : "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/identifier-type" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE" }, { "identity" : "rim", "map" : "CD" }, { "identity" : "orim", "map" : "fhir:CodeableConcept rdfs:subClassOf dt:CD" }, { "identity" : "v2", "map" : "CX.5" }, { "identity" : "rim", "map" : "Role.code or implied by context" } ] }, { "id" : "Specimen.container.identifier.type.id", "path" : "Specimen.container.identifier.type.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.container.identifier.type.extension", "path" : "Specimen.container.identifier.type.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.identifier.type.coding", "path" : "Specimen.container.identifier.type.coding", "short" : "Code defined by a terminology system", "definition" : "A reference to a code defined by a terminology system.", "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", "requirements" : "Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", "min" : 0, "max" : "*", "base" : { "path" : "CodeableConcept.coding", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Coding" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" }, { "identity" : "rim", "map" : "CV" }, { "identity" : "orim", "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding" }, { "identity" : "v2", "map" : "C*E.1-8, C*E.10-22" }, { "identity" : "rim", "map" : "union(., ./translation)" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" } ] }, { "id" : "Specimen.container.identifier.type.coding.id", "path" : "Specimen.container.identifier.type.coding.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.container.identifier.type.coding.extension", "path" : "Specimen.container.identifier.type.coding.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.identifier.type.coding.system", "path" : "Specimen.container.identifier.type.coding.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 de-reference to some definition that establish 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.3" }, { "identity" : "rim", "map" : "./codeSystem" }, { "identity" : "orim", "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" } ] }, { "id" : "Specimen.container.identifier.type.coding.version", "path" : "Specimen.container.identifier.type.coding.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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.7" }, { "identity" : "rim", "map" : "./codeSystemVersion" }, { "identity" : "orim", "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" } ] }, { "id" : "Specimen.container.identifier.type.coding.code", "path" : "Specimen.container.identifier.type.coding.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).", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.1" }, { "identity" : "rim", "map" : "./code" }, { "identity" : "orim", "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" } ] }, { "id" : "Specimen.container.identifier.type.coding.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.container.identifier.type.coding.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.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.container.identifier.type.coding.userSelected", "path" : "Specimen.container.identifier.type.coding.userSelected", "short" : "If this coding was chosen directly by the user", "definition" : "Indicates that this coding was chosen by a user directly - i.e. 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.container.identifier.type.text", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.container.identifier.type.text", "short" : "Plain text representation of the concept", "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "comment" : "Very often the text is the same as a displayName of one of the codings.", "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min" : 0, "max" : "1", "base" : { "path" : "CodeableConcept.text", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.9. But note many systems use C*E.2 for this" }, { "identity" : "rim", "map" : "./originalText[mediaType/code="text/plain"]/data" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" } ] }, { "id" : "Specimen.container.identifier.system", "path" : "Specimen.container.identifier.system", "short" : "The namespace for the identifier value", "definition" : "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.", "comment" : "see http://en.wikipedia.org/wiki/Uniform_resource_identifier", "requirements" : "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.system", "min" : 0, "max" : "1" }, "type" : [ { "code" : "uri" } ], "example" : [ { "label" : "General", "valueUri" : "http://www.acme.com/identifiers/patient" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX.4 / EI-2-4" }, { "identity" : "rim", "map" : "II.root or Role.id.root" }, { "identity" : "servd", "map" : "./IdentifierType" } ] }, { "id" : "Specimen.container.identifier.value", "path" : "Specimen.container.identifier.value", "short" : "The value that is unique", "definition" : "The portion of the identifier typically relevant to the user and which is unique within the context of the system.", "comment" : "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.value", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "example" : [ { "label" : "General", "valueString" : "123456" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX.1 / EI.1" }, { "identity" : "rim", "map" : "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" }, { "identity" : "servd", "map" : "./Value" } ] }, { "id" : "Specimen.container.identifier.period", "path" : "Specimen.container.identifier.period", "short" : "Time period when id is/was valid for use", "definition" : "Time period during which identifier is/was valid for use.", "comment" : "This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.period", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Period" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "per-1", "severity" : "error", "human" : "If present, start SHALL have a lower value than end", "expression" : "start.empty() or end.empty() or (start <= end)", "xpath" : "not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "DR" }, { "identity" : "rim", "map" : "IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" }, { "identity" : "v2", "map" : "CX.7 + CX.8" }, { "identity" : "rim", "map" : "Role.effectiveTime or implied by context" }, { "identity" : "servd", "map" : "./StartDate and ./EndDate" } ] }, { "id" : "Specimen.container.identifier.period.id", "path" : "Specimen.container.identifier.period.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.container.identifier.period.extension", "path" : "Specimen.container.identifier.period.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.identifier.period.start", "path" : "Specimen.container.identifier.period.start", "short" : "Starting time with inclusive boundary", "definition" : "The start of the period. The boundary is inclusive.", "comment" : "If the low element is missing, the meaning is that the low boundary is not known.", "min" : 0, "max" : "1", "base" : { "path" : "Period.start", "min" : 0, "max" : "1" }, "type" : [ { "code" : "dateTime" } ], "condition" : [ "ele-1", "per-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "DR.1" }, { "identity" : "rim", "map" : "./low" } ] }, { "id" : "Specimen.container.identifier.period.end", "path" : "Specimen.container.identifier.period.end", "short" : "End time with inclusive boundary, if not ongoing", "definition" : "The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.", "comment" : "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.", "min" : 0, "max" : "1", "base" : { "path" : "Period.end", "min" : 0, "max" : "1" }, "type" : [ { "code" : "dateTime" } ], "meaningWhenMissing" : "If the end of the period is missing, it means that the period is ongoing", "condition" : [ "ele-1", "per-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "DR.2" }, { "identity" : "rim", "map" : "./high" } ] }, { "id" : "Specimen.container.identifier.assigner", "path" : "Specimen.container.identifier.assigner", "short" : "Organization that issued id (may be just text)", "definition" : "Organization that issued/manages the identifier.", "comment" : "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.", "min" : 0, "max" : "1", "base" : { "path" : "Identifier.assigner", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Organization" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ref-1", "severity" : "error", "human" : "SHALL have a contained resource if a local reference is provided", "expression" : "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))", "xpath" : "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" }, { "identity" : "v2", "map" : "CX.4 / (CX.4,CX.9,CX.10)" }, { "identity" : "rim", "map" : "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper" }, { "identity" : "servd", "map" : "./IdentifierIssuingAuthority" } ] }, { "id" : "Specimen.container.identifier.assigner.id", "path" : "Specimen.container.identifier.assigner.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.container.identifier.assigner.extension", "path" : "Specimen.container.identifier.assigner.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.identifier.assigner.reference", "path" : "Specimen.container.identifier.assigner.reference", "short" : "Literal reference, Relative, internal or absolute URL", "definition" : "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.", "comment" : "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.reference", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1", "ref-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.identifier.assigner.identifier", "path" : "Specimen.container.identifier.assigner.identifier", "short" : "Logical reference, when literal reference is not known", "definition" : "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.", "comment" : "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.identifier", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Identifier" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CX / EI (occasionally, more often EI maps to a resource id or a URL)" }, { "identity" : "rim", "map" : "II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]" }, { "identity" : "servd", "map" : "Identifier" }, { "identity" : "rim", "map" : ".identifier" } ] }, { "id" : "Specimen.container.identifier.assigner.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.container.identifier.assigner.display", "short" : "Text alternative for the resource", "definition" : "Plain text narrative that identifies the resource in addition to the resource reference.", "comment" : "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.", "min" : 0, "max" : "1", "base" : { "path" : "Reference.display", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.description", "path" : "Specimen.container.description", "short" : "Textual description of the container", "definition" : "Textual description of the container.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.container.description", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : ".desc" } ] }, { "id" : "Specimen.container.type", "path" : "Specimen.container.type", "short" : "Kind of container directly associated with specimen", "definition" : "The type of container associated with the specimen (e.g. slide, aliquot, etc.).", "comment" : "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.container.type", "min" : 0, "max" : "1" }, "type" : [ { "code" : "CodeableConcept" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "SpecimenContainerType" } ], "strength" : "example", "description" : "Type of specimen container", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/specimen-container-type" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE" }, { "identity" : "rim", "map" : "CD" }, { "identity" : "orim", "map" : "fhir:CodeableConcept rdfs:subClassOf dt:CD" }, { "identity" : "v2", "map" : "SPM-27" }, { "identity" : "rim", "map" : ".code" } ] }, { "id" : "Specimen.container.type.id", "path" : "Specimen.container.type.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.container.type.extension", "path" : "Specimen.container.type.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.type.coding", "path" : "Specimen.container.type.coding", "short" : "Code defined by a terminology system", "definition" : "A reference to a code defined by a terminology system.", "comment" : "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", "requirements" : "Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", "min" : 0, "max" : "*", "base" : { "path" : "CodeableConcept.coding", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Coding" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" }, { "identity" : "rim", "map" : "CV" }, { "identity" : "orim", "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding" }, { "identity" : "v2", "map" : "C*E.1-8, C*E.10-22" }, { "identity" : "rim", "map" : "union(., ./translation)" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" } ] }, { "id" : "Specimen.container.type.coding.id", "path" : "Specimen.container.type.coding.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.container.type.coding.extension", "path" : "Specimen.container.type.coding.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.type.coding.system", "path" : "Specimen.container.type.coding.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 de-reference to some definition that establish 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.3" }, { "identity" : "rim", "map" : "./codeSystem" }, { "identity" : "orim", "map" : "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" } ] }, { "id" : "Specimen.container.type.coding.version", "path" : "Specimen.container.type.coding.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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.7" }, { "identity" : "rim", "map" : "./codeSystemVersion" }, { "identity" : "orim", "map" : "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" } ] }, { "id" : "Specimen.container.type.coding.code", "path" : "Specimen.container.type.coding.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).", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.1" }, { "identity" : "rim", "map" : "./code" }, { "identity" : "orim", "map" : "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" } ] }, { "id" : "Specimen.container.type.coding.display", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.container.type.coding.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.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.container.type.coding.userSelected", "path" : "Specimen.container.type.coding.userSelected", "short" : "If this coding was chosen directly by the user", "definition" : "Indicates that this coding was chosen by a user directly - i.e. 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "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" : "Specimen.container.type.text", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.container.type.text", "short" : "Plain text representation of the concept", "definition" : "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "comment" : "Very often the text is the same as a displayName of one of the codings.", "requirements" : "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min" : 0, "max" : "1", "base" : { "path" : "CodeableConcept.text", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "C*E.9. But note many systems use C*E.2 for this" }, { "identity" : "rim", "map" : "./originalText[mediaType/code="text/plain"]/data" }, { "identity" : "orim", "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" } ] }, { "id" : "Specimen.container.capacity", "path" : "Specimen.container.capacity", "short" : "Container volume or size", "definition" : "The capacity (volume or other measure) the container may contain.", "comment" : "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.container.capacity", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Quantity", "profile" : "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "qty-3", "severity" : "error", "human" : "If a code for the unit is present, the system SHALL also be present", "expression" : "code.empty() or system.exists()", "xpath" : "not(exists(f:code)) or exists(f:system)" }, { "key" : "sqty-1", "severity" : "error", "human" : "The comparator is not used on a SimpleQuantity", "expression" : "comparator.empty()", "xpath" : "not(exists(f:comparator))" } ], "isModifier" : false, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SN (see also Range) or CQ" }, { "identity" : "rim", "map" : "PQ, IVL<PQ>, MO, CO, depending on the values" }, { "identity" : "v2", "map" : "one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20" }, { "identity" : "rim", "map" : ".quantity" } ] }, { "id" : "Specimen.container.capacity.id", "path" : "Specimen.container.capacity.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.container.capacity.extension", "path" : "Specimen.container.capacity.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.capacity.value", "path" : "Specimen.container.capacity.value", "short" : "Numerical value (with implicit precision)", "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.", "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).", "requirements" : "Precision is handled implicitly in almost all cases of measurement.", "min" : 0, "max" : "1", "base" : { "path" : "Quantity.value", "min" : 0, "max" : "1" }, "type" : [ { "code" : "decimal" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SN.2 / CQ - N/A" }, { "identity" : "rim", "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value" } ] }, { "id" : "Specimen.container.capacity.comparator", "path" : "Specimen.container.capacity.comparator", "short" : "< | <= | >= | > - how to understand the value", "definition" : "Not allowed to be used in this context", "comment" : "This is labeled as "Is Modifier" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value.", "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.", "min" : 0, "max" : "0", "base" : { "path" : "Quantity.comparator", "min" : 0, "max" : "1" }, "type" : [ { "code" : "code" } ], "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value", "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isModifier" : true, "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "QuantityComparator" } ], "strength" : "required", "description" : "How the Quantity should be understood and represented.", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/quantity-comparator" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SN.1 / CQ.1" }, { "identity" : "rim", "map" : "IVL properties" } ] }, { "id" : "Specimen.container.capacity.unit", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.container.capacity.unit", "short" : "Unit representation", "definition" : "A human-readable form of the unit.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.", "min" : 0, "max" : "1", "base" : { "path" : "Quantity.unit", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "(see OBX.6 etc.) / CQ.2" }, { "identity" : "rim", "map" : "PQ.unit" } ] }, { "id" : "Specimen.container.capacity.system", "path" : "Specimen.container.capacity.system", "short" : "System that defines coded unit form", "definition" : "The identification of the system that provides the coded form of the unit.", "comment" : "see http://en.wikipedia.org/wiki/Uniform_resource_identifier", "requirements" : "Need to know the system that defines the coded form of the unit.", "min" : 0, "max" : "1", "base" : { "path" : "Quantity.system", "min" : 0, "max" : "1" }, "type" : [ { "code" : "uri" } ], "condition" : [ "ele-1", "qty-3" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "(see OBX.6 etc.) / CQ.2" }, { "identity" : "rim", "map" : "CO.codeSystem, PQ.translation.codeSystem" } ] }, { "id" : "Specimen.container.capacity.code", "path" : "Specimen.container.capacity.code", "short" : "Coded form of the unit", "definition" : "A computer processable form of the unit in some unit representation system.", "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.", "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.", "min" : 0, "max" : "1", "base" : { "path" : "Quantity.code", "min" : 0, "max" : "1" }, "type" : [ { "code" : "code" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "(see OBX.6 etc.) / CQ.2" }, { "identity" : "rim", "map" : "PQ.code, MO.currency, PQ.translation.code" } ] }, { "id" : "Specimen.container.specimenQuantity", "path" : "Specimen.container.specimenQuantity", "short" : "Quantity of specimen within container", "definition" : "The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type.", "comment" : "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.container.specimenQuantity", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Quantity", "profile" : "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "qty-3", "severity" : "error", "human" : "If a code for the unit is present, the system SHALL also be present", "expression" : "code.empty() or system.exists()", "xpath" : "not(exists(f:code)) or exists(f:system)" }, { "key" : "sqty-1", "severity" : "error", "human" : "The comparator is not used on a SimpleQuantity", "expression" : "comparator.empty()", "xpath" : "not(exists(f:comparator))" } ], "isModifier" : false, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SN (see also Range) or CQ" }, { "identity" : "rim", "map" : "PQ, IVL<PQ>, MO, CO, depending on the values" }, { "identity" : "v2", "map" : "SAC-23 (value) SAC-24 (units" }, { "identity" : "rim", "map" : ".playedRole[classCode=CONT].quantity" } ] }, { "id" : "Specimen.container.specimenQuantity.id", "path" : "Specimen.container.specimenQuantity.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.container.specimenQuantity.extension", "path" : "Specimen.container.specimenQuantity.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.container.specimenQuantity.value", "path" : "Specimen.container.specimenQuantity.value", "short" : "Numerical value (with implicit precision)", "definition" : "The value of the measured amount. The value includes an implicit precision in the presentation of the value.", "comment" : "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).", "requirements" : "Precision is handled implicitly in almost all cases of measurement.", "min" : 0, "max" : "1", "base" : { "path" : "Quantity.value", "min" : 0, "max" : "1" }, "type" : [ { "code" : "decimal" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SN.2 / CQ - N/A" }, { "identity" : "rim", "map" : "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value" } ] }, { "id" : "Specimen.container.specimenQuantity.comparator", "path" : "Specimen.container.specimenQuantity.comparator", "short" : "< | <= | >= | > - how to understand the value", "definition" : "Not allowed to be used in this context", "comment" : "This is labeled as "Is Modifier" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value.", "requirements" : "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.", "min" : 0, "max" : "0", "base" : { "path" : "Quantity.comparator", "min" : 0, "max" : "1" }, "type" : [ { "code" : "code" } ], "meaningWhenMissing" : "If there is no comparator, then there is no modification of the value", "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isModifier" : true, "isSummary" : true, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "QuantityComparator" } ], "strength" : "required", "description" : "How the Quantity should be understood and represented.", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/quantity-comparator" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "SN.1 / CQ.1" }, { "identity" : "rim", "map" : "IVL properties" } ] }, { "id" : "Specimen.container.specimenQuantity.unit", "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean" : true } ], "path" : "Specimen.container.specimenQuantity.unit", "short" : "Unit representation", "definition" : "A human-readable form of the unit.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "requirements" : "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.", "min" : 0, "max" : "1", "base" : { "path" : "Quantity.unit", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "(see OBX.6 etc.) / CQ.2" }, { "identity" : "rim", "map" : "PQ.unit" } ] }, { "id" : "Specimen.container.specimenQuantity.system", "path" : "Specimen.container.specimenQuantity.system", "short" : "System that defines coded unit form", "definition" : "The identification of the system that provides the coded form of the unit.", "comment" : "see http://en.wikipedia.org/wiki/Uniform_resource_identifier", "requirements" : "Need to know the system that defines the coded form of the unit.", "min" : 0, "max" : "1", "base" : { "path" : "Quantity.system", "min" : 0, "max" : "1" }, "type" : [ { "code" : "uri" } ], "condition" : [ "ele-1", "qty-3" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "(see OBX.6 etc.) / CQ.2" }, { "identity" : "rim", "map" : "CO.codeSystem, PQ.translation.codeSystem" } ] }, { "id" : "Specimen.container.specimenQuantity.code", "path" : "Specimen.container.specimenQuantity.code", "short" : "Coded form of the unit", "definition" : "A computer processable form of the unit in some unit representation system.", "comment" : "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.", "requirements" : "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.", "min" : 0, "max" : "1", "base" : { "path" : "Quantity.code", "min" : 0, "max" : "1" }, "type" : [ { "code" : "code" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "(see OBX.6 etc.) / CQ.2" }, { "identity" : "rim", "map" : "PQ.code, MO.currency, PQ.translation.code" } ] }, { "id" : "Specimen.container.additive[x]", "path" : "Specimen.container.additive[x]", "short" : "Additive associated with container", "definition" : "Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA.", "comment" : "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.", "min" : 0, "max" : "1", "base" : { "path" : "Specimen.container.additive[x]", "min" : 0, "max" : "1" }, "type" : [ { "code" : "CodeableConcept" }, { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Substance" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "SpecimenContainerAdditive" } ], "strength" : "example", "description" : "Substance added to specimen container", "valueSetReference" : { "reference" : "http://hl7.org/fhir/ValueSet/v2-0371" } }, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "CE/CNE/CWE" }, { "identity" : "rim", "map" : "CD" }, { "identity" : "orim", "map" : "fhir:CodeableConcept rdfs:subClassOf dt:CD" }, { "identity" : "v2", "map" : "SAC-27" }, { "identity" : "rim", "map" : ".scopesRole[classCode=ADTV].player" } ] }, { "id" : "Specimen.note", "path" : "Specimen.note", "short" : "Comments", "definition" : "To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen).", "comment" : "For systems that do not have structured annotations, they can simply communicate a single annotation with no author or time. This element may need to be included in narrative because of the potential for modifying information. *Annotations SHOULD NOT* be used to communicate "modifying" information that could be computable. (This is a SHOULD because enforcing user behavior is nearly impossible).", "min" : 0, "max" : "*", "base" : { "path" : "Specimen.note", "min" : 0, "max" : "*" }, "type" : [ { "code" : "Annotation" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "N/A" }, { "identity" : "rim", "map" : "Act" }, { "identity" : "v2", "map" : "OBX" }, { "identity" : "rim", "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value" } ] }, { "id" : "Specimen.note.id", "path" : "Specimen.note.id", "representation" : [ "xmlAttr" ], "short" : "xml:id (or equivalent in JSON)", "definition" : "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 0, "max" : "1", "base" : { "path" : "Element.id", "min" : 0, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" } ] }, { "id" : "Specimen.note.extension", "path" : "Specimen.note.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. In order 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 is allowed to 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" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ext-1", "severity" : "error", "human" : "Must have either extensions or value[x], not both", "expression" : "extension.exists() != value.exists()", "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "N/A" } ] }, { "id" : "Specimen.note.author[x]", "path" : "Specimen.note.author[x]", "short" : "Individual responsible for the annotation", "definition" : "The individual responsible for making the annotation.", "comment" : "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.", "min" : 0, "max" : "1", "base" : { "path" : "Annotation.author[x]", "min" : 0, "max" : "1" }, "type" : [ { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/RelatedPerson" }, { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" }, { "key" : "ref-1", "severity" : "error", "human" : "SHALL have a contained resource if a local reference is provided", "expression" : "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))", "xpath" : "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "rim", "map" : "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" }, { "identity" : "v2", "map" : "N/A" }, { "identity" : "rim", "map" : "Act.participant[typeCode=AUT].role" } ] }, { "id" : "Specimen.note.time", "path" : "Specimen.note.time", "short" : "When the annotation was made", "definition" : "Indicates when this particular annotation was made.", "min" : 0, "max" : "1", "base" : { "path" : "Annotation.time", "min" : 0, "max" : "1" }, "type" : [ { "code" : "dateTime" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "isSummary" : true, "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "N/A" }, { "identity" : "rim", "map" : "Act.effectiveTime" } ] }, { "id" : "Specimen.note.text", "path" : "Specimen.note.text", "short" : "The annotation - text content", "definition" : "The text of the annotation.", "comment" : "Note that FHIR strings may not exceed 1MB in size", "min" : 1, "max" : "1", "base" : { "path" : "Annotation.text", "min" : 1, "max" : "1" }, "type" : [ { "code" : "string" } ], "condition" : [ "ele-1" ], "constraint" : [ { "key" : "ele-1", "severity" : "error", "human" : "All FHIR elements must have a @value or children", "expression" : "hasValue() | (children().count() > id.count())", "xpath" : "@value|f:*|h:div" } ], "mapping" : [ { "identity" : "rim", "map" : "n/a" }, { "identity" : "v2", "map" : "N/A" }, { "identity" : "rim", "map" : "Act.text" } ] } ] }, "differential" : { "element" : [ { "id" : "Specimen.type", "path" : "Specimen.type", "min" : 1, "binding" : { "extension" : [ { "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString" : "SpecimenType" } ], "strength" : "extensible", "valueSetUri" : "http://hl7.org/ips/fhir/ValueSet/specimen-type" } }, { "id" : "Specimen.type.coding", "path" : "Specimen.type.coding", "type" : [ { "code" : "Coding", "profile" : "http://hl7.org/fhir/uv/ips/StructureDefinition/coding-uv-ips" } ] }, { "id" : "Specimen.subject", "path" : "Specimen.subject", "type" : [ { "code" : "Reference", "targetProfile" : "http://hl7.org/fhir/StructureDefinition/Patient" } ] }, { "id" : "Specimen.receivedTime", "path" : "Specimen.receivedTime", "max" : "0" }, { "id" : "Specimen.parent", "path" : "Specimen.parent", "max" : "0" }, { "id" : "Specimen.request", "path" : "Specimen.request", "max" : "0" }, { "id" : "Specimen.collection.collector", "path" : "Specimen.collection.collector", "max" : "0" }, { "id" : "Specimen.collection.quantity", "path" : "Specimen.collection.quantity", "max" : "0" }, { "id" : "Specimen.collection.method.coding", "path" : "Specimen.collection.method.coding", "type" : [ { "code" : "Coding", "profile" : "http://hl7.org/fhir/uv/ips/StructureDefinition/coding-uv-ips" } ], "binding" : { "strength" : "extensible", "valueSetUri" : "http://trilliumbridge.eu/fhir/ValueSet/specimen-collection-method" } }, { "id" : "Specimen.collection.bodySite.coding", "path" : "Specimen.collection.bodySite.coding", "type" : [ { "code" : "Coding", "profile" : "http://hl7.org/fhir/uv/ips/StructureDefinition/coding-uv-ips" } ], "binding" : { "strength" : "extensible", "valueSetUri" : "http://hl7.org/fhir/ValueSet/body-site" } }, { "id" : "Specimen.processing", "path" : "Specimen.processing", "max" : "0" }, { "id" : "Specimen.container", "path" : "Specimen.container", "max" : "0" } ] } }