WADA List
0.1.0 - CI Build

WADA List, published by adamzk. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/adamzkover/wada-list-fhir/ and changes regularly. See the Directory of published versions

Library: WADA List (Experimental)

Official URL: https://folk.ntnu.no/adamzk/it6103/Library/WADAList Version: 0.1.0
Active as of 2024-11-26 Computable Name: WADAList

Main Library for the computable representation of WADA’s List of Prohibited Substances and Methods

Generated Narrative: Library WADAList

Related Artifacts

Depends OnLibrary WADAListS1WADA List S1version: null0.1.0)
Depends OnLibrary WADAListS2WADA List S2version: null0.1.0)

Parameters

Patientout01Patient
HasMatchout01boolean
MatchingIngredientDetailsout01string

Data Requirements

Type: Medication (Medication)

Contents

text/cql

library WADAList version '0.1.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers

include WADAListS1 version '0.1.0' called WADAListS1
include WADAListS2 version '0.1.0' called WADAListS2

context Patient

define private Meds:
  [Medication] M
  return M

define private Cards:
  ({
    WADAListS1.GetCard(Meds),
    WADAListS2.GetCard(Meds)
  }) C where C != ''
  return C

define public HasMatch:
  Count(Cards) > 0

define public MatchingIngredientDetails:
  Combine(Cards, '; ')

Content not shown - (application/elm+xml, size = 5Kb )

Content not shown - (application/elm+json, size = 8Kb )