This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4
Vocabulary Work Group | Maturity Level: N/A | Standards Status: Informative |
Raw Turtle (+ also see Turtle/RDF Format Specification)
Operation Definition
@prefix fhir: <http://hl7.org/fhir/> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . # - resource ------------------------------------------------------------------- [] a fhir:OperationDefinition; fhir:Resource.id [ fhir:value "NamingSystem-preferred-id"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "extensions" ] ]; fhir:DomainResource.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ]; fhir:Extension.value [ fhir:value "1" ] ], [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ]; fhir:Extension.value [ fhir:value "trial-use" ] ]; fhir:CanonicalResource.url [ fhir:value "http://hl7.org/fhir/OperationDefinition/NamingSystem-preferred-id"]; fhir:CanonicalResource.version [ fhir:value "5.0.0-ballot"]; fhir:CanonicalResource.name [ fhir:value "PreferredId"]; fhir:CanonicalResource.title [ fhir:value "Fetch Preferred id"]; fhir:CanonicalResource.status [ fhir:value "draft"]; fhir:CanonicalResource.experimental [ fhir:value "false"]; fhir:CanonicalResource.date [ fhir:value "2022-09-07T10:58:29+10:00"]; fhir:CanonicalResource.publisher [ fhir:value "HL7 (FHIR Project)"]; fhir:CanonicalResource.contact [ fhir:ContactDetail.telecom [ fhir:ContactPoint.system [ fhir:value "url" ]; fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ] ], [ fhir:ContactPoint.system [ fhir:value "email" ]; fhir:ContactPoint.value [ fhir:value "fhir@lists.hl7.org" ] ] ]; fhir:CanonicalResource.description [ fhir:value "This operation returns the preferred identifiers for identifiers, and terminologies. The operation takes 2 parameters: \n\n* a system identifier - either a URI, an OID, or a v2 table 0396 (other) code \n* a code for what kind of identifier is desired (URI, OID, v2 table 0396 identifier) \n\nand returns either the requested identifier, or an HTTP errors response with an OperationOutcome because either the provided identifier was not recognized, or the requested identiifer type is not known. \n\nThe principle use of this operation is when converting between v2, CDA and FHIR Identifier/CX/II and CodeableConcepts/C(N/W)E/CD but the operation may also find use when converting metadata such as profiles."]; fhir:OperationDefinition.url [ fhir:value "http://hl7.org/fhir/OperationDefinition/NamingSystem-preferred-id"]; fhir:OperationDefinition.version [ fhir:value "5.0.0-ballot"]; fhir:OperationDefinition.name [ fhir:value "PreferredId"]; fhir:OperationDefinition.title [ fhir:value "Fetch Preferred id"]; fhir:OperationDefinition.status [ fhir:value "draft"]; fhir:OperationDefinition.kind [ fhir:value "operation"]; fhir:OperationDefinition.experimental [ fhir:value "false"]; fhir:OperationDefinition.date [ fhir:value "2022-09-07T10:58:29+10:00"]; fhir:OperationDefinition.publisher [ fhir:value "HL7 (FHIR Project)"]; fhir:OperationDefinition.contact [ fhir:ContactDetail.telecom [ fhir:ContactPoint.system [ fhir:value "url" ]; fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ] ], [ fhir:ContactPoint.system [ fhir:value "email" ]; fhir:ContactPoint.value [ fhir:value "fhir@lists.hl7.org" ] ] ]; fhir:OperationDefinition.description [ fhir:value "This operation returns the preferred identifiers for identifiers, and terminologies. The operation takes 2 parameters: \n\n* a system identifier - either a URI, an OID, or a v2 table 0396 (other) code \n* a code for what kind of identifier is desired (URI, OID, v2 table 0396 identifier) \n\nand returns either the requested identifier, or an HTTP errors response with an OperationOutcome because either the provided identifier was not recognized, or the requested identiifer type is not known. \n\nThe principle use of this operation is when converting between v2, CDA and FHIR Identifier/CX/II and CodeableConcepts/C(N/W)E/CD but the operation may also find use when converting metadata such as profiles."]; fhir:OperationDefinition.affectsState [ fhir:value "false"]; fhir:OperationDefinition.code [ fhir:value "preferred-id"]; fhir:OperationDefinition.comment [ fhir:value "Servers handle this request by finding the provided identifier in their known naming systems, and returning the requested identifier type ([NamingSystem.uniqueId.type](namingsystem-definitions.html#NamingSystem.uniqueId.type)). If there is more than one identifier of the specified type (for the specified date), then the 'preferred' identifier will be returned. If there is only one identifier, that identifier will be returned even if it is not preferred. If there are multiple preferred identifiers or multiple identifiers with none marked as preferred, the system MAY return an error or may list all identifiers applicable for that date and period. \n\nIf the server wishes, it can also look through all code systems and value sets it knows about when attempting to find the requested identifier."]; fhir:OperationDefinition.resource [ fhir:value "NamingSystem"]; fhir:OperationDefinition.system [ fhir:value "false"]; fhir:OperationDefinition.type [ fhir:value "true"]; fhir:OperationDefinition.instance [ fhir:value "false"]; fhir:OperationDefinition.parameter [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "id" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "The server parses the provided identifier to see what type it is (e.g. a URI, an OID as a URI, a plain OID, or a v2 table 0396 code). If the server can't tell what type of identifier it is, it can try it as multiple types. It is an error if more than one system matches the provided identifier" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "type" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "code" ]; fhir:OperationDefinitionParameterComponent.binding [ fhir:Element.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ]; fhir:Extension.value [ fhir:value "NamingSystemIdentifierType" ] ]; fhir:OperationDefinitionParameterBindingComponent.strength [ fhir:value "required" ]; fhir:OperationDefinitionParameterBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/namingsystem-identifier-type|5.0.0-ballot" ] ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "date" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "in" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "0" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value " If specified, the operation will indicate what the preferred identifier was on the specified date. If not specified, the operation will provide the preferred identifier as of 'now'" ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "dateTime" ] ], [ fhir:OperationDefinitionParameterComponent.name [ fhir:value "result" ]; fhir:OperationDefinitionParameterComponent.use [ fhir:value "out" ]; fhir:OperationDefinitionParameterComponent.min [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.max [ fhir:value "1" ]; fhir:OperationDefinitionParameterComponent.documentation [ fhir:value "OIDs are return as plain OIDs (not the URI form)." ]; fhir:OperationDefinitionParameterComponent.type [ fhir:value "string" ] ] . # -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.