{ "description": "Base StructureDefinition for CodeableReference Type: A reference to a resource (by instance), or instead, a reference to a cencept defined in a terminology or ontology (by class).", "_filename": "codeablereference.profile.json", "package_name": "hl7.fhir.r5.examples", "date": "2021-05-03T21:59:52+10:00", "derivation": "specialization", "publisher": "HL7 FHIR Standard", "fhirVersion": "4.6.0", "purpose": "This is a common pattern in record keeping - a reference may be made to a specific condition, observation, plan, or definition, or a reference may be made to a general concept defined in a knowledge base somewhere.", "name": "CodeableReference", "mapping": [ { "uri": "http://hl7.org/v3", "name": "RIM Mapping", "identity": "rim" } ], "abstract": false, "type": "CodeableReference", "experimental": null, "resourceType": "StructureDefinition", "title": null, "package_version": "4.6.0", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "draft" } ], "snapshot": { "element": [ { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "CodeableReference", "min": 0, "definition": "A reference to a resource (by instance), or instead, a reference to a cencept defined in a terminology or ontology (by class).", "isModifier": false, "short": "Reference to a resource or a concept", "mapping": [ { "map": "n/a", "identity": "rim" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "draft" } ], "max": "*", "id": "CodeableReference", "base": { "max": "*", "min": 0, "path": "CodeableReference" } }, { "path": "CodeableReference.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUri": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "CodeableReference.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "CodeableReference.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "isModifier": false, "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "CodeableReference.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.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "CodeableReference.concept", "min": 0, "definition": "A reference to a concept - e.g. the information is identified by it's general classto the degree of precision found in the terminology.", "isModifier": false, "short": "Reference to a concept (by class)", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "max": "1", "id": "CodeableReference.concept", "base": { "max": "1", "min": 0, "path": "CodeableReference.concept" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "CodeableReference.reference", "min": 0, "definition": "A reference to a resource the provides exact details about the information being referenced.", "isModifier": false, "short": "Reference to a resource (by instance)", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Reference" } ], "max": "1", "id": "CodeableReference.reference", "base": { "max": "1", "min": 0, "path": "CodeableReference.reference" }, "isSummary": true } ] }, "status": "draft", "id": "8716887b-dffa-4b5c-99d2-0518dc79caaf", "kind": "complex-type", "url": "http://hl7.org/fhir/StructureDefinition/CodeableReference", "version": "4.6.0", "differential": { "element": [ { "id": "CodeableReference", "max": "*", "min": 0, "path": "CodeableReference", "short": "Reference to a resource or a concept", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", "valueCode": "draft" } ], "definition": "A reference to a resource (by instance), or instead, a reference to a cencept defined in a terminology or ontology (by class)." }, { "path": "CodeableReference.concept", "min": 0, "definition": "A reference to a concept - e.g. the information is identified by it's general classto the degree of precision found in the terminology.", "short": "Reference to a concept (by class)", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "max": "1", "id": "CodeableReference.concept", "isSummary": true }, { "path": "CodeableReference.reference", "min": 0, "definition": "A reference to a resource the provides exact details about the information being referenced.", "short": "Reference to a resource (by instance)", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Reference" } ], "max": "1", "id": "CodeableReference.reference", "isSummary": true } ] }, "contact": [ { "telecom": [ { "value": "http://hl7.org/fhir", "system": "url" } ] } ], "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DataType" }