--- type: "example" title: "CodeSystem Example: codesystem-example" resource: "CodeSystem" example: "codesystem-example" --- # CodeSystem Example: codesystem-example ## Narrative CodeSystem "ACME Codes for Cholesterol": This is an example code system that includes all the codes for serum cholesterol defined by ACME inc. Developed by: FHIR project team (example) Published for testing on 28-Jan 2016 This code system defines all the ACME codes for serum cholesterol: | **Code** | **Display** | **Definition** | | --- | --- | --- | | chol-mmol | SChol (mmol/L) | Serum Cholesterol, in mmol/L | | chol-mass | SChol (mg/L) | Serum Cholesterol, in mg/L | | chol | SChol | Serum Cholesterol | ## Example XML ```xml

CodeSystem "ACME Codes for Cholesterol": This is an example code system that includes all the codes for serum cholesterol defined by ACME inc.

Developed by: FHIR project team (example)

Published for testing on 28-Jan 2016

This code system defines all the ACME codes for serum cholesterol:

Code Display Definition
chol-mmol SChol (mmol/L) Serum Cholesterol, in mmol/L
chol-mass SChol (mg/L) Serum Cholesterol, in mg/L
chol SChol Serum Cholesterol
<status value="draft"/> <experimental value="true"/> <date value="2016-01-28"/> <publisher value="HL7 International / Terminology Infrastructure"/> <contact> <telecom> <system value="url"/> <value value="http://hl7.org/fhir"/> </telecom> </contact> <contact> <telecom> <system value="url"/> <value value="http://www.hl7.org/Special/committees/Vocab/index.cfm"/> </telecom> </contact> <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) --> <filter> <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'"/> </filter> <!-- 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 --> <concept> <code value="chol-mmol"/> <display value="SChol (mmol/L)"/> <definition value="Serum Cholesterol, in mmol/L"/> <designation> <use> <system value="http://acme.com/config/fhir/codesystems/internal"/> <code value="internal-label"/> </use> <value value="From ACME POC Testing"/> </designation> </concept> <concept> <code value="chol-mass"/> <display value="SChol (mg/L)"/> <definition value="Serum Cholesterol, in mg/L"/> <designation> <use> <system value="http://acme.com/config/fhir/codesystems/internal"/> <code value="internal-label"/> </use> <value value="From Paragon Labs"/> </designation> </concept> <concept> <code value="chol"/> <display value="SChol"/> <definition value="Serum Cholesterol"/> <designation> <use> <system value="http://acme.com/config/fhir/codesystems/internal"/> <code value="internal-label"/> </use> <value value="Obdurate Labs uses this with both kinds of units..."/> </designation> </concept> </CodeSystem> ```