John Moehrke Test ValueSets Example
0.1.0 - ci-build International flag

John Moehrke Test ValueSets Example, published by John Moehrke (Moehrke Research LLC). This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/JohnMoehrke/test-valuesets/ and changes regularly. See the Directory of published versions

Home

Official URL: http://johnmoehrke.github.io/test-valuesets/ImplementationGuide/johnmoehrke.test-valuesets.example Version: 0.1.0
Draft as of 2026-01-30 Computable Name: JohnMoehrkeTestValueSetsExample

Shows how a ValueSet resource can be used to hold historic codes. Experimenting with inclusion of inactive codes.

First there is a Code System with active, inactive, retired, and inactive+retired codes.

Then there are a set of ValueSets that includes all codes from that Code System.

  • One ValueSet includes only the active codes from that Code System.
  • One ValueSet includes only the inactive codes from that Code System.
  • One ValueSet does not set the inactive parameter from that Code System.

Note that these three properly include active or not properly.

Second there is exploration of the SAMHSA ValueSets from VSAC, specifically valueSets that are marked as not maintained, and how they include inactive codes that are needed for historic data.

  • One ValueSet includes the active SAMHSA
  • One ValueSet includes the inactive SAMHSA
  • One ValueSet does not set the inactive parameter from SAMHSA

Note that all three of these are the same. So the ValueSets that are being included clearly don't indicate the active/inactive status of the codes.

Unfortunately the vsac codes are still made available to an IG by use of the vsac package.

  • Version 0.19.0 of the vsac package includes the SAMHSA ValueSets.
  • Later versions have removed the SAMHSA ValueSets.

Should not need to use the vsac package to get these ValueSets, but currently that is the only way.


This IG is founded on HL7 FHIR Revision 4.0.1 found at http://hl7.org/fhir/R4/

Source

The source code for this Implementation Guide can be found on GitHub

Cross Version Analysis

This is an R4 IG. None of the features it uses are changed in R4B, so it can be used as is with R4B systems. Packages for both R4 (johnmoehrke.test-valuesets.example.r4) and R4B (johnmoehrke.test-valuesets.example.r4b) are available.

Dependency Table

IGPackageFHIRComment
.. John Moehrke Test ValueSets Examplejohnmoehrke.test-valuesets.example#0.1.0R4
... HL7 Terminology (THO)hl7.terminology.r4#7.0.1R4Automatically added as a dependency - all IGs depend on HL7 Terminology
.... FHIR Extensions Packhl7.fhir.uv.extensions.r4#5.2.0R4
... VSACus.nlm.vsac#0.19.0R4
... FHIR Tooling Extensions IGhl7.fhir.uv.tools.r4#0.9.0R4for example references

Package hl7.fhir.uv.extensions.r4#5.2.0

This IG defines the global extensions - the ones defined for everyone. These extensions are always in scope wherever FHIR is being used (built Mon, Feb 10, 2025 21:45+1100+11:00)

Package hl7.fhir.uv.tools.r4#0.9.0

This IG defines the extensions that the tools use internally. Some of these extensions are content that are being evaluated for elevation into the main spec, and others are tooling concerns (built Tue, Dec 16, 2025 23:18+1100+11:00)

Globals Table

There are no Global profiles defined

IP Statements

No use of external IP (other than from the FHIR specification)