eMediplan CHMED Implementation Guide
2.1.0 - CI Build Switzerland flag

eMediplan CHMED Implementation Guide, published by IG eMediplan. This is not an authorized publication; it is the continuous build for version 2.1.0). This version is based on the current content of https://github.com/ahdis/chmed/ and changes regularly. See the Directory of published versions

Change Log

All significant changes to this FHIR implementation guide will be documented on this page.

v2.1.0 (2022)

Open Issues

See open issues on GitHub.


  • Description of the meaning of the flag ‘mustSupport’ (Issue #10).
    • Removing the flags that were tentatively introduced in v2.0.0 before introducing the CH EMED definition for it.
    • Set flags were they correlate with the described meaning.
  • Terminologies
  • Define CHMED profiles for Body Weight and Body Height to specify the requested units and add the mapping to CHMED23A.
  • Addition of CHMED Patient profile for general use to existing CHMED Patient (Card) and CHMED Patient (Pre) profiles referenced in Compositions.
    • CHMED Patient is derived from CH Core Patient (general)
    • CHMED Patient Card/Pre are derived form CH Core Patient EPR (Composition)
  • Integrate the CH EMED Extension Substitution in the MedicationStatement (CH EMED Issue #91).

Changed / Updated

  • Update to the draft specification ‘CHMED23A’.
    • Renaming the implementation guide (verion independence): CHMED20AF -> CHMED
    • Changing the canonical url (verion independence): http://chmed20af.emediplan.ch -> http://chmed.emediplan.ch
    • Update mappings of the profiles.
  • Adjustments to the current status of CH EMED (v2.1.0).
  • Update Dosage according to the draft specification ‘eMedication Plan CHMED23A Posology’. For details see tab Dosage.
    • Add mapping of ‘InRes - Reserve medication’ to Dosage.asNeededBoolean (Issue #8).
    • Change mapping of ‘AppInstr - Application instruction’ from unstructured Dosage.text to MedicationStatement/MedicationRequest.note.text (Issue #13).
  • Remove unstructured dosage if there is a normal or split dosage (Issue #19).
  • Remove definition for Composition.attester:professionalAuthenticator because the fields Medication.ValBy and Medication.ValDt doesn’t exist anymore in CHMED23A.
  • Add additional reference PractitionerRole to MedicationStatement.informationSource and update corresponding mapping.
  • Rename tab ‘Private Fields’ to Extension and list all extensions (not only the private field one) included in the IG.
  • Rename tab ‘Introduction’ to Documents and adjustment of the display of the mapping. Link to the profile’s mapping table, instead of the duplicated, manually created table on this page.
  • Add ‘CHMED’ to the profile titles and names. This has no effect on implementations, but significantly improves the readability of the IG. For example, the Practitioner profile can be clearly differentiated as a ‘CHMED Practitioner’ from the FHIR basis Practitioner.
  • Switch to the new IG template and adaptations to its new requiremenst. This adaptation only slightly changes the appearance of the IG.
  • Transformation of the raw source (IG input) into FHIR Shorthand files (.fsh). This change has no impact on the IG published as a web page, it just makes it easier to author the FHIR artifacts for the IG.


v2.0.0 (2021-06-30)

v1.0.0 (2020-06-03)

  • Integration of the Swiss EPR context.
    • Depending on CH EMED v0.1.0
    • Renaming the implementation guide: CHMED16AF -> CHMED20AF
    • Changing the canonical url: http://chmed16af.emediplan.ch -> http://chmed20af.emediplan.ch
  • Remove the QR Code in the FHIR specification of CHMED16A.
  • Fix Loinc code for ‘History of medication use’ (Issue #1).
  • Fix package id (Issue #3).

v0.2.0 (2019-06-11)

Updated draft version of the implementation guide for the FHIR based definition of CHMED16A (V1.6), based on FHIR Release 4.

Changing implementation guide from STU3 to R4

  • Adapt ig.json to new FHIR Version and structure
  • Convert the StructutreDefintions from STU3 with R4 with the convert functionality of matchbox
  • Adjust problems in differentials in StructureDefinitions
  • CodeSystem: just minor updates (designation values are not displayed: this is due to the ig publisher, need to do a feature reqeust to add support)
  • ValueSets: just minor updates
  • Observation: conversion of CodeSystem Url
  • Condition: clinicalStatus changed to Coding with terminology clinicalStatus, fixed errors in snapshot generation
  • TimeOfGestation: changed profile that validation is supported (http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-obs-timeofgestation), needs pull request gf#21240, is now integrated
  • Questionnaire PMC example fixed for validation error (wrong order) and warning
  • QuestionnaireRespone.questionnaire instead of QuestionnaireRespone.reference
  • MedicationStatement.taken will be set to unk for conversion STU3->R4
  • MediciationRequest is now allowed[x], restricted valueBoelan, adjusted in examples and converter
  • New extension for private fields for patient, incl. conversion, adjusted in the documentation
  • SimpleQuanity profile for Unitcodes (new)
  • New Dosage profile for R4 instead of having it embedded in MedciationRequest and MedicationStatment
    • In STU3 0..* Dosage, Dosage has 0..1 rate[x] and 0..1 dose[x]
    • In R4 0..* Dosage, Dosage has 0..* doseRate with 0..1 rate[x] and 0..1 dose[x]
  • Adding Composition examples in STU3 and conversion to R4
  • Rebuilt bundles (with matchbox IgUploader and $document operation)
  • History added (see also http://wiki.hl7.org/index.php?title=Process_for_Publishing_a_FHIR_IG):
    1. package-list.json needs to be defined at cannonical url. then
    2. adapted https://github.com/HL7/fhir-ig-history-template to use javascript instead of cfml, workaround for cors issued with current build to redirect manual point to the canonical history page http://chmed16af.emediplan.ch/fhir/history.html if package-list.json cannot be reslved
  • Fixed Bundle.entry[1].resource.subject.reference error with pull request
  • migrated to version 0.2.0
  • publication of 0.2.0
  • StructureMaps are provided to transform from 0.1.0 to 0.2.0 and back. The original are in the maps0.1.0 and maps0.2.0 directory. With a special ig publisher edition this maps are converted to StructureMaps. To faciliate online build the StructureMaps are then copied.
cp ./output/StructureMap-*.xml ./resources/structuremap/
cd ./resources/structuremap/
rename -e 's/StructureMap-//' *.xml
cd ..
cd ..

v0.1.0 (2017-05-17)

Initial draft version of the implementation guide for the FHIR based definition of CHMED16A (V1.5), based on FHIR Release 3 (STU).