eMediplan CHMED20AF Implementation Guide: Private Fields

This page is part of the eMediplan CHMED20AF FHIR IG (R4) (v2.0.0: STU 1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions

Private Fields

Introduction

CHMED16A has the concept of Private Fields which can be added to Patient, Medication and Medicament. The Private Fields can be represented in FHIR with extensions and can be added to Patient, Composition (CHMED16A: Medication), MedicationStatement (CHMED16A: Medicament)

   <extension url="http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-privatefield">
      <extension url="name">
         <valueString value="PrivateFieldNameSample"/>
      </extension>
      <extension url="value">
         <valueString value="PrivateFieldValueSample"/>
      </extension>
   </extension>
  "extension" : [
    {
      "url" : "http://chmed20af.emediplan.ch/fhir/StructureDefinition/chmed20af-privatefield",
      "extension" : [
        {
          "url" : "name",
          "valueString" : "name"
        },
        {
          "url" : "value",
          "valueString" : "value"
        }
      ]
    }
  ]

The name of the field can be indicated with the extension name in attribute valueString, the value of the field with the extension value and attribute valueString. See sample for patient.

Caveat

Currently in CHMED20AF their are no private fields explicitly defined. The conversion to the QR format considers extension definitions for Composition (equals to Medication in CHMED16A), Patient and MedicationStatement (equals to Medicament) with a canonical url starting with http://chmed20af.emediplan.ch/fhir/StructureDefinition/.

In the future official defined extensions will be published here.