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.
| Title |
|---|
| No content found. |
AORTA-LSP HL7v3/CDA transaction
This is the AORTA-LSP HL7v3/CDA transaction that realizes the conceptual Nictiz transaction.
Scenario
Description | Generieke query naar LSP |
|---|---|
URL | Scenario Generieke query naar LSP - 2.16.840.1.113883.2.4.3.111.3.12.3.4 - 2016-12-01T06:53:16 |
Dataset and Template
VZVZ maps this to this dataset and corresponding template.
Description | Dataset - Generieke query naar LSP |
|---|---|
URL | Dataset (voor transactie) 2.16.840.1.113883.2.4.3.111.3.12.4.38 - Generieke query |
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.
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 |
|---|---|---|---|---|---|
| Parameters | Bouwsteen.Identificatie | instance-identifier | identifier | Identificatie | Identificatie |
| Parameters | Bouwsteen.Type | context (context determines building blocks) | category | impliciet o.b.v. contextCode | impliciet o.b.v. contextCode |
| Parameters | Productcode | - | medication.code | ProductCode | ProductCode |
| Parameters | Gebruiksperiode | effective-time | period-of-use | GebruiksPeriode | GebruiksPeriode |
| Parameters | Verstrekkingsperiode | effective-time | whenhandedover | VerstrekkingsPeriode | VerstrekkingsPeriode |
| Parameters | Toedieningsperiode | effective-time | effective-time | ToedieningsPeriode | ToedieningsPeriode |
| Parameters | Patient.IdentificatieNumber | patient specifiek | patient.identifier | patient specifiek | patient specifiek |
| Parameters | Mbh.Identificatie | therapy-identifier | pharmaceutical-treatment-identifier | MBHid | MBHid |
| Title | Nictiz Parameter | VZVZ Opvragen Doseerschema | VZVZ Opvragen Medicatieafspraken | VZVZ Opvragen Medicatiegebruik | VZVZ Opvragen Medicatieverstrekkingen | VZVZ Opvragen Toedieningen | VZVZ Opvragen Toedieningsafspraken | VZVZ Opvragen Verstrekkingsverzoeken |
|---|---|---|---|---|---|---|---|---|
| Parameters | Bouwsteen.Identificatie | Identificatie | Identificatie | Identificatie | Identificatie | Identificatie | Identificatie | Identificatie |
| Parameters | 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 |
| Parameters | Productcode | ProductCode | ProductCode | ProductCode | ProductCode | ProductCode | ProductCode | ProductCode |
| Parameters | Gebruiksperiode | GebruiksPeriode | GebruiksPeriode | GebruiksPeriode | n.v.t. | n.v.t. | GebruiksPeriode | n.v.t. |
| Parameters | Verstrekkingsperiode | n.v.t. | n.v.t. | n.v.t. | VerstrekkingsPeriode | n.v.t. | n.v.t. | n.v.t. |
| Parameters | Toedieningsperiode | n.v.t. | n.v.t. | n.v.t. | n.v.t. | ToedieningsPeriode | n.v.t. | n.v.t. |
| Parameters | Patient.IdentificatieNumber | patient specifiek | patient specifiek | patient specifiek | patient specifiek | patient specifiek | patient specifiek | patient specifiek |
| Parameters | Mbh.Identificatie | MBHid | MBHid | MBHid | MBHid | MBHid | MBHid | MBHid |