Skip to content

Instantly share code, notes, and snippets.

@lawley
Last active May 25, 2026 10:07
Show Gist options
  • Select an option

  • Save lawley/b95b1d09bf45268a0bfbac5b2ee9759c to your computer and use it in GitHub Desktop.

Select an option

Save lawley/b95b1d09bf45268a0bfbac5b2ee9759c to your computer and use it in GitHub Desktop.
ICD-11 FHIR comparison

Comparisons with Ontoserver MMS CodeSystem

$lookup and metadata

Fact WHO (id.who.int FHIR) Comparator
CapabilityStatement.fhirVersion 5.0.0 4.0.1
CodeSystem ops declared lookup, validate-code batch-validate-code, diff, find-matches, lookup, meta, meta-add, meta-delete, subsumes, validate, validate-code, x-upload-external
MMS CodeSystem present true
MMS CodeSystem.content not-present complete
MMS CodeSystem.count 37211
MMS CodeSystem.property codes allowMultipleValues, axisName, exclusion, exclusionNote, inclusion, inclusionNote, kind, notSelectable, parent, required, terms, valueSet
ICF CodeSystem.property codes allowMultipleValues, axisName, exclusion, exclusionNote, inclusion, inclusionNote, kind, notSelectable, parent, required, terms, valueSet
$lookup MMS 1A00 default property codes code, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/postcoordinationScale, http://id.who.int/icd/schema/postcoordinationScale, http://id.who.int/icd/schema/relatedEntitiesInPerinatalChapter, id, parent inactive, parent
$lookup MMS 1A00 default designations 4 57
$lookup MMS 1A00 hasDefinition false true
$lookup MMS 1A00 property=* codes code, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/postcoordinationScale, http://id.who.int/icd/schema/postcoordinationScale, http://id.who.int/icd/schema/relatedEntitiesInPerinatalChapter, id, parent parent
$lookup MMS 1A00 property=* definition false true
$lookup MMS URI-as-code http://id.who.int/icd/entity/416025325 status 200 404
$lookup ICF d5409 displayLanguage=en property codes code, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/postcoordinationScale, http://id.who.int/icd/schema/postcoordinationScale, id, parent, parent-code inactive, parent
$lookup ICF d5409 displayLanguage=es Vestirse sin especificación Dressing, unspecified
$lookup MMS ZZ99-NOT-A-CODE (unknown) status 400 404
$lookup MMS missing system param status 200 400
$lookup MMS postcoord DB91.0&XN0GA property codes code, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/indexTerm, http://id.who.int/icd/schema/postcoordinationScale, http://id.who.int/icd/schema/postcoordinationScale, http://id.who.int/icd/schema/relatedEntitiesInMaternalChapter, http://id.who.int/icd/schema/relatedEntitiesInPerinatalChapter, id, parent, parent-code inactive, parent
$lookup MMS postcoord DB91.0&XN0GA subprop-map ext (n/a) false

$validate-code

Fact WHO (id.who.int FHIR) Comparator
$validate-code MMS 1A00 (no display) message The CodeSystem http://id.who.int/icd/release/11/mms contains http://id.who.int/icd/release/11/mms/257068234 (code:1A00)
$validate-code MMS 1A00 + display=cholera (case) result true false
$validate-code MMS 1A00 + display=cholera message The CodeSystem http://id.who.int/icd/release/11/mms contains http://id.who.int/icd/release/11/mms/257068234 (code:1A00) Wrong Display Name 'cholera' for http://id.who.int/icd/release/11/mms#1A00. Valid display is 'Cholera' (for the language(s) '--')
$validate-code MMS 1A00 + display=Banana split message The display 'Banana split' does not match the preferred term 'Cholera' Wrong Display Name 'Banana split' for http://id.who.int/icd/release/11/mms#1A00. Valid display is 'Cholera' (for the language(s) '--')
$validate-code MMS 1A00 + display=Banana split server display Cholera
$validate-code MMS 1A00 + en display + lang=es result false true
$validate-code MMS 1A00 + en display + lang=es message The display 'Cholera' does not match the preferred term 'Cólera'
$validate-code MMS abstract 01 message The CodeSystem http://id.who.int/icd/release/11/mms contains http://id.who.int/icd/release/11/mms/1435254666 (code:01)
$validate-code MMS postcoord DB91.0&XN0GA message The CodeSystem http://id.who.int/icd/release/11/mms contains http://id.who.int/icd/release/11/mms/1057235839 (code:DB91.0)
$validate-code missing url status 200 400
$validate-code display-only (no code) status 200 400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment