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-10-20 Computable Name: WADAList

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

Title: WADA List
Id: WADAList
Version: 0.1.0
Url: WADA List
Experimental: true
Type:

system: http://terminology.hl7.org/CodeSystem/library-type

code: logic-library

Date: 2025-10-20 14:03:50+0000
Publisher: adamzk
Description:

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

Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
medicationsMedication0*Out
medicationKnowledgesMedicationKnowledge0*Out
issuesDetectedIssue0*Out
Data Requirements:
TypeProfileMSCode Filter
Medication http://hl7.org/fhir/StructureDefinition/Medication
Medication http://hl7.org/fhir/StructureDefinition/Medication
MedicationKnowledge http://hl7.org/fhir/StructureDefinition/MedicationKnowledge
Content: 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: application/elm+xml
Encoded data (14488 characters)
Content: application/elm+json
Encoded data (31100 characters)