Zorgtoepassing Medicatieoverdracht
Working version v1.8.1 v1.7.8
Working version v1.8.1 v1.7.8

Developer Guide - Query Design

Supported message formats and interfaces

The generic query supports the Nictiz MP-MGR transaction through two message formats: HL7v3/CDA and FHIR.

Clients can access the generic query via AORTA-LSP using the interfaces:

  • The AORTA-LSP HL7v3/CDA transaction – Generieke query naar LSP

  • The AORTA-LSP AoF FHIR call – $get-aorta-data

For the MP standard, AORTA-LSP currently provides only the generic query to GBx resource clients. Building block–specific queries are not directly available to GBx resource clients; instead, these specific queries are used internally by AORTA-LSP and LSP+ in their function as information brokers.

Supported system roles

For FHIR-based GBx resource clients, the available functionality is intentionally limited to the generic query. This restriction is enforced through TKID management. FHIR-based GBx resource clients are assigned only the following system roles:

  • Operation Initiërend Systeem (OIS) system role: $get-aorta-data.OIS.R4.1

  • Search result Ontvangend Systeem (SOS) system roles, one for each supported building block

Access to building block–specific queries is disabled by not assigning the SIS Search Initiërend Systeem roles.

These SIS roles correspond to the building blocks that can be retrieved through specific queries.

Supported building blocks

These are the underlying building block which are retrieved via specific queries;

Building blocks in Dutch

Abbr. in Dutch

Building blocks in English

Medicatieafspraak

MA

Medication agreement

Wisselend doseerschema

WDS

Variable dosing regimen

Verstrekkingsverzoek

VV

Dispense request

Toedieningsafspraak

TA

Administration agreement

Medicatieverstrekking

MVE

Medication dispense

Medicatietoediening

MTD

Medication administration

Medicatiegebruik

MGB

Medication use

The contextcode which is used as argument in the generic query determines which building blocks are in scope.

The verstrekkingsverzoek is only queryable by the patient.

Supported filtering

The generic query supports filtering. Parameters can be used as filter arguments for the generic query. However, the naming of these parameters is not yet harmonized across the generic query, the building block–specific queries, the HL7v3 and FHIR message formats, and the Nictiz information standard.

Execution of Generic Queries via AORTA-LSP

The generic query is executed as a series of building block–specific queries directed at the GBx resource servers.
The resulting data is subsequently consolidated into a single, unified response.

Within the MP9 context, the generic query is composed of discrete queries for each MP9 building block. The AORTA-LSP is responsible for performing message format transformations between GBx resource clients and servers. Furthermore, it ensures compliance with the applicable authorization rules governing the end user of the query, whether this is a care professional or a patient.

Nictiz transaction

This is the conceptual Nictiz transaction that supports querying. It is used to query the building blocks for a specific patient.

AORTA-LSP HL7v3/CDA transaction

This is the AORTA-LSP HL7v3/CDA transaction that realizes the conceptual Nictiz transaction.

Scenario

Dataset and Template

VZVZ maps this to this dataset and corresponding template.

Description

Template VZVZ Generieke Geparameteriseerde Query Zorggegevens

URL

Template 2.16.840.1.113883.2.4.3.111.3.3.10.9048 - generiekeGeparameteriseerdeQueryZorggegevens


Data elements

This results in the following data structure for a parameter of the generic query.

hl7:GQZG_IN000001NL02
>hl7:ControlActProcess
>>hl7:queryByParameter
>>>hl7:parameter
>>>>hl7:value
>>>>hl7:semanticsText

AORTA-LSP AoF FHIR call

This is the AORTA-LSP AoF FHIR call that realizes the conceptual Nictiz transaction.

See Interfaces Resource Broker ZA-in

Call Syntax

GET [base]$get-aorta-data
?[context]
{&[destination]}
{&[effective-time]}
{&[therapy-identifier]}
{&[classifier]}
{&[instance-identifier]}

MP9v3 generic query parameters

Below is the mapping of parameter names between the HL7v3 and FHIR message formats, and the Nictiz information standard.

Column AoF corresponds to the parameters for the AORTA-LSP AoF FHIR call.

Column HL7v3 corresponds to the parameters in the AORTA HL7v3/CDA Dataset and Template.

Parameters play a role in both the generic query with contextcode as well in buildingblock specific queries.

The generic query parameters are mapped to buildingblock specific queries by the AORTA-LSP. Data sources are queried by the AORTA-LSP using buildingblock specific queries.

Parameter naming in different contexts

  • The Functional Design (FD) defines the Nictiz parameters.

  • The Generic Query via the AoF route uses the FHIR operation $get-aorta-data, which relies on predefined (abstract) parameters.

  • The Specific Query building blocks via the AoF route use FHIR search per resource, applying the corresponding FHIR search parameters.

  • The Generic Query via the ZIM route uses HL7v3 parameters.

Title Nictiz Parameter AoF $get-aorta-data parameter FHIR search parameter HL7v3 VZVZ Generieke Geparameteriseerde Query Zorggegevens
Parameter - LaatsteStop=FALSE or Empty

LaatsteStop=FALSE or Empty

n.v.t.

Without operation $latest-stops

TBD

n.v.t.

Parameter - LaatsteStop=TRUE

LaatsteStop=TRUE

not supported

With operation $latest-stops

TBD

n.v.t.

Parameter - Bouwsteen.Identificatie

Bouwsteen.Identificatie

instance-identifier

identifier

Identificatie

Identificatie

Parameter - Bouwsteen.Type

Bouwsteen.Type

context (context determines building blocks)

category

impliciet o.b.v. contextCode

impliciet o.b.v. contextCode

Parameter - Toedieningsperiode

Toedieningsperiode

effective-time

effective-time

ToedieningsPeriode

ToedieningsPeriode

Parameter - Mbh.Identificatie

Mbh.Identificatie

therapy-identifier

pharmaceutical-treatment-identifier

MBHid

MBHid

Parameter - Productcode

Productcode

-

medication.code

ProductCode

ProductCode

Parameter - Gebruiksperiode

Gebruiksperiode

effective-time

period-of-use

GebruiksPeriode

GebruiksPeriode

Parameter - Patient.IdentificatieNumber

Patient.IdentificatieNumber

patient specifiek

patient.identifier

patient specifiek

patient specifiek

Parameter - Verstrekkingsperiode

Verstrekkingsperiode

effective-time

whenhandedover

VerstrekkingsPeriode

VerstrekkingsPeriode

Title Nictiz Parameter VZVZ Opvragen Doseerschema VZVZ Opvragen Medicatieafspraken VZVZ Opvragen Medicatiegebruik VZVZ Opvragen Medicatieverstrekkingen VZVZ Opvragen Toedieningen VZVZ Opvragen Toedieningsafspraken VZVZ Opvragen Verstrekkingsverzoeken
Parameter - LaatsteStop=FALSE or Empty

LaatsteStop=FALSE or Empty

LaatsteStop=FALSE or LaatsteStop=nil

LaatsteStop=FALSE or LaatsteStop=nil

n.v.t.

n.v.t.

n.v.t.

LaatsteStop=FALSE or LaatsteStop=nil

n.v.t.

Parameter - LaatsteStop=TRUE

LaatsteStop=TRUE

LaatsteStop=TRUE; Custom search behaviour for latest stops.

LaatsteStop=TRUE; Custom search behaviour for latest stops

n.v.t.

n.v.t.

n.v.t.

LaatsteStop=TRUE; Custom behaviour for latest stops

n.v.t.

Parameter - Bouwsteen.Identificatie

Bouwsteen.Identificatie

Identificatie

Identificatie

Identificatie

Identificatie

Identificatie

Identificatie

Identificatie

Parameter - Bouwsteen.Type

Bouwsteen.Type

impliciet o.b.v. bouwsteen specifieke interactie

impliciet o.b.v. bouwsteen specifieke interactie

impliciet o.b.v. bouwsteen specifieke interactie

impliciet o.b.v. bouwsteen specifieke interactie

impliciet o.b.v. bouwsteen specifieke interactie

impliciet o.b.v. bouwsteen specifieke interactie

impliciet o.b.v. bouwsteen specifieke interactie

Parameter - Toedieningsperiode

Toedieningsperiode

n.v.t.

n.v.t.

n.v.t.

n.v.t.

ToedieningsPeriode

n.v.t.

n.v.t.

Parameter - Mbh.Identificatie

Mbh.Identificatie

MBHid

MBHid

MBHid

MBHid

MBHid

MBHid

MBHid

Parameter - Productcode

Productcode

ProductCode

ProductCode

ProductCode

ProductCode

ProductCode

ProductCode

ProductCode

Parameter - Gebruiksperiode

Gebruiksperiode

GebruiksPeriode

GebruiksPeriode

GebruiksPeriode

n.v.t.

n.v.t.

GebruiksPeriode

n.v.t.

Parameter - Patient.IdentificatieNumber

Patient.IdentificatieNumber

patient specifiek

patient specifiek

patient specifiek

patient specifiek

patient specifiek

patient specifiek

patient specifiek

Parameter - Verstrekkingsperiode

Verstrekkingsperiode

n.v.t.

n.v.t.

n.v.t.

VerstrekkingsPeriode

n.v.t.

n.v.t.

n.v.t.