FHIR Specification (v0.0.82: DSTU CI-Build
1). The current version which supercedes this version

This is 5.0.0 . For a full list the Continuous Integration Build of available versions, see FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions . Page versions: R4B

Example CodeSystem/resource-validation-mode (XML)

Responsible Owner: FHIR Infrastructure R4 Work Group Standards Status : Informative

Raw JSON XML ( canonical form + also see XML Format Specification )

unitID Definition for Code SystemResourceValidationMode

{ "resourceType": "StructureDefinition", "id": "iso21090-ADXP-unitID", "url": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID", "name": "unitID", "publisher": "HL7", "contact": [ { "telecom": [ { "system": "url", "value": "http://www.hl7.org" } ] } ], "description": "The number or name of a specific unit contained within a building or complex, as assigned by that building or complex.", "status": "draft", "date": "2012-06-24", "mapping": [ { "identity": "rim", "uri": "http://hl7.org/v3", "name": "RIM" } ], "type": "extension", "abstract": false, "contextType": "datatype", "context": [ "Address" ], "base": "http://hl7.org/fhir/StructureDefinition/Extension", "snapshot": { "element": [ { "path": "Extension", "short": "unitID", "definition": "The number or name of a specific unit contained within a building or complex, as assigned by that building or complex.", "min": 0, "max": "*", "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "ADXP[partType=UNID]" } ] }, { "path": "Extension.id", "representation": [ "xmlAttr" ], "short": "xml:id (or equivalent in JSON)", "definition": "unique id for the element within a resource (for internal references).", "min": 0, "max": "1", "type": [ { "code": "id" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "path": "Extension.extension", "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.", "comments": "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": "*", "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "n/a" } ] }, { "path": "Extension.url", "representation": [ "xmlAttr" ], "short": "identifies the meaning of the extension", "definition": "Source of the definition for the extension code - a logical name or a URL.", "comments": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition should be version specific. This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #.", "min": 1, "max": "1", "type": [ { "code": "uri" } ], "fixedUri": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID", "mapping": [ { "identity": "rim", "map": "N/A" } ] }, { "path": "Extension.valueString", "short": "Value of extension", "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).", "min": 0, "max": "1", "type": [ { "code": "string" } ], "mapping": [ { "identity": "rim", "map": "N/A" } ] } ] }, "differential": { "element": [ { "path": "Extension", "short": "unitID", "definition": "The number or name of a specific unit contained within a building or complex, as assigned by that building or complex.", "min": 0, "max": "*", "type": [ { "code": "Extension" } ], "mapping": [ { "identity": "rim", "map": "ADXP[partType=UNID]" } ] }, { "path": "Extension.url", "type": [ { "code": "uri" } ], "fixedUri": "http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-unitID" }, { "path": "Extension.value[x]", "type": [ { "code": "string" } ] } ] } }
<?xml version="1.0" encoding="UTF-8"?>

<CodeSystem xmlns="http://hl7.org/fhir">  <id value="resource-validation-mode"/>   <meta>     <lastUpdated value="2025-12-17T09:50:17.012+00:00"/>   </meta>   <text>     <status value="generated"/>     <div xmlns="http://www.w3.org/1999/xhtml">      <p class="res-header-id">        <b> Generated Narrative: CodeSystem resource-validation-mode</b>       </p>       <a name="resource-validation-mode"> </a>       <a name="hcresource-validation-mode"> </a>       <p> This case-sensitive code system         <code> http://hl7.org/fhir/resource-validation-mode</code>  defines the following codes:      </p>       <table class="codes">        <tr>           <td style="white-space:nowrap">            <b> Code</b>           </td>           <td>             <b> Display</b>           </td>           <td>             <b> Definition</b>           </td>         </tr>         <tr>           <td style="white-space:nowrap">create            <a name="resource-validation-mode-create"> </a>           </td>           <td> Validate for Create</td>           <td> The server checks the content, and then checks that the content would be acceptable

             as a create (e.g. that the content would not violate any uniqueness constraints).</td> 
        </tr>         <tr>           <td style="white-space:nowrap">update            <a name="resource-validation-mode-update"> </a>           </td>           <td> Validate for Update</td>           <td> The server checks the content, and then checks that it would accept it as an update

             against the nominated specific resource (e.g. that there are no changes to immutable
             fields the server does not allow to change and checking version integrity if appropriate).</td> 
        </tr>         <tr>           <td style="white-space:nowrap">delete            <a name="resource-validation-mode-delete"> </a>           </td>           <td> Validate for Delete</td>           <td> The server ignores the content and checks that the nominated resource is allowed

             to be deleted (e.g. checking referential integrity rules).</td> 
        </tr>         <tr>           <td style="white-space:nowrap">profile            <a name="resource-validation-mode-profile"> </a>           </td>           <td> Validate Against a Profile</td>           <td> The server checks an existing resource as valid against the nominated profile.</td>         </tr>       </table>     </div>   </text>   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">    <valueCode value="fhir"/>   </extension>   <url value="http://hl7.org/fhir/resource-validation-mode"/>   <identifier>     <system value="urn:ietf:rfc:3986"/>     <value value="urn:oid:2.16.840.1.113883.4.642.4.119"/>   </identifier>   <identifier>     <use value="old"/>     <system value="urn:ietf:rfc:3986"/>     <value value="urn:oid:2.16.840.1.113883.4.642.1.109"/>   </identifier>   <identifier>     <use value="old"/>     <system value="urn:ietf:rfc:3986"/>     <value value="urn:oid:2.16.840.1.113883.4.642.2.48"/>   </identifier>   <version value="6.0.0-ballot3"/>   <name value="ResourceValidationMode"/>   <title value="Resource Validation Mode"/>   <status value="active"/>   <experimental value="false"/>   <publisher value="HL7 International"/>   <description value="ResourceValidationMode"/>   <jurisdiction>     <coding>       <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>       <code value="001"/>       <display value="World"/>     </coding>   </jurisdiction>   <caseSensitive value="true"/>   <content value="complete"/>   <concept>     <code value="create"/>     <display value="Validate for Create"/>     <definition value="The server checks the content, and then checks that the content would be acceptable

     as a create (e.g. that the content would not violate any uniqueness constraints)."/> 
  </concept>   <concept>     <code value="update"/>     <display value="Validate for Update"/>     <definition value="The server checks the content, and then checks that it would accept it as an update

     against the nominated specific resource (e.g. that there are no changes to immutable
     fields the server does not allow to change and checking version integrity if appropriate)."/> 
  </concept>   <concept>     <code value="delete"/>     <display value="Validate for Delete"/>     <definition value="The server ignores the content and checks that the nominated resource is allowed

     to be deleted (e.g. checking referential integrity rules)."/> 
  </concept>   <concept>     <code value="profile"/>     <display value="Validate Against a Profile"/>     <definition value="The server checks an existing resource as valid against the nominated profile."/>   </concept> 
</

CodeSystem

>

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.