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 2025-06-19 Computable Name: WADAList

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

Related Artifacts

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

Parameters

medicationsout0*Medication
medicationKnowledgesout0*MedicationKnowledge
issuesout0*DetectedIssue

Data Requirements

Type: Medication (Medication)
Type: Medication (Medication)
Type: MedicationKnowledge (MedicationKnowledge)

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
include WADAListS3 version '0.1.0' called WADAListS3

define "medications":
  [Medication] M
  return M

define function getMedicationCodes(Medications List<Medication>):
  distinct(
    flatten(
      [Medication] M
      return M.code.coding
    )
  ) fhirCode
  return System.Code {
    system: fhirCode.system,
    code: fhirCode.code,
    display: fhirCode.display
  }

define "medicationKnowledges":
  flatten(
    (getMedicationCodes("medications")) fhirCode
    return [MedicationKnowledge] MK where MK.code ~ fhirCode
  )

define "issues":
  flatten {
    WADAListS1.GetIssues("medications", "medicationKnowledges"),
    WADAListS2.GetIssues("medications", "medicationKnowledges"),
    WADAListS3.GetIssues("medications", "medicationKnowledges")
  }

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

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