Release 5 Preview #3


Vocabulary Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

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

Jump past Narrative

Simple Code System (id = "example")

<?xml version="1.0" encoding="UTF-8"?>

<CodeSystem xmlns="">
  <id value="example"/> 
    <profile value=""/> 
    <status value="generated"/> 
    <div xmlns="">
      <p> CodeSystem &quot;ACME Codes for Cholesterol&quot;: This is an example code system that
        all the codes for serum cholesterol defined by ACME inc.</p> 
      <p> Developed by: FHIR project team (example)</p> 
      <p> Published for testing on 28-Jan 2016</p> 
      <p> This code system defines all the ACME codes for serum cholesterol:</p> 
      <table class="grid">
            <b> Code</b> 
            <b> Display</b> 
            <b> Definition</b> 
          <td> chol-mmol</td> 
          <td> SChol (mmol/L)</td> 
          <td> Serum Cholesterol, in mmol/L</td> 
          <td> chol-mass</td> 
          <td> SChol (mg/L)</td> 
          <td> Serum Cholesterol, in mg/L</td> 
          <td> chol</td> 
          <td> SChol</td> 
          <td> Serum Cholesterol</td> 
    for this example, we use a real URI, since this example does have a canonical URL
    at which it's posted. Alternatively, We could have used an OID, or a UUID 

    note that since we give a literal URL here, there's an expectation 
      that accessing that URL will give some form of representation of 
      the full code system, or a pointer about how to get more information. 
      This is not an absolute requirement, but it may be enforced by some 
      servers - for instance, the HL7 valueset registry will.     -->
  <url value=""/> 
<!--     an imaginary identifier. This is a non FHIR identifier - might be used in a 
    v2 context (though you always need to translate namespaces for v2)     -->
    <system value=""/> 
    <value value="internal-cholesterol-inl"/> 
<!--     for version, we are going to simply use the day of publication. This is also 
    arbitrary - whatever is here is what people use to refer to the version. 
    Could also be a UUID too. Note that you should change the identify of the code 
    system, not the version, if existing codes are redefined (e.g. don't do that!)    -->
  <version value="20160128"/> 

  <name value="ACMECholCodesBlood"/> 
  <title value="ACME Codes for Cholesterol in Serum/Plasma"/> 
  <status value="draft"/> 
  <experimental value="true"/> 
  <date value="2016-01-28"/> 
  <publisher value="Acme Co"/> 
    <name value="FHIR project team"/> 
      <system value="url"/> 
      <value value=""/> 
  <description value="This is an example code system that includes all the ACME codes for serum/plasma cholesterol
   from v2.36."/> 
  <!--     it's often unstated - are codes case sensitive or not. And 
       it can be the cause of operational or clinical safety problems. 
       So FHIR requires that it always be specified.     -->
  <caseSensitive value="true"/> 
  <content value="complete"/> 
  <!--   filter: Code Systems can define filters that value sets can 
    use to select sets of codes. Note that value sets can also use
    properties (see, e.g. the valueset-example-supplement example)
    and this is always preferred because anything asserted as a 
    filter in the code system will need custom code to make it work.
    For this reason, filters are generally only defined in high value 
    published code systems (unlike this extremely low value example)    -->
    <code value="acme-plasma"/> 
    <description value="An internal filter used to select codes that are only used with plasma"/> 
    <operator value="="/> 
    <value value="the value of this filter is either 'true' or 'false'"/>     
      ACME's defined definitions. Note that these are not 
      *good* definitions - but they are very commonly the kind 
      of definitions that are encountered in production
    <code value="chol-mmol"/> 
    <display value="SChol (mmol/L)"/> 
    <definition value="Serum Cholesterol, in mmol/L"/> 
        <system value=""/> 
        <code value="internal-label"/> 
      <value value="From ACME POC Testing"/> 
    <code value="chol-mass"/> 
    <display value="SChol (mg/L)"/> 
    <definition value="Serum Cholesterol, in mg/L"/> 
        <system value=""/> 
        <code value="internal-label"/> 
      <value value="From Paragon Labs"/> 
    <code value="chol"/> 
    <display value="SChol"/> 
    <definition value="Serum Cholesterol"/> 
        <system value=""/> 
        <code value="internal-label"/> 
      <value value="Obdurate Labs uses this with both kinds of units..."/> 

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.