eMediplan CHMED16AF Implementation Guide: Private Fields

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://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-privatefield">
      <extension url="name">
         <valueString value="PrivateFieldNameSample"/>
      </extension>
      <extension url="value">
         <valueString value="PrivateFieldValueSample"/>
      </extension>
   </extension>
  "extension" : [
    {
      "url" : "http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-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 CHMED16AF 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://chmed16af.emediplan.ch/fhir/StructureDefinition/.

In the future official defined extensions will be published here.