CH EMED (R4)
5.0.0 - trial-use Switzerland flag

This page is part of the CH EMED (R4) (v5.0.0: STU 5) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

Relationship Between Documents

In order to represent the relationship between the individual eMedication documents and their resources (MedicationStatement, MedicationDispense, MedicationAdministration, MedicationRequest, Observation), extensions referencing the document and its resources are defined. These referencing mechanism is based on the usage of the identifiers from the document its resources.

The following figure illustrates the documents from the use case (DE, FR) and schematically shows this referencing, which depicts the relationship between the documents.

Note on the colors:
The background color of the resources reflects the medication (Triatec: orange, Beloc Zok: purple, Norvasc: blue).
The colors of the identifiers and the resource box should reflect the relationships/origins. Note that from use case step 2-3 onwards, the colors are repeated without a reference to the previous steps.

Fig.: Schematic overview of the relationship between the documents from the use case.

Fig.: Schematic overview of the relationship between the documents from the use case.

Identifiers

Identifier Format

In CH EMED it is specified to use an UUID as identifier, for both the document and resource identifiers.
For representing UUIDs the system needs to be urn:ietf:rfc:3986 as described here. The value has to start with urn:uuid:.

Document Identifier

Document identifier in 1-1 Medication Treatment Plan document:
Bundle.identifier

  "identifier" : {
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:uuid:7aa20b27-eac0-4fef-a7b9-b10196718b9f"
  }

Resource Identifier

Resource identifier in 1-1 Medication Treatment Plan document:
MedicationStatement.identifier (in this example the resource identifier has the same value as the document identifier, but it does not have to be that way)

  "identifier" : {
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:uuid:7aa20b27-eac0-4fef-a7b9-b10196718b9f"
  }

Referencing Extensions

Extension pairs are used in all the extensions (shown below) which are used to reference the documents and its resources.

Extension in 1-2 Medication Dispense document to reference the 1-1 Medication Treatment Plan document (externalDocumentId) and its MedicationStatement (id):
MedicationDispense.extension:treatmentPlan

  {
    "extension" : [
      {
        "url" : "id",
        "valueIdentifier" : {
            "system" : "urn:ietf:rfc:3986",
            "value" : "urn:uuid:7aa20b27-eac0-4fef-a7b9-b10196718b9f"
        }
      },
      {
        "url" : "externalDocumentId",
        "valueIdentifier" : {
            "system" : "urn:ietf:rfc:3986",
            "value" : "urn:uuid:7aa20b27-eac0-4fef-a7b9-b10196718b9f"
        }
      }
    ],
    "url" : "http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan"
  }

Extensions

The following table shows which extension can be used in which document. It shows which resource refers to which document (with its resource).

Documents Resources CH EMED Extension Treatment Plan
Extension to reference an external MedicationStatement and the MTP that contains it
CH EMED Extension Dispense
Extension to reference an external MedicationDispense/ MedicationAdministration and the DIS that contains it
CH EMED Extension Prescription
Extension to reference an external MedicationRequest and the PRE that contains it
CH EMED Extension Pharmaceutical Advice
Extension to reference an external Observation and the PADV that contains it
MTP MedicationStatement (MTP) no self-reference
DIS MedicationDispense (DIS) MedicationDispense.
extension:treatmentPlan
-> MTP & MedicationStatement
no self-reference MedicationDispense.
extension:prescription
-> PRE & MedicationRequest
MedicationDispense.
extension:pharmaceuticalAdvice
-> PADV & Observation
MedicationAdministration (DIS) MedicationAdministration.
extension:treatmentPlan
-> MTP & MedicationStatement
no self-reference MedicationAdministration.
extension:prescription
-> PRE & MedicationRequest
MedicationAdministration.
extension:pharmaceuticalAdvice
-> PADV & Observation
PRE MedicationRequest (PRE) MedicationRequest.
extension:treatmentPlan
-> MTP & MedicationStatement
no self-reference
PADV Observation (PADV) Observation.
extension:treatmentPlan
-> MTP & MedicationStatement
Observation.
extension:dispense
-> DIS & MedicationDispense/
MedicationAdministration
Observation.
extension:prescription
-> PRE & MedicationRequest
no self-reference
CARD MedicationStatement (CARD) MedicationStatement.
extension:treatmentPlan
-> MTP & MedicationStatement
LIST MedicationStatement (LIST),
MedicationStatement Changed (LIST)
MedicationStatement.
extension:parentDocument
-> MTP & MedicationStatement
MedicationDispense (LIST) MedicationDispense.
extension:treatmentPlan
-> MTP & MedicationStatement
MedicationDispense.
extension:parentDocument
-> DIS & MedicationDispense
MedicationDispense.
extension:prescription
-> PRE & MedicationRequest
MedicationDispense.
extension:pharmaceuticalAdvice
-> PADV & Observation
MedicationAdministration (LIST) MedicationAdministration.
extension:treatmentPlan
-> MTP & MedicationStatement
MedicationAdministration.
extension:parentDocument
-> DIS & MedicationAdministration
MedicationAdministration.
extension:prescription
-> PRE & MedicationRequest
MedicationAdministration.
extension:pharmaceuticalAdvice
-> PADV & Observation
MedicationRequest (LIST),
MedicationRequest Changed (LIST)
MedicationRequest.
extension:treatmentPlan
-> MTP & MedicationStatement
MedicationRequest.
extension:parentDocument
-> PRE & MedicationRequest
Observation (LIST) Observation.
extension:treatmentPlan
-> MTP & MedicationStatement
Observation.
extension:dispense
-> DIS & MedicationDispense/
MedicationAdministration
Observation.
extension:prescription
-> PRE & MedicationRequest
Observation.
extension:parentDocument
-> PADV & Observation