diff --git a/conformance/fhir-ig-davinci-pdex-formulary/CHANGELOG.md b/conformance/fhir-ig-davinci-pdex-formulary/CHANGELOG.md index 7236321a78a..2e7cd072417 100644 --- a/conformance/fhir-ig-davinci-pdex-formulary/CHANGELOG.md +++ b/conformance/fhir-ig-davinci-pdex-formulary/CHANGELOG.md @@ -1,5 +1,29 @@ -30 NOV 2020 - Initial Load - - remove invalid
tags from between
  • tags in CapabilityStatement-usdf-server.json (see ResourceProcessor.java) - - removed invalid ImplementationGuide parameters `copyrightyear`, `releaselabel`, and more - - added missing / to the CapabilityStatement.url (https://jira.hl7.org/browse/FHIR-29936) - - update the searchParam.definition for List-identifier to properly reference a core spec parameter (https://jira.hl7.org/browse/FHIR-29937) \ No newline at end of file +# Changes + +## PDEX US Drug Formulary 1.0.1 +Source - https://build.fhir.org/ig/HL7/davinci-pdex-formulary retrieved on Nov 30, 2020. +- Added missing / to the CapabilityStatement.url (https://jira.hl7.org/browse/FHIR-29936) +- Updated the searchParam.definition for List-identifier to properly reference a core spec parameter (https://jira.hl7.org/browse/FHIR-29937) +- Modified ig-r4.json to remove parameters that aren't valid in FHIR R4 +- Stripped narrative text to reduce the size and formatted the JSON contents (both via the ResourceProcessor tool) +- Added version id to extension definition canonical references in StructureDefinitions (e.g. `http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension` -> `http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension|1.0.1`) +- Added version id to ValueSet binding targets in StructureDefinitions (e.g. `http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS` -> `http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS|1.0.1`) +- Added version element under ValueSets.compose.include to specify that these valuesets refer to the 1.0.1 codes. + +Note: the examples were subsequently retrieved from http://hl7.org/fhir/us/davinci-drug-formulary/STU1.0.1/package.tgz on May 20, 2022. +- Added version id to the Meta.profile entry for each example + +## PDEX US Drug Formulary 1.1.0 +Source - http://hl7.org/fhir/us/davinci-drug-formulary/STU1.1 retrieved on May 20, 2022. +- Modified ig-r4.json to remove parameters that aren't valid in FHIR R4 +- Stripped narrative text to reduce the size and formatted the JSON contents (both via the ResourceProcessor tool) + +# Steps to update +1. download the npm package for whatever version of PDEX US Drug Formulary you want (and note what downloads we used from where in this file) +2. update `src/main/resources` with the latest conformance artifacts and `src/test/resources` with the latest examples +3. if its a new version + - ensure references from the previous package are version-specific (e.g. to avoid a 1.0.1 profile from picking up a 1.1.0 valueset during validation) + - add a new provider (`src/main/java` and `src/main/resources/META-INF`) + - create tests for this new version (update ConstraintGeneratorTest and PlanNetResourceProviderTest) +4. execute ResourceProcessor from src/test/java with the proper arguments +5. execute SearchParameterAugmenter from src/test/java with the proper arguments \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/pom.xml b/conformance/fhir-ig-davinci-pdex-formulary/pom.xml index 6cb8e61829d..6640b8255a3 100644 --- a/conformance/fhir-ig-davinci-pdex-formulary/pom.xml +++ b/conformance/fhir-ig-davinci-pdex-formulary/pom.xml @@ -38,6 +38,13 @@ test test-jar + + ${project.groupId} + fhir-registry + ${project.version} + test + test-jar + ${project.groupId} fhir-examples diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/java/com/ibm/fhir/ig/davinci/pdex/formulary/FormularyResourceProvider.java b/conformance/fhir-ig-davinci-pdex-formulary/src/main/java/com/ibm/fhir/ig/davinci/pdex/formulary/Formulary101ResourceProvider.java similarity index 55% rename from conformance/fhir-ig-davinci-pdex-formulary/src/main/java/com/ibm/fhir/ig/davinci/pdex/formulary/FormularyResourceProvider.java rename to conformance/fhir-ig-davinci-pdex-formulary/src/main/java/com/ibm/fhir/ig/davinci/pdex/formulary/Formulary101ResourceProvider.java index 07b468a72e0..30992ffe9cc 100644 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/java/com/ibm/fhir/ig/davinci/pdex/formulary/FormularyResourceProvider.java +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/java/com/ibm/fhir/ig/davinci/pdex/formulary/Formulary101ResourceProvider.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020 + * (C) Copyright IBM Corp. 2020, 2022 * * SPDX-License-Identifier: Apache-2.0 */ @@ -8,9 +8,9 @@ import com.ibm.fhir.registry.util.PackageRegistryResourceProvider; -public class FormularyResourceProvider extends PackageRegistryResourceProvider { +public class Formulary101ResourceProvider extends PackageRegistryResourceProvider { @Override public String getPackageId() { - return "hl7.fhir.us.davinci-pdex-formulary"; + return "hl7.fhir.us.davinci-pdex-formulary.101"; } } diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/java/com/ibm/fhir/ig/davinci/pdex/formulary/Formulary110ResourceProvider.java b/conformance/fhir-ig-davinci-pdex-formulary/src/main/java/com/ibm/fhir/ig/davinci/pdex/formulary/Formulary110ResourceProvider.java new file mode 100644 index 00000000000..f7e2ccb15cf --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/java/com/ibm/fhir/ig/davinci/pdex/formulary/Formulary110ResourceProvider.java @@ -0,0 +1,16 @@ +/* + * (C) Copyright IBM Corp. 2020, 2022 + * + * SPDX-License-Identifier: Apache-2.0 + */ + +package com.ibm.fhir.ig.davinci.pdex.formulary; + +import com.ibm.fhir.registry.util.PackageRegistryResourceProvider; + +public class Formulary110ResourceProvider extends PackageRegistryResourceProvider { + @Override + public String getPackageId() { + return "hl7.fhir.us.davinci-pdex-formulary.110"; + } +} diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/META-INF/services/com.ibm.fhir.registry.spi.FHIRRegistryResourceProvider b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/META-INF/services/com.ibm.fhir.registry.spi.FHIRRegistryResourceProvider index 1a2a17de2c0..234c13518a8 100644 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/META-INF/services/com.ibm.fhir.registry.spi.FHIRRegistryResourceProvider +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/META-INF/services/com.ibm.fhir.registry.spi.FHIRRegistryResourceProvider @@ -1 +1,2 @@ -com.ibm.fhir.ig.davinci.pdex.formulary.FormularyResourceProvider \ No newline at end of file +com.ibm.fhir.ig.davinci.pdex.formulary.Formulary101ResourceProvider +com.ibm.fhir.ig.davinci.pdex.formulary.Formulary110ResourceProvider \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/.index.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/.index.json similarity index 100% rename from conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/.index.json rename to conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/.index.json diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CapabilityStatement-usdf-server.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CapabilityStatement-usdf-server.json new file mode 100644 index 00000000000..deaf4e69a2a --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CapabilityStatement-usdf-server.json @@ -0,0 +1,361 @@ +{ + "resourceType": "CapabilityStatement", + "id": "usdf-server", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CapabilityStatement/usdf-server", + "version": "1.0.1", + "name": "UsdfServerCapabilityStatement", + "title": "usdf-server CapabilityStatement", + "status": "active", + "experimental": false, + "date": "2020-11-16", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "This Section describes the expected capabilities of the US Drug Formulary Server actor which is responsible for providing responses to the queries submitted by the US Drug Formulary Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by US Drug Formulary Server are defined.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "kind": "requirements", + "fhirVersion": "4.0.1", + "format": [ + "xml", + "json" + ], + "patchFormat": [ + "application/json-patch+json" + ], + "implementationGuide": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary" + ], + "rest": [ + { + "mode": "server", + "documentation": "US Drug Formulary Server **SHALL**:\n\n1. Support all profiles defined in this Implementation Guide..\n1. Implement the RESTful behavior according to the FHIR specification.\n1. Return the following response classes:\n - (Status 400): invalid parameter\n - (Status 401/4xx): unauthorized request\n - (Status 403): insufficient scope\n - (Status 404): unknown resource\n - (Status 410): deleted resource.\n1. Support json source formats for all US Drug Formulary interactions.\n1. Support the searchParameters on each profile individually and in combination.\n\nUS Drug Formulary Server **SHOULD**:\n\n1. Support xml source formats for all US Drug Formulary interactions.\n", + "resource": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "type": "List", + "supportedProfile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "_id", + "definition": "http://hl7.org/fhir/SearchParameter/Resource-id", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "identifier", + "definition": "http://hl7.org/fhir/SearchParameter/clinical-identifier", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "item", + "definition": "http://hl7.org/fhir/SearchParameter/List-item", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "status", + "definition": "http://hl7.org/fhir/SearchParameter/List-status", + "type": "token" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "type": "MedicationKnowledge", + "supportedProfile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "DrugName", + "definition": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugName", + "type": "string" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "DrugTier", + "definition": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugTier", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "DrugPlan", + "definition": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugPlan", + "type": "string" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "code", + "definition": "http://hl7.org/fhir/SearchParameter/MedicationKnowledge-code", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "_id", + "definition": "http://hl7.org/fhir/SearchParameter/Resource-id", + "type": "token" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CodeSystem-usdf-CoinsuranceOptionCS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CodeSystem-usdf-CoinsuranceOptionCS.json new file mode 100644 index 00000000000..8dcacba17a6 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CodeSystem-usdf-CoinsuranceOptionCS.json @@ -0,0 +1,57 @@ +{ + "resourceType": "CodeSystem", + "id": "usdf-CoinsuranceOptionCS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "version": "1.0.1", + "name": "CoInsuranceOptionCS", + "title": "Code for qualifier for coinsurance rate", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Code for qualifier for coinsurance rate", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "content": "complete", + "count": 3, + "concept": [ + { + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + }, + { + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + }, + { + "code": "no-charge-after-deductible", + "display": "No Charge After Deductible: The consumer first pays the deductible, and after thedeductible is met, no coinsurance is charged (this indicates that this benefit is subject to the deductible)" + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CodeSystem-usdf-CopayOptionCS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CodeSystem-usdf-CopayOptionCS.json new file mode 100644 index 00000000000..420483ad76a --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CodeSystem-usdf-CopayOptionCS.json @@ -0,0 +1,61 @@ +{ + "resourceType": "CodeSystem", + "id": "usdf-CopayOptionCS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "version": "1.0.1", + "name": "CopayOptionCS", + "title": "Codes for qualifier of copay amount", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Codes for qualifier of copay amount", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "content": "complete", + "count": 4, + "concept": [ + { + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer is responsible only for the copay (this indicates that this benefit is subject to the deductible)." + }, + { + "code": "before-deductible", + "display": "Before Deductible: The consumer first pays the copay, and any net remaining allowed charges accrue to the deductible (this indicates that this benefit is subject to the deductible)." + }, + { + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + }, + { + "code": "no-charge-after-deductible", + "display": "No Charge After Deductible: The consumer first pays the deductible, and after the deductible is met, no copayment is charged (this indicates that this benefit is subject to the deductible)." + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CodeSystem-usdf-DrugTierCS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CodeSystem-usdf-DrugTierCS.json new file mode 100644 index 00000000000..37f59db1aff --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CodeSystem-usdf-DrugTierCS.json @@ -0,0 +1,81 @@ +{ + "resourceType": "CodeSystem", + "id": "usdf-DrugTierCS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "version": "1.0.1", + "name": "DrugTierCS", + "title": "Codes for medication drug tiers in health plans", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Codes to represent the drug tier of a particular medication in a health plan. Base set are examples. Each plan may have its own controlled vocabulary.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "content": "complete", + "count": 9, + "concept": [ + { + "code": "generic", + "display": "Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier." + }, + { + "code": "preferred-generic", + "display": "Preferred Generic: Commonly prescribed generic drugs." + }, + { + "code": "non-preferred-generic", + "display": "Non-preferred Generic: Generic drugs that cost more than drugs in ‘generic’ tier." + }, + { + "code": "specialty", + "display": "Specialty: Drugs used to treat complex conditions like cancer and multiple sclerosis. They can be generic or brand name, and are typically the most expensive drugs on the formulary." + }, + { + "code": "brand", + "display": "Brand: Brand name drugs that cost more than ‘preferred brand’ drugs." + }, + { + "code": "preferred-brand", + "display": "Preferred Brand: Brand name drugs" + }, + { + "code": "non-preferred-brand", + "display": "Non-preferred Brand: Brand name drugs that cost more than ‘brand’ drugs." + }, + { + "code": "zero-cost-share-preventative", + "display": "Zero cost-share preventative: Preventive medications and products available at no cost." + }, + { + "code": "medical-service", + "display": "Medical Service: Drugs that must be administered by a clinician or in a facility and may be covered under a medical benefit." + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CodeSystem-usdf-PharmacyTypeCS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CodeSystem-usdf-PharmacyTypeCS.json new file mode 100644 index 00000000000..88f8f6fb525 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/CodeSystem-usdf-PharmacyTypeCS.json @@ -0,0 +1,77 @@ +{ + "resourceType": "CodeSystem", + "id": "usdf-PharmacyTypeCS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "version": "1.0.1", + "name": "PharmacyTypeCS", + "title": "Codes for types of pharmacies", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Codes for types of Pharmacies. Each payer will have its own controlled vocabulary.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "content": "complete", + "count": 8, + "concept": [ + { + "code": "1-month-in-retail", + "display": "1 month in network retail: 1 Month Supply via in-network retail pharmacy." + }, + { + "code": "1-month-out-retail", + "display": "1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy." + }, + { + "code": "1-month-in-mail", + "display": "1 month in network mail order: 1 Month Supply via in-network mail order pharmacy." + }, + { + "code": "1-month-out-mail", + "display": "1 month out of network mail order: 1 Month Supply via out-of-network mail order pharmacy." + }, + { + "code": "3-month-in-retail", + "display": "3 month in network retail: 3 Month Supply via in-network retail pharmacy." + }, + { + "code": "3-month-out-retail", + "display": "3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy." + }, + { + "code": "3-month-in-mail", + "display": "3 month in network mail order: 3 Month Supply via in-network mail order pharmacy." + }, + { + "code": "3-month-out-mail", + "display": "3 month out of network mail order: 3 Month Supply via out-of-network mail order pharmacy." + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ImplementationGuide-hl7.fhir.us.davinci-drug-formulary.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ImplementationGuide-hl7.fhir.us.davinci-drug-formulary.json new file mode 100644 index 00000000000..10171803868 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ImplementationGuide-hl7.fhir.us.davinci-drug-formulary.json @@ -0,0 +1,934 @@ +{ + "resourceType": "ImplementationGuide", + "id": "hl7.fhir.us.davinci-drug-formulary", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary", + "version": "1.0.1", + "name": "Formulary", + "status": "draft", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Da Vinci Payer Data Exchange (PDex) US Drug Formulary STU 1", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "packageId": "hl7.fhir.us.davinci-drug-formulary", + "license": "CC0-1.0", + "fhirVersion": [ + "4.0.1" + ], + "dependsOn": [ + { + "id": "hl7_fhir_us_core", + "uri": "http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core", + "packageId": "hl7.fhir.us.core", + "version": "3.1.1" + } + ], + "definition": { + "extension": [ + { + "extension": [ + { + "url": "code", + "valueString": "copyrightyear" + }, + { + "url": "value", + "valueString": "2020+" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "releaselabel" + }, + { + "url": "value", + "valueString": "ci-build" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "show-inherited-invariants" + }, + { + "url": "value", + "valueString": "false" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-jurisdiction" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-publisher" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "jira-code" + }, + { + "url": "value", + "valueString": "davinci-df" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-history" + }, + { + "url": "value", + "valueString": "http://hl7.org/fhir/us/davinci-drug-formulary/history.html" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "autoload-resources" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-liquid" + }, + { + "url": "value", + "valueString": "template/liquid" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-liquid" + }, + { + "url": "value", + "valueString": "input/liquid" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-qa" + }, + { + "url": "value", + "valueString": "temp/qa" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-temp" + }, + { + "url": "value", + "valueString": "temp/pages" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-output" + }, + { + "url": "value", + "valueString": "output" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-suppressed-warnings" + }, + { + "url": "value", + "valueString": "input/ignoreWarnings.txt" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "template-html" + }, + { + "url": "value", + "valueString": "template-page.html" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "template-md" + }, + { + "url": "value", + "valueString": "template-page-md.html" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-contact" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-context" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-copyright" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-license" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-version" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "active-tables" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + } + ], + "resource": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:resource" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-CoveragePlan" + }, + "name": "Formulary Coverage Plan", + "description": "A health plan which contains links to administrative information, a list of formulary drugs covered under that plan, and a definition of drug tiers and their associated cost-sharing models.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:resource" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-FormularyDrug" + }, + "name": "Formulary Drug", + "description": "Drug information which is part of a formulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-DrugAlternatives-extension" + }, + "name": "Drug Alternatives", + "description": "Generic or Branded Drugs included within the CoveragePlan's formulary that could be prescribed as alternatives to the current FormularyDrug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-DrugTierDefinition-extension" + }, + "name": "Drug Tier Definition", + "description": "A description of the drug tiers used by the formulary and how those tiers implement copay and coinsurance amounts. Drug tiers do not have any inherent meaning that is consistent across all formularies. Rather, each tier is defined using this element.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-DrugTierID-extension" + }, + "name": "Drug Tier ID", + "description": "A code that describes the coverage status of a drug in a health plan (e.g., preferred generic, specialty, etc.)", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-EmailPlanContact-extension" + }, + "name": "Email Plan Contact", + "description": "An email address for developers/public to report mistakes in the network and formulary data.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-FormularyURL-extension" + }, + "name": "Formulary URL", + "description": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-MarketingURL-extension" + }, + "name": "Marketing URL", + "description": "The URL that goes directly to the plan brochure for the specific standard plan or plan variation.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-Network-extension" + }, + "name": "Network", + "description": "Array of Networks within a plan.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-PlanID-extension" + }, + "name": "Plan ID", + "description": "Unique, 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.)", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-PlanIDType-extension" + }, + "name": "Plan ID Type", + "description": "Type of Plan ID. For all Marketplace plans this should be: HIOS-PLAN-ID", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-PriorAuthorization-extension" + }, + "name": "Prior Authorization", + "description": "A Boolean indication of whether the coverage plan imposes a prior authorization requirement on this drug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-QuantityLimit-extension" + }, + "name": "Quantity Limit", + "description": "A Boolean indication of whether the coverage plan imposes a quantity limit on this drug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-StepTherapyLimit-extension" + }, + "name": "Step Therapy Limit", + "description": "A Boolean indication of whether the coverage plan imposes a step therapy limit on this drug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-SummaryURL-extension" + }, + "name": "Summary URL", + "description": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/CoinsuranceOptionVS" + }, + "name": "Qualifier for coinsurance rate", + "description": "Qualifier for coinsurance rate", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/CopayOptionVS" + }, + "name": "Qualifier of copay amount", + "description": "Qualifier of copay amount", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/DrugTierVS" + }, + "name": "Drug tier of medication in health plan", + "description": "The drug tier of a particular medication in a health plan. The base set are examples. Each plan may have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/PharmacyTypeVS" + }, + "name": "Type of pharmacies", + "description": "Types of pharmacies. Each payer will have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-CoinsuranceOptionCS" + }, + "name": "Code for qualifier for coinsurance rate", + "description": "Code for qualifier for coinsurance rate", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-CopayOptionCS" + }, + "name": "Codes for qualifier of copay amount", + "description": "Codes for qualifier of copay amount", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-DrugTierCS" + }, + "name": "Codes for medication drug tiers in health plans", + "description": "Codes to represent the drug tier of a particular medication in a health plan. Base set are examples. Each plan may have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-PharmacyTypeCS" + }, + "name": "Codes for types of pharmacies", + "description": "Codes for types of Pharmacies. Each payer will have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CapabilityStatement" + } + ], + "reference": { + "reference": "CapabilityStatement/usdf-server" + }, + "name": "usdf-server CapabilityStatement", + "description": "This Section describes the expected capabilities of the US Drug Formulary Server actor which is responsible for providing responses to the queries submitted by the US Drug Formulary Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by US Drug Formulary Server are defined.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "SearchParameter" + } + ], + "reference": { + "reference": "SearchParameter/DrugName" + }, + "name": "DrugName", + "description": "Accesses the Descriptive Name of a FormularyDrug", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "SearchParameter" + } + ], + "reference": { + "reference": "SearchParameter/DrugPlan" + }, + "name": "DrugPlan", + "description": "Accesses the DrugPlan ID of a FormularyDrug", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "SearchParameter" + } + ], + "reference": { + "reference": "SearchParameter/DrugTier" + }, + "name": "DrugTier", + "description": "Accesses the DrugTier ID of a FormularyDrug", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/covplanV1002" + }, + "name": "Coverage Plan V1002", + "description": "Sample Gold Health Plan", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/CoveragePlanV3001" + }, + "name": "Coverage Plan V3001", + "description": "Sample Gold Health Plan", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/CoveragePlanV3002" + }, + "name": "Coverage Plan V3002", + "description": "Sample Gold Health Plan", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/CoveragePlanV3004t" + }, + "name": "Coverage Plan V3004t", + "description": "BluePreferred PPO HSA Silver $3,000", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/formularydrugV1002" + }, + "name": "Formulary Drug V1002", + "description": "Percocet 5 MG / 325 MG Oral Tablet", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/FormularyDrugV3001" + }, + "name": "Formulary Drug V3001", + "description": "Percocet 5 MG / 325 MG Oral Tablet", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/FormularyDrugV3002" + }, + "name": "Formulary Drug V3002", + "description": "Tylenol Extra Strength 500 MG Oral Tablet", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/cmsip9" + }, + "name": "Formulary Drug cmsip9", + "description": "Doxepin HCl 5 % Topical Cream", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + } + ], + "page": { + "nameUrl": "toc.html", + "title": "Table of Contents", + "generation": "html", + "page": [ + { + "nameUrl": "index.html", + "title": "Home", + "generation": "markdown" + }, + { + "nameUrl": "profiles.html", + "title": "Profiles", + "generation": "markdown" + }, + { + "nameUrl": "examples.html", + "title": "Examples", + "generation": "html" + }, + { + "nameUrl": "4_downloads.html", + "title": "Downloads", + "generation": "markdown" + }, + { + "nameUrl": "1-implementation.html", + "title": "1 Implementation", + "generation": "markdown" + }, + { + "nameUrl": "downloads.html", + "title": "Downloads", + "generation": "markdown" + } + ] + }, + "parameter": [ + { + "code": "path-resource", + "value": "input/capabilities" + }, + { + "code": "path-resource", + "value": "input/examples" + }, + { + "code": "path-resource", + "value": "input/extensions" + }, + { + "code": "path-resource", + "value": "input/models" + }, + { + "code": "path-resource", + "value": "input/operations" + }, + { + "code": "path-resource", + "value": "input/profiles" + }, + { + "code": "path-resource", + "value": "input/resources" + }, + { + "code": "path-resource", + "value": "input/vocabulary" + }, + { + "code": "path-resource", + "value": "input/maps" + }, + { + "code": "path-resource", + "value": "input/testing" + }, + { + "code": "path-resource", + "value": "input/history" + }, + { + "code": "path-resource", + "value": "fsh-generated/resources" + }, + { + "code": "path-pages", + "value": "template/config" + }, + { + "code": "path-pages", + "value": "input/images" + }, + { + "code": "path-tx-cache", + "value": "input-cache/txcache" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/SearchParameter-DrugName.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/SearchParameter-DrugName.json new file mode 100644 index 00000000000..9e7692c6816 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/SearchParameter-DrugName.json @@ -0,0 +1,56 @@ +{ + "resourceType": "SearchParameter", + "id": "DrugName", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugName", + "version": "1.0.1", + "name": "DrugName", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Accesses the Descriptive Name of a FormularyDrug", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "code": "DrugName", + "base": [ + "MedicationKnowledge" + ], + "type": "string", + "expression": "MedicationKnowledge.code.coding.display", + "multipleOr": true, + "multipleAnd": true, + "comparator": [ + "eq" + ], + "modifier": [ + "missing", + "exact", + "contains" + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/SearchParameter-DrugPlan.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/SearchParameter-DrugPlan.json new file mode 100644 index 00000000000..5283411e38f --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/SearchParameter-DrugPlan.json @@ -0,0 +1,49 @@ +{ + "resourceType": "SearchParameter", + "id": "DrugPlan", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugPlan", + "version": "1.0.1", + "name": "DrugPlan", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Accesses the DrugPlan ID of a FormularyDrug", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "code": "DrugPlan", + "base": [ + "MedicationKnowledge" + ], + "type": "string", + "expression": "MedicationKnowledge.extension.where(url='http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension').value", + "comparator": [ + "eq" + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/SearchParameter-DrugTier.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/SearchParameter-DrugTier.json new file mode 100644 index 00000000000..11f8b59b833 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/SearchParameter-DrugTier.json @@ -0,0 +1,49 @@ +{ + "resourceType": "SearchParameter", + "id": "DrugTier", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugTier", + "version": "1.0.1", + "name": "DrugTier", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Accesses the DrugTier ID of a FormularyDrug", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "code": "DrugTier", + "base": [ + "MedicationKnowledge" + ], + "type": "token", + "expression": "MedicationKnowledge.extension.where(url='http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension').value", + "comparator": [ + "eq" + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-CoveragePlan.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-CoveragePlan.json new file mode 100644 index 00000000000..4553f5722df --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-CoveragePlan.json @@ -0,0 +1,1854 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-CoveragePlan", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category", + "valueString": "Base.Management" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category", + "valueCode": "not-classified" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan", + "version": "1.0.1", + "name": "CoveragePlan", + "title": "Formulary Coverage Plan", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A health plan which contains links to administrative information, a list of formulary drugs covered under that plan, and a definition of drug tiers and their associated cost-sharing models.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "List", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "List", + "path": "List", + "short": "A list is a curated collection of resources", + "definition": "A list is a curated collection of resources.", + "alias": [ + "Collection", + "WorkingList", + "Organizer" + ], + "min": 0, + "max": "*", + "base": { + "path": "List", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "lst-1", + "severity": "error", + "human": "A list can only have an emptyReason if it is empty", + "expression": "emptyReason.empty() or entry.empty()", + "xpath": "not(exists(f:emptyReason) and exists(f:entry))", + "source": "http://hl7.org/fhir/StructureDefinition/List" + }, + { + "key": "lst-2", + "severity": "error", + "human": "The deleted flag can only be used if the mode of the list is \"changes\"", + "expression": "mode = 'changes' or entry.deleted.empty()", + "xpath": "(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))", + "source": "http://hl7.org/fhir/StructureDefinition/List" + }, + { + "key": "lst-3", + "severity": "error", + "human": "An entry date can only be used if the mode of the list is \"working\"", + "expression": "mode = 'working' or entry.date.empty()", + "xpath": "(f:mode/@value = 'working') or not(exists(f:entry/f:date))", + "source": "http://hl7.org/fhir/StructureDefinition/List" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "rim", + "map": "Act[classCode id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "List.implicitRules", + "path": "List.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "List.language", + "path": "List.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages" + } + }, + { + "id": "List.text", + "path": "List.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "List.contained", + "path": "List.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "List.extension", + "path": "List.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 4, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "List.extension:usdf-DrugTierDefinition-extension", + "path": "List.extension", + "sliceName": "usdf-DrugTierDefinition-extension", + "short": "Extension", + "definition": "An Extension", + "min": 1, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.extension:usdf-Network-extension", + "path": "List.extension", + "sliceName": "usdf-Network-extension", + "short": "Extension", + "definition": "An Extension", + "min": 1, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.extension:usdf-SummaryURL-extension", + "path": "List.extension", + "sliceName": "usdf-SummaryURL-extension", + "short": "Extension", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.extension:usdf-FormularyURL-extension", + "path": "List.extension", + "sliceName": "usdf-FormularyURL-extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.extension:usdf-EmailPlanContact-extension", + "path": "List.extension", + "sliceName": "usdf-EmailPlanContact-extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.extension:usdf-MarketingURL-extension", + "path": "List.extension", + "sliceName": "usdf-MarketingURL-extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.extension:usdf-PlanIDType-extension", + "path": "List.extension", + "sliceName": "usdf-PlanIDType-extension", + "short": "Extension", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.modifierExtension", + "path": "List.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "List.identifier", + "path": "List.identifier", + "short": "Business identifier", + "definition": "Identifier for the List assigned for business purposes outside the context of FHIR.", + "min": 0, + "max": "*", + "base": { + "path": "List.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "rim", + "map": ".id" + } + ] + }, + { + "id": "List.status", + "path": "List.status", + "short": "current | retired | entered-in-error", + "definition": "Indicates the current state of this list.", + "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", + "min": 1, + "max": "1", + "base": { + "path": "List.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ListStatus" + } + ], + "strength": "required", + "description": "The current state of the list.", + "valueSet": "http://hl7.org/fhir/ValueSet/list-status|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "rim", + "map": ".status[current=active;retired=obsolete;entered-in-error=nullified]" + } + ] + }, + { + "id": "List.mode", + "path": "List.mode", + "short": "working | snapshot | changes", + "definition": "How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.", + "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.", + "requirements": "Lists are used in various ways, and it must be known in what way it is safe to use them.", + "min": 1, + "max": "1", + "base": { + "path": "List.mode", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "If set to \"changes\", the list is considered incomplete, while the other two codes indicate the list is complete, which changes the understanding of the elements listed", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ListMode" + } + ], + "strength": "required", + "description": "The processing mode that applies to this list.", + "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value" + } + ] + }, + { + "id": "List.title", + "path": "List.title", + "short": "Descriptive name for the list", + "definition": "A label for the list assigned by the author.", + "requirements": "Allows customization beyond just the code identifying the kind of list.", + "min": 0, + "max": "1", + "base": { + "path": "List.title", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "example": [ + { + "label": "General", + "valueString": "Dr. Jane's Patients" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": ".title" + } + ] + }, + { + "id": "List.code", + "path": "List.code", + "short": "What the purpose of this list is", + "definition": "This code defines the purpose of the list - why it was created.", + "comment": "If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code.", + "requirements": "Lists often contain subsets of resources rather than an exhaustive list. The code identifies what type of subset is included.", + "min": 0, + "max": "1", + "base": { + "path": "List.code", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ListPurpose" + } + ], + "strength": "example", + "description": "What the purpose of a list is.", + "valueSet": "http://hl7.org/fhir/ValueSet/list-example-codes" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "rim", + "map": ".code" + } + ] + }, + { + "id": "List.subject", + "path": "List.subject", + "short": "If all resources have the same subject", + "definition": "The common subject (or patient) of the resources that are in the list if there is one.", + "comment": "Some purely arbitrary lists do not have a common subject, so this is optional.", + "requirements": "The primary purpose of listing the subject explicitly is to help with finding the right list.", + "min": 0, + "max": "1", + "base": { + "path": "List.subject", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient", + "http://hl7.org/fhir/StructureDefinition/Group", + "http://hl7.org/fhir/StructureDefinition/Device", + "http://hl7.org/fhir/StructureDefinition/Location" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "rim", + "map": ".participation[typeCode id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "rim", + "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" + } + ] + }, + { + "id": "List.date", + "path": "List.date", + "short": "When the list was prepared", + "definition": "The date that the list was prepared.", + "comment": "The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs.", + "requirements": "Identifies how current the list is which affects relevance.", + "min": 0, + "max": "1", + "base": { + "path": "List.date", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.recorded" + }, + { + "identity": "rim", + "map": ".participation[typeCode id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.author" + }, + { + "identity": "rim", + "map": ".participation[typeCode id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ListOrder" + } + ], + "strength": "preferred", + "description": "What order applies to the items in a list.", + "valueSet": "http://hl7.org/fhir/ValueSet/list-order" + }, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1" + } + ] + }, + { + "id": "List.note", + "path": "List.note", + "short": "Comments about the list", + "definition": "Comments that apply to the overall list.", + "min": 0, + "max": "*", + "base": { + "path": "List.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ].act.text" + } + ] + }, + { + "id": "List.entry", + "path": "List.entry", + "short": "Entries in the list", + "definition": "Entries in this list.", + "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.", + "min": 0, + "max": "*", + "base": { + "path": "List.entry", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "condition": [ + "lst-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]" + } + ] + }, + { + "id": "List.entry.id", + "path": "List.entry.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "List.entry.extension", + "path": "List.entry.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "List.entry.modifierExtension", + "path": "List.entry.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "List.entry.flag", + "path": "List.entry.flag", + "short": "Status/Workflow information about this item", + "definition": "The flag allows the system constructing the list to indicate the role and significance of the item in the list.", + "comment": "The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is \"changes\".", + "requirements": "This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list.", + "min": 0, + "max": "1", + "base": { + "path": "List.entry.flag", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ListItemFlag" + } + ], + "strength": "example", + "description": "Codes that provide further information about the reason and meaning of the item in the list.", + "valueSet": "http://hl7.org/fhir/ValueSet/list-item-flag" + }, + "mapping": [ + { + "identity": "rim", + "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value" + } + ] + }, + { + "id": "List.entry.deleted", + "path": "List.entry.deleted", + "short": "If this item is actually marked as deleted", + "definition": "True if this item is marked as deleted in the list.", + "comment": "If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is \"changes\". A deleted entry should be displayed in narrative as deleted. This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list.", + "requirements": "The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as \"deleted\".", + "min": 0, + "max": "1", + "base": { + "path": "List.entry.deleted", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "meaningWhenMissing": "List items are generally only treated as deleted when this element explicitly carries a value of true. Systems SHOULD always populate this value when mode is 'changes'", + "condition": [ + "lst-2" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "If deleted is true, then the item included in the list isn't actually part of the list anymore", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "added: .updateMode=(\"A\",\"AR\") retained: .updateMode=\"NC\" updated: .updateMode=\"R\" deleted: .updateMode=\"D\"" + } + ] + }, + { + "id": "List.entry.date", + "path": "List.entry.date", + "short": "When item added to list", + "definition": "When this item was added to the list.", + "requirements": "The date may be significant for understanding the meaning of items in a working list.", + "min": 0, + "max": "1", + "base": { + "path": "List.entry.date", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".availabilityTime" + } + ] + }, + { + "id": "List.entry.item", + "path": "List.entry.item", + "short": "Actual entry", + "definition": "A reference to the actual resource from which data was derived.", + "min": 1, + "max": "1", + "base": { + "path": "List.entry.item", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".target or .role or .role.entity" + } + ] + }, + { + "id": "List.emptyReason", + "path": "List.emptyReason", + "short": "Why list is empty", + "definition": "If the list is empty, why the list is empty.", + "comment": "The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases.", + "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.", + "min": 0, + "max": "1", + "base": { + "path": "List.emptyReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "lst-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ListEmptyReason" + } + ], + "strength": "preferred", + "description": "If a list is empty, why it is empty.", + "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason" + }, + "mapping": [ + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ,codeRedacted for size" + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension", + "version": "1.0.1", + "name": "DrugAlternatives", + "title": "Drug Alternatives", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Generic or Branded Drugs included within the CoveragePlan's formulary that could be prescribed as alternatives to the current FormularyDrug.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug|1.0.1" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug|1.0.1" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-DrugTierDefinition-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-DrugTierDefinition-extension.json new file mode 100644 index 00000000000..d303f7471dc --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-DrugTierDefinition-extension.json @@ -0,0 +1,2382 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-DrugTierDefinition-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension", + "version": "1.0.1", + "name": "DrugTierDefinition", + "title": "Drug Tier Definition", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A description of the drug tiers used by the formulary and how those tiers implement copay and coinsurance amounts. Drug tiers do not have any inherent meaning that is consistent across all formularies. Rather, each tier is defined using this element.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 2, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:drugTierID", + "path": "Extension.extension", + "sliceName": "drugTierID", + "short": "Drug Tier ID", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:drugTierID.id", + "path": "Extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:drugTierID.extension", + "path": "Extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:drugTierID.url", + "path": "Extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "drugTierID", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:drugTierID.value[x]", + "path": "Extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "extensible", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS|1.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:mailOrder", + "path": "Extension.extension", + "sliceName": "mailOrder", + "short": "Mail Order", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:mailOrder.id", + "path": "Extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:mailOrder.extension", + "path": "Extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:mailOrder.url", + "path": "Extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "mailOrder", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:mailOrder.value[x]", + "path": "Extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing", + "path": "Extension.extension", + "sliceName": "costSharing", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.id", + "path": "Extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension", + "path": "Extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 5, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType", + "path": "Extension.extension.extension", + "sliceName": "pharmacyType", + "short": "Pharmacy Type", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.id", + "path": "Extension.extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.extension", + "path": "Extension.extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.url", + "path": "Extension.extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "pharmacyType", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.value[x]", + "path": "Extension.extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "extensible", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/PharmacyTypeVS|1.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount", + "path": "Extension.extension.extension", + "sliceName": "copayAmount", + "short": "Copay Amount", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.id", + "path": "Extension.extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.extension", + "path": "Extension.extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.url", + "path": "Extension.extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "copayAmount", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.value[x]", + "path": "Extension.extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Money" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayOption", + "path": "Extension.extension.extension", + "sliceName": "copayOption", + "short": "Copay Options", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.id", + "path": "Extension.extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.extension", + "path": "Extension.extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.url", + "path": "Extension.extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "copayOption", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.value[x]", + "path": "Extension.extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CopayOptionVS|1.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate", + "path": "Extension.extension.extension", + "sliceName": "coinsuranceRate", + "short": "Co-Insurance Rate", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.id", + "path": "Extension.extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.extension", + "path": "Extension.extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.url", + "path": "Extension.extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "coinsuranceRate", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.value[x]", + "path": "Extension.extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "decimal" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption", + "path": "Extension.extension.extension", + "sliceName": "coinsuranceOption", + "short": "Co-Insurance Option", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.id", + "path": "Extension.extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.extension", + "path": "Extension.extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.url", + "path": "Extension.extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "coinsuranceOption", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.value[x]", + "path": "Extension.extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CoinsuranceOptionVS|1.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.url", + "path": "Extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "costSharing", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.value[x]", + "path": "Extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 0, + "max": "0", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + }, + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 0, + "max": "0", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + }, + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "min": 2 + }, + { + "id": "Extension.extension:drugTierID", + "path": "Extension.extension", + "sliceName": "drugTierID", + "short": "Drug Tier ID", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:drugTierID.extension", + "path": "Extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:drugTierID.url", + "path": "Extension.extension.url", + "fixedUri": "drugTierID" + }, + { + "id": "Extension.extension:drugTierID.value[x]", + "path": "Extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "CodeableConcept" + } + ], + "binding": { + "strength": "extensible", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS|1.0.1" + } + }, + { + "id": "Extension.extension:mailOrder", + "path": "Extension.extension", + "sliceName": "mailOrder", + "short": "Mail Order", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:mailOrder.extension", + "path": "Extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:mailOrder.url", + "path": "Extension.extension.url", + "fixedUri": "mailOrder" + }, + { + "id": "Extension.extension:mailOrder.value[x]", + "path": "Extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "boolean" + } + ] + }, + { + "id": "Extension.extension:costSharing", + "path": "Extension.extension", + "sliceName": "costSharing", + "min": 0, + "max": "*" + }, + { + "id": "Extension.extension:costSharing.extension", + "path": "Extension.extension.extension", + "min": 5 + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType", + "path": "Extension.extension.extension", + "sliceName": "pharmacyType", + "short": "Pharmacy Type", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.extension", + "path": "Extension.extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.url", + "path": "Extension.extension.extension.url", + "fixedUri": "pharmacyType" + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.value[x]", + "path": "Extension.extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "CodeableConcept" + } + ], + "binding": { + "strength": "extensible", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/PharmacyTypeVS|1.0.1" + } + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount", + "path": "Extension.extension.extension", + "sliceName": "copayAmount", + "short": "Copay Amount", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.extension", + "path": "Extension.extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.url", + "path": "Extension.extension.extension.url", + "fixedUri": "copayAmount" + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.value[x]", + "path": "Extension.extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "Money" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayOption", + "path": "Extension.extension.extension", + "sliceName": "copayOption", + "short": "Copay Options", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.extension", + "path": "Extension.extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.url", + "path": "Extension.extension.extension.url", + "fixedUri": "copayOption" + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.value[x]", + "path": "Extension.extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "CodeableConcept" + } + ], + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CopayOptionVS|1.0.1" + } + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate", + "path": "Extension.extension.extension", + "sliceName": "coinsuranceRate", + "short": "Co-Insurance Rate", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.extension", + "path": "Extension.extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.url", + "path": "Extension.extension.extension.url", + "fixedUri": "coinsuranceRate" + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.value[x]", + "path": "Extension.extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "decimal" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption", + "path": "Extension.extension.extension", + "sliceName": "coinsuranceOption", + "short": "Co-Insurance Option", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.extension", + "path": "Extension.extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.url", + "path": "Extension.extension.extension.url", + "fixedUri": "coinsuranceOption" + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.value[x]", + "path": "Extension.extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "CodeableConcept" + } + ], + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CoinsuranceOptionVS|1.0.1" + } + }, + { + "id": "Extension.extension:costSharing.url", + "path": "Extension.extension.url", + "fixedUri": "costSharing" + }, + { + "id": "Extension.extension:costSharing.value[x]", + "path": "Extension.extension.value[x]", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "max": "0" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-DrugTierID-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-DrugTierID-extension.json new file mode 100644 index 00000000000..9247496b94f --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-DrugTierID-extension.json @@ -0,0 +1,354 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-DrugTierID-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "version": "1.0.1", + "name": "DrugTierID", + "title": "Drug Tier ID", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A code that describes the coverage status of a drug in a health plan (e.g., preferred generic, specialty, etc.)", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "closed" + }, + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]:valueCodeableConcept", + "path": "Extension.value[x]", + "sliceName": "valueCodeableConcept", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "extensible", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS|1.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "open" + }, + "min": 1, + "type": [ + { + "code": "CodeableConcept" + } + ] + }, + { + "id": "Extension.valueCodeableConcept", + "path": "Extension.valueCodeableConcept", + "min": 1, + "max": "1", + "binding": { + "strength": "extensible", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS|1.0.1" + } + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-EmailPlanContact-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-EmailPlanContact-extension.json new file mode 100644 index 00000000000..0a9ac7d3659 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-EmailPlanContact-extension.json @@ -0,0 +1,283 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-EmailPlanContact-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "version": "1.0.1", + "name": "EmailPlanContact", + "title": "Email Plan Contact", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "An email address for developers/public to report mistakes in the network and formulary data.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "string" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-FormularyDrug.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-FormularyDrug.json new file mode 100644 index 00000000000..011b7a207c8 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-FormularyDrug.json @@ -0,0 +1,5041 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-FormularyDrug", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category", + "valueString": "Clinical.Medications" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category", + "valueCode": "business" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug", + "version": "1.0.1", + "name": "FormularyDrug", + "title": "Formulary Drug", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Drug information which is part of a formulary.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "script10.6", + "uri": "http://ncpdp.org/SCRIPT10_6", + "name": "Mapping to NCPDP SCRIPT 10.6" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "MedicationKnowledge", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationKnowledge", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "MedicationKnowledge", + "path": "MedicationKnowledge", + "short": "Definition of Medication Knowledge", + "definition": "Information about a medication that is used to support knowledge.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "rim", + "map": "Todo" + } + ] + }, + { + "id": "MedicationKnowledge.id", + "path": "MedicationKnowledge.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "MedicationKnowledge.meta", + "path": "MedicationKnowledge.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "MedicationKnowledge.implicitRules", + "path": "MedicationKnowledge.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "MedicationKnowledge.language", + "path": "MedicationKnowledge.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages" + } + }, + { + "id": "MedicationKnowledge.text", + "path": "MedicationKnowledge.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "MedicationKnowledge.contained", + "path": "MedicationKnowledge.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.extension", + "path": "MedicationKnowledge.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 2, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.extension:usdf-DrugAlternatives-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-DrugAlternatives-extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "MedicationKnowledge.extension:usdf-PriorAuthorization-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-PriorAuthorization-extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "MedicationKnowledge.extension:usdf-StepTherapyLimit-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-StepTherapyLimit-extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "MedicationKnowledge.extension:usdf-QuantityLimit-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-QuantityLimit-extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "MedicationKnowledge.extension:usdf-PlanID-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-PlanID-extension", + "short": "Extension", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "MedicationKnowledge.extension:usdf-DrugTierID-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-DrugTierID-extension", + "short": "Extension", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension|1.0.1" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "MedicationKnowledge.modifierExtension", + "path": "MedicationKnowledge.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.code", + "path": "MedicationKnowledge.code", + "short": "Code that identifies this medication", + "definition": "A code that specifies this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.", + "comment": "Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) will have the coding.userSelected set to true. As described in the coding datatype: \"A coding may be marked as a \"userSelected\" if a user selected the particular coded value in a user interface (e.g. the user selects an item in a pick-list). If a user selected coding exists, it is the preferred choice for performing translations etc. Other codes can only be literal translations to alternative code systems, or codes at a lower level of granularity (e.g. a generic code for a vendor-specific primary one).", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.code", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes" + }, + "mapping": [ + { + "identity": "script10.6", + "map": "coding.code = //element(*,MedicationType)/DrugCoded/ProductCode\r\rcoding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier\r\rcoding.display = //element(*,MedicationType)/DrugDescription" + }, + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "v2", + "map": "RXO-1.1-Requested Give Code.code / RXE-2.1-Give Code.code / RXD-2.1-Dispense/Give Code.code / RXG-4.1-Give Code.code /RXA-5.1-Administered Code.code / RXC-2.1 Component Code" + }, + { + "identity": "rim", + "map": ".code" + } + ] + }, + { + "id": "MedicationKnowledge.status", + "path": "MedicationKnowledge.status", + "short": "active | inactive | entered-in-error", + "definition": "A code to indicate if the medication is in active use. The status refers to the validity about the information of the medication and not to its medicinal properties.", + "comment": "This status is intended to identify if the medication in a local system is in active use within a drug database or inventory. For example, a pharmacy system may create a new drug file record for a compounded product \"ABC Hospital Special Cream\" with an active status. At some point in the future, it may be determined that the drug record was created with an error and the status is changed to \"entered in error\". This status is not intended to specify if a medication is part of a particular formulary. It is possible that the drug record may be referenced by multiple formularies or catalogues and each of those entries would have a separate status.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.status", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element changes the interpretation of all descriptive attributes.", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationKnowledgeStatus" + } + ], + "strength": "required", + "description": "A coded concept defining if the medication is in active use.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationknowledge-status|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": ".statusCode" + } + ] + }, + { + "id": "MedicationKnowledge.manufacturer", + "path": "MedicationKnowledge.manufacturer", + "short": "Manufacturer of the item", + "definition": "Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.manufacturer", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "script10.6", + "map": "no mapping" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "RXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name" + }, + { + "identity": "rim", + "map": ".player.scopingRole[typeCode=MANU].scoper" + } + ] + }, + { + "id": "MedicationKnowledge.doseForm", + "path": "MedicationKnowledge.doseForm", + "short": "powder | tablets | capsule +", + "definition": "Describes the form of the item. Powder; tablets; capsule.", + "comment": "When Medication is referenced from MedicationRequest, this is the ordered form. When Medication is referenced within MedicationDispense, this is the dispensed form. When Medication is referenced within MedicationAdministration, this is administered form.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.doseForm", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationForm" + } + ], + "strength": "example", + "description": "A coded concept defining the form of a medication.", + "valueSet": "http://hl7.org/fhir/ValueSet/medication-form-codes" + }, + "mapping": [ + { + "identity": "script10.6", + "map": "coding.code = //element(*,DrugCodedType)/FormCode\r\rcoding.system = //element(*,DrugCodedType)/FormSourceCode" + }, + { + "identity": "v2", + "map": "RXO-5-Requested Dosage Form / RXE-6-Give Dosage Form / RXD-6-Actual Dosage Form / RXG-8-Give Dosage Form / RXA-8-Administered Dosage Form" + }, + { + "identity": "rim", + "map": ".formCode" + } + ] + }, + { + "id": "MedicationKnowledge.amount", + "path": "MedicationKnowledge.amount", + "short": "Amount of drug in package", + "definition": "Specific amount of the drug in the packaged product. For example, when specifying a product that has the same strength (For example, Insulin glargine 100 unit per mL solution for injection), this attribute provides additional clarification of the package amount (For example, 3 mL, 10mL, etc.).", + "comment": "This is the quantity of medication in a package. To specify the strength of the medication, the Ingredient.strength attribute is used.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.amount", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": ".quantity" + } + ] + }, + { + "id": "MedicationKnowledge.synonym", + "path": "MedicationKnowledge.synonym", + "short": "Additional names for a medication", + "definition": "Additional names for a medication, for example, the name(s) given to a medication in different countries. For example, acetaminophen and paracetamol or salbutamol and albuterol.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.synonym", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "MedicationKnowledge.relatedMedicationKnowledge", + "path": "MedicationKnowledge.relatedMedicationKnowledge", + "short": "Associated or related medication information", + "definition": "Associated or related knowledge about a medication.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.relatedMedicationKnowledge", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.relatedMedicationKnowledge.id", + "path": "MedicationKnowledge.relatedMedicationKnowledge.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.relatedMedicationKnowledge.extension", + "path": "MedicationKnowledge.relatedMedicationKnowledge.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.relatedMedicationKnowledge.modifierExtension", + "path": "MedicationKnowledge.relatedMedicationKnowledge.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.relatedMedicationKnowledge.type", + "path": "MedicationKnowledge.relatedMedicationKnowledge.type", + "short": "Category of medicationKnowledge", + "definition": "The category of the associated medication knowledge reference.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.relatedMedicationKnowledge.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.relatedMedicationKnowledge.reference", + "path": "MedicationKnowledge.relatedMedicationKnowledge.reference", + "short": "Associated documentation about the associated medication knowledge", + "definition": "Associated documentation about the associated medication knowledge.", + "min": 1, + "max": "*", + "base": { + "path": "MedicationKnowledge.relatedMedicationKnowledge.reference", + "min": 1, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/MedicationKnowledge" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.associatedMedication", + "path": "MedicationKnowledge.associatedMedication", + "short": "A medication resource that is associated with this medication", + "definition": "Associated or related medications. For example, if the medication is a branded product (e.g. Crestor), this is the Therapeutic Moeity (e.g. Rosuvastatin) or if this is a generic medication (e.g. Rosuvastatin), this would link to a branded product (e.g. Crestor).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.associatedMedication", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Medication" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.productType", + "path": "MedicationKnowledge.productType", + "short": "Category of the medication or product", + "definition": "Category of the medication or product (e.g. branded product, therapeutic moeity, generic product, innovator product, etc.).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.productType", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.monograph", + "path": "MedicationKnowledge.monograph", + "short": "Associated documentation about the medication", + "definition": "Associated documentation about the medication.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.monograph", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.monograph.id", + "path": "MedicationKnowledge.monograph.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.monograph.extension", + "path": "MedicationKnowledge.monograph.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.monograph.modifierExtension", + "path": "MedicationKnowledge.monograph.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.monograph.type", + "path": "MedicationKnowledge.monograph.type", + "short": "The category of medication document", + "definition": "The category of documentation about the medication. (e.g. professional monograph, patient education monograph).", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.monograph.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.monograph.source", + "path": "MedicationKnowledge.monograph.source", + "short": "Associated documentation about the medication", + "definition": "Associated documentation about the medication.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.monograph.source", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DocumentReference", + "http://hl7.org/fhir/StructureDefinition/Media" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.ingredient", + "path": "MedicationKnowledge.ingredient", + "short": "Active or inactive ingredient", + "definition": "Identifies a particular constituent of interest in the product.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.ingredient", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.ingredient.id", + "path": "MedicationKnowledge.ingredient.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.ingredient.extension", + "path": "MedicationKnowledge.ingredient.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.ingredient.modifierExtension", + "path": "MedicationKnowledge.ingredient.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.ingredient.item[x]", + "path": "MedicationKnowledge.ingredient.item[x]", + "short": "Medication(s) or substance(s) contained in the medication", + "definition": "The actual ingredient - either a substance (simple ingredient) or another medication.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.ingredient.item[x]", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Substance" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "coding.code = //element(*,MedicationType)/DrugCoded/ProductCode\r\rcoding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier\r\rcoding.display = //element(*,MedicationType)/DrugDescription" + }, + { + "identity": "v2", + "map": "RXC-2-Component Code if medication: RXO-1-Requested Give Code / RXE-2-Give Code / RXD-2-Dispense/Give Code / RXG-4-Give Code / RXA-5-Administered Code" + }, + { + "identity": "rim", + "map": ".player" + } + ] + }, + { + "id": "MedicationKnowledge.ingredient.isActive", + "path": "MedicationKnowledge.ingredient.isActive", + "short": "Active ingredient indicator", + "definition": "Indication of whether this ingredient affects the therapeutic action of the drug.", + "requirements": "True indicates that the ingredient affects the therapeutic action of the drug (i.e. active). \rFalse indicates that the ingredient does not affect the therapeutic action of the drug (i.e. inactive).", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.ingredient.isActive", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "NA" + } + ] + }, + { + "id": "MedicationKnowledge.ingredient.strength", + "path": "MedicationKnowledge.ingredient.strength", + "short": "Quantity of ingredient present", + "definition": "Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet. This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.ingredient.strength", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Ratio" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "//element(*,DrugCodedType)/Strength" + }, + { + "identity": "v2", + "map": "RXC-3-Component Amount & RXC-4-Component Units if medication: RXO-2-Requested Give Amount - Minimum & RXO-4-Requested Give Units / RXO-3-Requested Give Amount - Maximum & RXO-4-Requested Give Units / RXO-11-Requested Dispense Amount & RXO-12-Requested Dispense Units / RXE-3-Give Amount - Minimum & RXE-5-Give Units / RXE-4-Give Amount - Maximum & RXE-5-Give Units / RXE-10-Dispense Amount & RXE-10-Dispense Units" + }, + { + "identity": "rim", + "map": ".quantity" + } + ] + }, + { + "id": "MedicationKnowledge.preparationInstruction", + "path": "MedicationKnowledge.preparationInstruction", + "short": "The instructions for preparing the medication", + "definition": "The instructions for preparing the medication.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.preparationInstruction", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "markdown" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.intendedRoute", + "path": "MedicationKnowledge.intendedRoute", + "short": "The intended or approved route of administration", + "definition": "The intended or approved route of administration.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.intendedRoute", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationRoute" + } + ], + "strength": "example", + "description": "A coded concept defining the intended route of administration.", + "valueSet": "http://hl7.org/fhir/ValueSet/route-codes" + } + }, + { + "id": "MedicationKnowledge.cost", + "path": "MedicationKnowledge.cost", + "short": "The pricing of the medication", + "definition": "The price of the medication.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.cost", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.cost.id", + "path": "MedicationKnowledge.cost.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.cost.extension", + "path": "MedicationKnowledge.cost.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.cost.modifierExtension", + "path": "MedicationKnowledge.cost.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.cost.type", + "path": "MedicationKnowledge.cost.type", + "short": "The category of the cost information", + "definition": "The category of the cost information. For example, manufacturers' cost, patient cost, claim reimbursement cost, actual acquisition cost.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.cost.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.cost.source", + "path": "MedicationKnowledge.cost.source", + "short": "The source or owner for the price information", + "definition": "The source or owner that assigns the price to the medication.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.cost.source", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.cost.cost", + "path": "MedicationKnowledge.cost.cost", + "short": "The price of the medication", + "definition": "The price of the medication.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.cost.cost", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Money" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.monitoringProgram", + "path": "MedicationKnowledge.monitoringProgram", + "short": "Program under which a medication is reviewed", + "definition": "The program under which the medication is reviewed.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.monitoringProgram", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.monitoringProgram.id", + "path": "MedicationKnowledge.monitoringProgram.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.monitoringProgram.extension", + "path": "MedicationKnowledge.monitoringProgram.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.monitoringProgram.modifierExtension", + "path": "MedicationKnowledge.monitoringProgram.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.monitoringProgram.type", + "path": "MedicationKnowledge.monitoringProgram.type", + "short": "Type of program under which the medication is monitored", + "definition": "Type of program under which the medication is monitored.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.monitoringProgram.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.monitoringProgram.name", + "path": "MedicationKnowledge.monitoringProgram.name", + "short": "Name of the reviewing program", + "definition": "Name of the reviewing program.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.monitoringProgram.name", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines", + "path": "MedicationKnowledge.administrationGuidelines", + "short": "Guidelines for administration of the medication", + "definition": "Guidelines for the administration of the medication.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.administrationGuidelines", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.id", + "path": "MedicationKnowledge.administrationGuidelines.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.extension", + "path": "MedicationKnowledge.administrationGuidelines.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.modifierExtension", + "path": "MedicationKnowledge.administrationGuidelines.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.dosage", + "path": "MedicationKnowledge.administrationGuidelines.dosage", + "short": "Dosage for the medication for the specific guidelines", + "definition": "Dosage for the medication for the specific guidelines.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.dosage", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.dosage.id", + "path": "MedicationKnowledge.administrationGuidelines.dosage.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.dosage.extension", + "path": "MedicationKnowledge.administrationGuidelines.dosage.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.dosage.modifierExtension", + "path": "MedicationKnowledge.administrationGuidelines.dosage.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.dosage.type", + "path": "MedicationKnowledge.administrationGuidelines.dosage.type", + "short": "Type of dosage", + "definition": "The type of dosage (for example, prophylaxis, maintenance, therapeutic, etc.).", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.dosage.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.dosage.dosage", + "path": "MedicationKnowledge.administrationGuidelines.dosage.dosage", + "short": "Dosage for the medication for the specific guidelines", + "definition": "Dosage for the medication for the specific guidelines.", + "min": 1, + "max": "*", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.dosage.dosage", + "min": 1, + "max": "*" + }, + "type": [ + { + "code": "Dosage" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.indication[x]", + "path": "MedicationKnowledge.administrationGuidelines.indication[x]", + "short": "Indication for use that apply to the specific administration guidelines", + "definition": "Indication for use that apply to the specific administration guidelines.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.indication[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/ObservationDefinition" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics", + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics", + "short": "Characteristics of the patient that are relevant to the administration guidelines", + "definition": "Characteristics of the patient that are relevant to the administration guidelines (for example, height, weight, gender, etc.).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.id", + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.extension", + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.modifierExtension", + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]", + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]", + "short": "Specific characteristic that is relevant to the administration guideline", + "definition": "Specific characteristic that is relevant to the administration guideline (e.g. height, weight, gender).", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.value", + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.value", + "short": "The specific characteristic", + "definition": "The specific characteristic (e.g. height, weight, gender, etc.).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.value", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.medicineClassification", + "path": "MedicationKnowledge.medicineClassification", + "short": "Categorization of the medication within a formulary or classification system", + "definition": "Categorization of the medication within a formulary or classification system.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.medicineClassification", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.medicineClassification.id", + "path": "MedicationKnowledge.medicineClassification.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.medicineClassification.extension", + "path": "MedicationKnowledge.medicineClassification.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.medicineClassification.modifierExtension", + "path": "MedicationKnowledge.medicineClassification.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.medicineClassification.type", + "path": "MedicationKnowledge.medicineClassification.type", + "short": "The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification)", + "definition": "The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification).", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.medicineClassification.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.medicineClassification.classification", + "path": "MedicationKnowledge.medicineClassification.classification", + "short": "Specific category assigned to the medication", + "definition": "Specific category assigned to the medication (e.g. anti-infective, anti-hypertensive, antibiotic, etc.).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.medicineClassification.classification", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.packaging", + "path": "MedicationKnowledge.packaging", + "short": "Details about packaged medications", + "definition": "Information that only applies to packages (not products).", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.packaging", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.packaging.id", + "path": "MedicationKnowledge.packaging.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.packaging.extension", + "path": "MedicationKnowledge.packaging.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.packaging.modifierExtension", + "path": "MedicationKnowledge.packaging.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.packaging.type", + "path": "MedicationKnowledge.packaging.type", + "short": "A code that defines the specific type of packaging that the medication can be found in", + "definition": "A code that defines the specific type of packaging that the medication can be found in (e.g. blister sleeve, tube, bottle).", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.packaging.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationPackageType" + } + ], + "strength": "example", + "description": "A coded concept defining the type of packaging of a medication.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationknowledge-package-type" + } + }, + { + "id": "MedicationKnowledge.packaging.quantity", + "path": "MedicationKnowledge.packaging.quantity", + "short": "The number of product units the package would contain if fully loaded", + "definition": "The number of product units the package would contain if fully loaded.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.packaging.quantity", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.drugCharacteristic", + "path": "MedicationKnowledge.drugCharacteristic", + "short": "Specifies descriptive properties of the medicine", + "definition": "Specifies descriptive properties of the medicine, such as color, shape, imprints, etc.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.drugCharacteristic", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.drugCharacteristic.id", + "path": "MedicationKnowledge.drugCharacteristic.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.drugCharacteristic.extension", + "path": "MedicationKnowledge.drugCharacteristic.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.drugCharacteristic.modifierExtension", + "path": "MedicationKnowledge.drugCharacteristic.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.drugCharacteristic.type", + "path": "MedicationKnowledge.drugCharacteristic.type", + "short": "Code specifying the type of characteristic of medication", + "definition": "A code specifying which characteristic of the medicine is being described (for example, colour, shape, imprint).", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.drugCharacteristic.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationCharacteristic" + } + ], + "strength": "example", + "description": "A coded concept defining the characteristic types of a medication.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationknowledge-characteristic" + } + }, + { + "id": "MedicationKnowledge.drugCharacteristic.value[x]", + "path": "MedicationKnowledge.drugCharacteristic.value[x]", + "short": "Description of the characteristic", + "definition": "Description of the characteristic.", + "comment": "The description should be provided as a CodeableConcept, SimpleQuantity or an image. The description can be a string only when these others are not available.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.drugCharacteristic.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "string" + }, + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + }, + { + "code": "base64Binary" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.contraindication", + "path": "MedicationKnowledge.contraindication", + "short": "Potential clinical issue with or between medication(s)", + "definition": "Potential clinical issue with or between medication(s) (for example, drug-drug interaction, drug-disease contraindication, drug-allergy interaction, etc.).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.contraindication", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DetectedIssue" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory", + "path": "MedicationKnowledge.regulatory", + "short": "Regulatory information about a medication", + "definition": "Regulatory information about a medication.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.regulatory", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.id", + "path": "MedicationKnowledge.regulatory.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.extension", + "path": "MedicationKnowledge.regulatory.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.modifierExtension", + "path": "MedicationKnowledge.regulatory.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.regulatoryAuthority", + "path": "MedicationKnowledge.regulatory.regulatoryAuthority", + "short": "Specifies the authority of the regulation", + "definition": "The authority that is specifying the regulations.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.regulatoryAuthority", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.substitution", + "path": "MedicationKnowledge.regulatory.substitution", + "short": "Specifies if changes are allowed when dispensing a medication from a regulatory perspective", + "definition": "Specifies if changes are allowed when dispensing a medication from a regulatory perspective.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.regulatory.substitution", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.substitution.id", + "path": "MedicationKnowledge.regulatory.substitution.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.substitution.extension", + "path": "MedicationKnowledge.regulatory.substitution.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.substitution.modifierExtension", + "path": "MedicationKnowledge.regulatory.substitution.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.substitution.type", + "path": "MedicationKnowledge.regulatory.substitution.type", + "short": "Specifies the type of substitution allowed", + "definition": "Specifies the type of substitution allowed.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.substitution.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.substitution.allowed", + "path": "MedicationKnowledge.regulatory.substitution.allowed", + "short": "Specifies if regulation allows for changes in the medication when dispensing", + "definition": "Specifies if regulation allows for changes in the medication when dispensing.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.substitution.allowed", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.schedule", + "path": "MedicationKnowledge.regulatory.schedule", + "short": "Specifies the schedule of a medication in jurisdiction", + "definition": "Specifies the schedule of a medication in jurisdiction.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.regulatory.schedule", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.schedule.id", + "path": "MedicationKnowledge.regulatory.schedule.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.schedule.extension", + "path": "MedicationKnowledge.regulatory.schedule.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.schedule.modifierExtension", + "path": "MedicationKnowledge.regulatory.schedule.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.schedule.schedule", + "path": "MedicationKnowledge.regulatory.schedule.schedule", + "short": "Specifies the specific drug schedule", + "definition": "Specifies the specific drug schedule.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.schedule.schedule", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.maxDispense", + "path": "MedicationKnowledge.regulatory.maxDispense", + "short": "The maximum number of units of the medication that can be dispensed in a period", + "definition": "The maximum number of units of the medication that can be dispensed in a period.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.maxDispense", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.maxDispense.id", + "path": "MedicationKnowledge.regulatory.maxDispense.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.maxDispense.extension", + "path": "MedicationKnowledge.regulatory.maxDispense.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.maxDispense.modifierExtension", + "path": "MedicationKnowledge.regulatory.maxDispense.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.maxDispense.quantity", + "path": "MedicationKnowledge.regulatory.maxDispense.quantity", + "short": "The maximum number of units of the medication that can be dispensed", + "definition": "The maximum number of units of the medication that can be dispensed.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.maxDispense.quantity", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.maxDispense.period", + "path": "MedicationKnowledge.regulatory.maxDispense.period", + "short": "The period that applies to the maximum number of units", + "definition": "The period that applies to the maximum number of units.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.maxDispense.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Duration" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.kinetics", + "path": "MedicationKnowledge.kinetics", + "short": "The time course of drug absorption, distribution, metabolism and excretion of a medication from the body", + "definition": "The time course of drug absorption, distribution, metabolism and excretion of a medication from the body.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.kinetics", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.kinetics.id", + "path": "MedicationKnowledge.kinetics.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.kinetics.extension", + "path": "MedicationKnowledge.kinetics.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.kinetics.modifierExtension", + "path": "MedicationKnowledge.kinetics.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.kinetics.areaUnderCurve", + "path": "MedicationKnowledge.kinetics.areaUnderCurve", + "short": "The drug concentration measured at certain discrete points in time", + "definition": "The drug concentration measured at certain discrete points in time.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.kinetics.areaUnderCurve", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.kinetics.lethalDose50", + "path": "MedicationKnowledge.kinetics.lethalDose50", + "short": "The median lethal dose of a drug", + "definition": "The median lethal dose of a drug.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.kinetics.lethalDose50", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.kinetics.halfLifePeriod", + "path": "MedicationKnowledge.kinetics.halfLifePeriod", + "short": "Time required for concentration in the body to decrease by half", + "definition": "The time required for any specified property (e.g., the concentration of a substance in the body) to decrease by half.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.kinetics.halfLifePeriod", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Duration" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + } + ] + }, + "differential": { + "element": [ + { + "id": "MedicationKnowledge", + "path": "MedicationKnowledge" + }, + { + "id": "MedicationKnowledge.extension", + "path": "MedicationKnowledge.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "min": 2 + }, + { + "id": "MedicationKnowledge.extension:usdf-DrugAlternatives-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-DrugAlternatives-extension", + "min": 0, + "max": "*", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension|1.0.1" + ] + } + ] + }, + { + "id": "MedicationKnowledge.extension:usdf-PriorAuthorization-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-PriorAuthorization-extension", + "min": 0, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension|1.0.1" + ] + } + ], + "mustSupport": true + }, + { + "id": "MedicationKnowledge.extension:usdf-StepTherapyLimit-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-StepTherapyLimit-extension", + "min": 0, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension|1.0.1" + ] + } + ], + "mustSupport": true + }, + { + "id": "MedicationKnowledge.extension:usdf-QuantityLimit-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-QuantityLimit-extension", + "min": 0, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension|1.0.1" + ] + } + ], + "mustSupport": true + }, + { + "id": "MedicationKnowledge.extension:usdf-PlanID-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-PlanID-extension", + "min": 1, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension|1.0.1" + ] + } + ], + "mustSupport": true + }, + { + "id": "MedicationKnowledge.extension:usdf-DrugTierID-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-DrugTierID-extension", + "min": 1, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension|1.0.1" + ] + } + ], + "mustSupport": true + }, + { + "id": "MedicationKnowledge.code", + "path": "MedicationKnowledge.code", + "min": 1, + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes" + } + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-FormularyURL-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-FormularyURL-extension.json new file mode 100644 index 00000000000..f13fbf8d10f --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-FormularyURL-extension.json @@ -0,0 +1,283 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-FormularyURL-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "version": "1.0.1", + "name": "FormularyURL", + "title": "Formulary URL", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "string" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-MarketingURL-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-MarketingURL-extension.json new file mode 100644 index 00000000000..301777037c6 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-MarketingURL-extension.json @@ -0,0 +1,283 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-MarketingURL-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "version": "1.0.1", + "name": "MarketingURL", + "title": "Marketing URL", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "The URL that goes directly to the plan brochure for the specific standard plan or plan variation.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "string" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-Network-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-Network-extension.json new file mode 100644 index 00000000000..d9b27717629 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-Network-extension.json @@ -0,0 +1,283 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-Network-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "version": "1.0.1", + "name": "Network", + "title": "Network", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Array of Networks within a plan.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "string" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-PlanID-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-PlanID-extension.json new file mode 100644 index 00000000000..800723e896b --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-PlanID-extension.json @@ -0,0 +1,283 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-PlanID-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "version": "1.0.1", + "name": "PlanID", + "title": "Plan ID", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Unique, 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.)", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "string" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-PlanIDType-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-PlanIDType-extension.json new file mode 100644 index 00000000000..8d7e23a124e --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-PlanIDType-extension.json @@ -0,0 +1,283 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-PlanIDType-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "version": "1.0.1", + "name": "PlanIDType", + "title": "Plan ID Type", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Type of Plan ID. For all Marketplace plans this should be: HIOS-PLAN-ID", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "string" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-PriorAuthorization-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-PriorAuthorization-extension.json new file mode 100644 index 00000000000..e3a127389f6 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-PriorAuthorization-extension.json @@ -0,0 +1,283 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-PriorAuthorization-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "version": "1.0.1", + "name": "PriorAuthorization", + "title": "Prior Authorization", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A Boolean indication of whether the coverage plan imposes a prior authorization requirement on this drug.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "boolean" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-QuantityLimit-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-QuantityLimit-extension.json new file mode 100644 index 00000000000..374959f83ee --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-QuantityLimit-extension.json @@ -0,0 +1,283 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-QuantityLimit-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "version": "1.0.1", + "name": "QuantityLimit", + "title": "Quantity Limit", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A Boolean indication of whether the coverage plan imposes a quantity limit on this drug.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "boolean" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-StepTherapyLimit-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-StepTherapyLimit-extension.json new file mode 100644 index 00000000000..3120e7adc31 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-StepTherapyLimit-extension.json @@ -0,0 +1,283 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-StepTherapyLimit-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "version": "1.0.1", + "name": "StepTherapyLimit", + "title": "Step Therapy Limit", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A Boolean indication of whether the coverage plan imposes a step therapy limit on this drug.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "boolean" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-SummaryURL-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-SummaryURL-extension.json new file mode 100644 index 00000000000..5cb16324919 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/StructureDefinition-usdf-SummaryURL-extension.json @@ -0,0 +1,283 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-SummaryURL-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "version": "1.0.1", + "name": "SummaryURL", + "title": "Summary URL", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "string" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ValueSet-CoinsuranceOptionVS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ValueSet-CoinsuranceOptionVS.json new file mode 100644 index 00000000000..d86fc6d403b --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ValueSet-CoinsuranceOptionVS.json @@ -0,0 +1,49 @@ +{ + "resourceType": "ValueSet", + "id": "CoinsuranceOptionVS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CoinsuranceOptionVS", + "version": "1.0.1", + "name": "CoinsuranceOptionVS", + "title": "Qualifier for coinsurance rate", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Qualifier for coinsurance rate", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "compose": { + "include": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "version": "1.0.1" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ValueSet-CopayOptionVS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ValueSet-CopayOptionVS.json new file mode 100644 index 00000000000..dd1a834a2b5 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ValueSet-CopayOptionVS.json @@ -0,0 +1,49 @@ +{ + "resourceType": "ValueSet", + "id": "CopayOptionVS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CopayOptionVS", + "version": "1.0.1", + "name": "CopayOptionVS", + "title": "Qualifier of copay amount", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Qualifier of copay amount", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "compose": { + "include": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "version": "1.0.1" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ValueSet-DrugTierVS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ValueSet-DrugTierVS.json new file mode 100644 index 00000000000..f4a9d46f5ec --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ValueSet-DrugTierVS.json @@ -0,0 +1,49 @@ +{ + "resourceType": "ValueSet", + "id": "DrugTierVS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS", + "version": "1.0.1", + "name": "DrugTierVS", + "title": "Drug tier of medication in health plan", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "The drug tier of a particular medication in a health plan. The base set are examples. Each plan may have its own controlled vocabulary.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "compose": { + "include": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "version": "1.0.1" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ValueSet-PharmacyTypeVS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ValueSet-PharmacyTypeVS.json new file mode 100644 index 00000000000..04d5bb39fb8 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ValueSet-PharmacyTypeVS.json @@ -0,0 +1,49 @@ +{ + "resourceType": "ValueSet", + "id": "PharmacyTypeVS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/PharmacyTypeVS", + "version": "1.0.1", + "name": "PharmacyTypeVS", + "title": "Type of pharmacies", + "status": "active", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Types of pharmacies. Each payer will have its own controlled vocabulary.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "compose": { + "include": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "version": "1.0.1" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ig-r4.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ig-r4.json new file mode 100644 index 00000000000..5f1238d9dce --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/ig-r4.json @@ -0,0 +1,646 @@ +{ + "resourceType": "ImplementationGuide", + "id": "hl7.fhir.us.davinci-drug-formulary", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary", + "version": "1.0.1", + "name": "Formulary", + "status": "draft", + "date": "2020-11-20T19:06:24+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication/" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Da Vinci Payer Data Exchange (PDex) US Drug Formulary STU 1", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "packageId": "hl7.fhir.us.davinci-drug-formulary", + "license": "CC0-1.0", + "fhirVersion": [ + "4.0.1" + ], + "dependsOn": [ + { + "id": "hl7_fhir_us_core", + "uri": "http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core", + "packageId": "hl7.fhir.us.core", + "version": "3.1.1" + } + ], + "definition": { + "resource": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:resource" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-CoveragePlan" + }, + "name": "Formulary Coverage Plan", + "description": "A health plan which contains links to administrative information, a list of formulary drugs covered under that plan, and a definition of drug tiers and their associated cost-sharing models.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:resource" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-FormularyDrug" + }, + "name": "Formulary Drug", + "description": "Drug information which is part of a formulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-DrugAlternatives-extension" + }, + "name": "Drug Alternatives", + "description": "Generic or Branded Drugs included within the CoveragePlan's formulary that could be prescribed as alternatives to the current FormularyDrug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-DrugTierDefinition-extension" + }, + "name": "Drug Tier Definition", + "description": "A description of the drug tiers used by the formulary and how those tiers implement copay and coinsurance amounts. Drug tiers do not have any inherent meaning that is consistent across all formularies. Rather, each tier is defined using this element.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-DrugTierID-extension" + }, + "name": "Drug Tier ID", + "description": "A code that describes the coverage status of a drug in a health plan (e.g., preferred generic, specialty, etc.)", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-EmailPlanContact-extension" + }, + "name": "Email Plan Contact", + "description": "An email address for developers/public to report mistakes in the network and formulary data.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-FormularyURL-extension" + }, + "name": "Formulary URL", + "description": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-MarketingURL-extension" + }, + "name": "Marketing URL", + "description": "The URL that goes directly to the plan brochure for the specific standard plan or plan variation.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-Network-extension" + }, + "name": "Network", + "description": "Array of Networks within a plan.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-PlanID-extension" + }, + "name": "Plan ID", + "description": "Unique, 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.)", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-PlanIDType-extension" + }, + "name": "Plan ID Type", + "description": "Type of Plan ID. For all Marketplace plans this should be: HIOS-PLAN-ID", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-PriorAuthorization-extension" + }, + "name": "Prior Authorization", + "description": "A Boolean indication of whether the coverage plan imposes a prior authorization requirement on this drug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-QuantityLimit-extension" + }, + "name": "Quantity Limit", + "description": "A Boolean indication of whether the coverage plan imposes a quantity limit on this drug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-StepTherapyLimit-extension" + }, + "name": "Step Therapy Limit", + "description": "A Boolean indication of whether the coverage plan imposes a step therapy limit on this drug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-SummaryURL-extension" + }, + "name": "Summary URL", + "description": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/CoinsuranceOptionVS" + }, + "name": "Qualifier for coinsurance rate", + "description": "Qualifier for coinsurance rate", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/CopayOptionVS" + }, + "name": "Qualifier of copay amount", + "description": "Qualifier of copay amount", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/DrugTierVS" + }, + "name": "Drug tier of medication in health plan", + "description": "The drug tier of a particular medication in a health plan. The base set are examples. Each plan may have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/PharmacyTypeVS" + }, + "name": "Type of pharmacies", + "description": "Types of pharmacies. Each payer will have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-CoinsuranceOptionCS" + }, + "name": "Code for qualifier for coinsurance rate", + "description": "Code for qualifier for coinsurance rate", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-CopayOptionCS" + }, + "name": "Codes for qualifier of copay amount", + "description": "Codes for qualifier of copay amount", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-DrugTierCS" + }, + "name": "Codes for medication drug tiers in health plans", + "description": "Codes to represent the drug tier of a particular medication in a health plan. Base set are examples. Each plan may have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-PharmacyTypeCS" + }, + "name": "Codes for types of pharmacies", + "description": "Codes for types of Pharmacies. Each payer will have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CapabilityStatement" + } + ], + "reference": { + "reference": "CapabilityStatement/usdf-server" + }, + "name": "usdf-server CapabilityStatement", + "description": "This Section describes the expected capabilities of the US Drug Formulary Server actor which is responsible for providing responses to the queries submitted by the US Drug Formulary Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by US Drug Formulary Server are defined.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "SearchParameter" + } + ], + "reference": { + "reference": "SearchParameter/DrugName" + }, + "name": "DrugName", + "description": "Accesses the Descriptive Name of a FormularyDrug", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "SearchParameter" + } + ], + "reference": { + "reference": "SearchParameter/DrugPlan" + }, + "name": "DrugPlan", + "description": "Accesses the DrugPlan ID of a FormularyDrug", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "SearchParameter" + } + ], + "reference": { + "reference": "SearchParameter/DrugTier" + }, + "name": "DrugTier", + "description": "Accesses the DrugTier ID of a FormularyDrug", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/covplanV1002" + }, + "name": "Coverage Plan V1002", + "description": "Sample Gold Health Plan", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/CoveragePlanV3001" + }, + "name": "Coverage Plan V3001", + "description": "Sample Gold Health Plan", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/CoveragePlanV3002" + }, + "name": "Coverage Plan V3002", + "description": "Sample Gold Health Plan", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/CoveragePlanV3004t" + }, + "name": "Coverage Plan V3004t", + "description": "BluePreferred PPO HSA Silver $3,000", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/formularydrugV1002" + }, + "name": "Formulary Drug V1002", + "description": "Percocet 5 MG / 325 MG Oral Tablet", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/FormularyDrugV3001" + }, + "name": "Formulary Drug V3001", + "description": "Percocet 5 MG / 325 MG Oral Tablet", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/FormularyDrugV3002" + }, + "name": "Formulary Drug V3002", + "description": "Tylenol Extra Strength 500 MG Oral Tablet", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/cmsip9" + }, + "name": "Formulary Drug cmsip9", + "description": "Doxepin HCl 5 % Topical Cream", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + } + ], + "page": { + "nameUrl": "toc.html", + "title": "Table of Contents", + "generation": "html", + "page": [ + { + "nameUrl": "index.html", + "title": "Home", + "generation": "markdown" + }, + { + "nameUrl": "profiles.html", + "title": "Profiles", + "generation": "markdown" + }, + { + "nameUrl": "examples.html", + "title": "Examples", + "generation": "html" + }, + { + "nameUrl": "4_downloads.html", + "title": "Downloads", + "generation": "markdown" + }, + { + "nameUrl": "1-implementation.html", + "title": "1 Implementation", + "generation": "markdown" + }, + { + "nameUrl": "downloads.html", + "title": "Downloads", + "generation": "markdown" + } + ] + }, + "parameter": [ + { + "code": "path-resource", + "value": "input/capabilities" + }, + { + "code": "path-resource", + "value": "input/examples" + }, + { + "code": "path-resource", + "value": "input/extensions" + }, + { + "code": "path-resource", + "value": "input/models" + }, + { + "code": "path-resource", + "value": "input/operations" + }, + { + "code": "path-resource", + "value": "input/profiles" + }, + { + "code": "path-resource", + "value": "input/resources" + }, + { + "code": "path-resource", + "value": "input/vocabulary" + }, + { + "code": "path-resource", + "value": "input/maps" + }, + { + "code": "path-resource", + "value": "input/testing" + }, + { + "code": "path-resource", + "value": "input/history" + }, + { + "code": "path-resource", + "value": "fsh-generated/resources" + }, + { + "code": "path-pages", + "value": "template/config" + }, + { + "code": "path-pages", + "value": "input/images" + }, + { + "code": "path-tx-cache", + "value": "input-cache/txcache" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/package.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/package.json similarity index 100% rename from conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/package.json rename to conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/101/package/package.json diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/.index.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/.index.json new file mode 100644 index 00000000000..7be30160f53 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/.index.json @@ -0,0 +1,251 @@ +{ + "index-version": 1, + "files": [ + { + "filename": "SearchParameter-DrugPlan.json", + "resourceType": "SearchParameter", + "id": "DrugPlan", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugPlan", + "version": "1.1.0", + "type": "string" + }, + { + "filename": "StructureDefinition-usdf-MarketingURL-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-MarketingURL-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "CodeSystem-usdf-DrugTierCS.json", + "resourceType": "CodeSystem", + "id": "usdf-DrugTierCS", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "version": "1.1.0" + }, + { + "filename": "CodeSystem-usdf-CoinsuranceOptionCS.json", + "resourceType": "CodeSystem", + "id": "usdf-CoinsuranceOptionCS", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "version": "1.1.0" + }, + { + "filename": "StructureDefinition-usdf-PlanIDType-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-PlanIDType-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "ValueSet-CopayOptionVS.json", + "resourceType": "ValueSet", + "id": "CopayOptionVS", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CopayOptionVS", + "version": "1.1.0" + }, + { + "filename": "ImplementationGuide-hl7.fhir.us.davinci-drug-formulary.json", + "resourceType": "ImplementationGuide", + "id": "hl7.fhir.us.davinci-drug-formulary", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary", + "version": "1.1.0" + }, + { + "filename": "StructureDefinition-usdf-SummaryURL-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-SummaryURL-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "ValueSet-DrugTierVS.json", + "resourceType": "ValueSet", + "id": "DrugTierVS", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS", + "version": "1.1.0" + }, + { + "filename": "CodeSystem-usdf-CopayOptionCS.json", + "resourceType": "CodeSystem", + "id": "usdf-CopayOptionCS", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "version": "1.1.0" + }, + { + "filename": "CodeSystem-usdf-PharmacyTypeCS.json", + "resourceType": "CodeSystem", + "id": "usdf-PharmacyTypeCS", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "version": "1.1.0" + }, + { + "filename": "StructureDefinition-usdf-DrugAlternatives-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-DrugAlternatives-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "StructureDefinition-usdf-FormularyDrug.json", + "resourceType": "StructureDefinition", + "id": "usdf-FormularyDrug", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug", + "version": "1.1.0", + "kind": "resource", + "type": "MedicationKnowledge" + }, + { + "filename": "StructureDefinition-usdf-PriorAuthorization-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-PriorAuthorization-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "ig-r4.json", + "resourceType": "ImplementationGuide", + "id": "hl7.fhir.us.davinci-drug-formulary", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary", + "version": "1.1.0" + }, + { + "filename": "StructureDefinition-usdf-PlanID-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-PlanID-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "StructureDefinition-usdf-DrugTierID-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-DrugTierID-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "StructureDefinition-usdf-EmailPlanContact-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-EmailPlanContact-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "ValueSet-PharmacyTypeVS.json", + "resourceType": "ValueSet", + "id": "PharmacyTypeVS", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/PharmacyTypeVS", + "version": "1.1.0" + }, + { + "filename": "ValueSet-CoinsuranceOptionVS.json", + "resourceType": "ValueSet", + "id": "CoinsuranceOptionVS", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CoinsuranceOptionVS", + "version": "1.1.0" + }, + { + "filename": "SearchParameter-DrugName.json", + "resourceType": "SearchParameter", + "id": "DrugName", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugName", + "version": "1.1.0", + "type": "string" + }, + { + "filename": "CapabilityStatement-usdf-server.json", + "resourceType": "CapabilityStatement", + "id": "usdf-server", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CapabilityStatement/usdf-server", + "version": "1.1.0", + "kind": "requirements" + }, + { + "filename": "StructureDefinition-usdf-MailOrder-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-MailOrder-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MailOrder-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "StructureDefinition-usdf-QuantityLimit-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-QuantityLimit-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "StructureDefinition-usdf-DrugTierDefinition-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-DrugTierDefinition-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "StructureDefinition-usdf-StepTherapyLimit-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-StepTherapyLimit-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "SearchParameter-DrugTier.json", + "resourceType": "SearchParameter", + "id": "DrugTier", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugTier", + "version": "1.1.0", + "type": "token" + }, + { + "filename": "StructureDefinition-usdf-Network-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-Network-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "StructureDefinition-usdf-FormularyURL-extension.json", + "resourceType": "StructureDefinition", + "id": "usdf-FormularyURL-extension", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "version": "1.1.0", + "kind": "complex-type", + "type": "Extension" + }, + { + "filename": "StructureDefinition-usdf-CoveragePlan.json", + "resourceType": "StructureDefinition", + "id": "usdf-CoveragePlan", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan", + "version": "1.1.0", + "kind": "resource", + "type": "List" + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CapabilityStatement-usdf-server.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CapabilityStatement-usdf-server.json new file mode 100644 index 00000000000..193d821da03 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CapabilityStatement-usdf-server.json @@ -0,0 +1,361 @@ +{ + "resourceType": "CapabilityStatement", + "id": "usdf-server", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CapabilityStatement/usdf-server", + "version": "1.1.0", + "name": "UsdfServerCapabilityStatement", + "title": "usdf-server CapabilityStatement", + "status": "active", + "experimental": false, + "date": "2021-09-23", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "This Section describes the expected capabilities of the US Drug Formulary Server actor which is responsible for providing responses to the queries submitted by the US Drug Formulary Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by US Drug Formulary Server are defined.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "kind": "requirements", + "fhirVersion": "4.0.1", + "format": [ + "xml", + "json" + ], + "patchFormat": [ + "application/json-patch+json" + ], + "implementationGuide": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary" + ], + "rest": [ + { + "mode": "server", + "documentation": "US Drug Formulary Server **SHALL**:\n\n1. Support all profiles defined in this Implementation Guide..\n1. Implement the RESTful behavior according to the FHIR specification.\n1. Return the following response classes:\n - (Status 400): invalid parameter\n - (Status 401/4xx): unauthorized request\n - (Status 403): insufficient scope\n - (Status 404): unknown resource\n - (Status 410): deleted resource.\n1. Support json source formats for all US Drug Formulary interactions.\n1. Support the searchParameters on each profile individually and in combination.\n\nUS Drug Formulary Server **SHOULD**:\n\n1. Support xml source formats for all US Drug Formulary interactions.\n", + "resource": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "type": "List", + "supportedProfile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "_id", + "definition": "http://hl7.org/fhir/SearchParameter/Resource-id", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "identifier", + "definition": "http://hl7.org/fhir/SearchParameter/clinical-identifier", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "item", + "definition": "http://hl7.org/fhir/SearchParameter/List-item", + "type": "reference" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "status", + "definition": "http://hl7.org/fhir/SearchParameter/List-status", + "type": "token" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "type": "MedicationKnowledge", + "supportedProfile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + ], + "interaction": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "create" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "search-type" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "code": "read" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "vread" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "update" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "patch" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "delete" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHOULD" + } + ], + "code": "history-instance" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "MAY" + } + ], + "code": "history-type" + } + ], + "referencePolicy": [ + "resolves" + ], + "searchParam": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "DrugName", + "definition": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugName", + "type": "string" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "DrugTier", + "definition": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugTier", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "DrugPlan", + "definition": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugPlan", + "type": "string" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "code", + "definition": "http://hl7.org/fhir/SearchParameter/MedicationKnowledge-code", + "type": "token" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation", + "valueCode": "SHALL" + } + ], + "name": "_id", + "definition": "http://hl7.org/fhir/SearchParameter/Resource-id", + "type": "token" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CodeSystem-usdf-CoinsuranceOptionCS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CodeSystem-usdf-CoinsuranceOptionCS.json new file mode 100644 index 00000000000..f3d38565d03 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CodeSystem-usdf-CoinsuranceOptionCS.json @@ -0,0 +1,70 @@ +{ + "resourceType": "CodeSystem", + "id": "usdf-CoinsuranceOptionCS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "version": "1.1.0", + "name": "CoInsuranceOptionCS", + "title": "Code for qualifier for coinsurance rate", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Code for qualifier for coinsurance rate", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "content": "complete", + "count": 5, + "concept": [ + { + "code": "after-deductible", + "display": "After Deductible", + "definition": "The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + }, + { + "code": "no-charge", + "display": "No Charge", + "definition": "No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + }, + { + "code": "no-charge-after-deductible", + "display": "No Charge After Deductible", + "definition": "The consumer first pays the deductible, and after thedeductible is met, no coinsurance is charged (this indicates that this benefit is subject to the deductible)." + }, + { + "code": "charge", + "display": "Charge", + "definition": "The consumer always pays just the coinsurance and the issuer pays the remainder of allowed charges (this indicates that this benefit is not subject to the deductible)." + }, + { + "code": "not-applicable", + "display": "Not Applicable", + "definition": "The consumer pays only a copay. Note: When using Not Applicable for coinsurance, Not Applicable cannot also be used for copay (unless the drug tier type is Medical Service Drugs)." + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CodeSystem-usdf-CopayOptionCS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CodeSystem-usdf-CopayOptionCS.json new file mode 100644 index 00000000000..3ab41ed6828 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CodeSystem-usdf-CopayOptionCS.json @@ -0,0 +1,75 @@ +{ + "resourceType": "CodeSystem", + "id": "usdf-CopayOptionCS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "version": "1.1.0", + "name": "CopayOptionCS", + "title": "Codes for qualifier of copay amount", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Codes for qualifier of copay amount", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "content": "complete", + "count": 6, + "concept": [ + { + "code": "after-deductible", + "display": "After Deductible", + "definition": "The consumer first pays the deductible, and after the deductible is met, the consumer is responsible only for the copay (this indicates that this benefit is subject to the deductible)." + }, + { + "code": "before-deductible", + "display": "Before Deductible", + "definition": "The consumer first pays the copay, and any net remaining allowed charges accrue to the deductible (this indicates that this benefit is subject to the deductible)." + }, + { + "code": "no-charge", + "display": "No Charge", + "definition": "No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + }, + { + "code": "no-charge-after-deductible", + "display": "No Charge After Deductible", + "definition": "The consumer first pays the deductible, and after the deductible is met, no copayment is charged (this indicates that this benefit is subject to the deductible)." + }, + { + "code": "charge", + "display": "Charge", + "definition": "The consumer always pays just the copay and the issuer pays the remainder of allowed charges (this indicates that this benefit is not subject to the deductible)." + }, + { + "code": "not-applicable", + "display": "Not Applicable", + "definition": "Deductible is not applicable: Zero-deductible cost sharing represented by a co-pay value of 'Not applicable' and co-insurance value of 'No charge'." + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CodeSystem-usdf-DrugTierCS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CodeSystem-usdf-DrugTierCS.json new file mode 100644 index 00000000000..45c6cf33f99 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CodeSystem-usdf-DrugTierCS.json @@ -0,0 +1,90 @@ +{ + "resourceType": "CodeSystem", + "id": "usdf-DrugTierCS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "version": "1.1.0", + "name": "DrugTierCS", + "title": "Codes for medication drug tiers in health plans", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Codes to represent the drug tier of a particular medication in a health plan. Base set are examples. Each plan may have its own controlled vocabulary.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "content": "complete", + "count": 9, + "concept": [ + { + "code": "generic", + "display": "Generic", + "definition": "Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier." + }, + { + "code": "preferred-generic", + "display": "Preferred Generic", + "definition": "Commonly prescribed generic drugs." + }, + { + "code": "non-preferred-generic", + "display": "Non-preferred Generic", + "definition": "Generic drugs that cost more than drugs in ‘generic’ tier." + }, + { + "code": "specialty", + "display": "Specialty", + "definition": "Drugs used to treat complex conditions like cancer and multiple sclerosis. They can be generic or brand name, and are typically the most expensive drugs on the formulary." + }, + { + "code": "brand", + "display": "Brand", + "definition": "Brand name drugs that cost more than ‘preferred brand’ drugs." + }, + { + "code": "preferred-brand", + "display": "Preferred Brand", + "definition": "Brand name drugs" + }, + { + "code": "non-preferred-brand", + "display": "Non-preferred Brand", + "definition": "Brand name drugs that cost more than ‘brand’ drugs." + }, + { + "code": "zero-cost-share-preventative", + "display": "Zero cost-share preventative", + "definition": "Preventive medications and products available at no cost." + }, + { + "code": "medical-service", + "display": "Medical Service", + "definition": "Drugs that must be administered by a clinician or in a facility and may be covered under a medical benefit." + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CodeSystem-usdf-PharmacyTypeCS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CodeSystem-usdf-PharmacyTypeCS.json new file mode 100644 index 00000000000..e7fc3392b0e --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/CodeSystem-usdf-PharmacyTypeCS.json @@ -0,0 +1,85 @@ +{ + "resourceType": "CodeSystem", + "id": "usdf-PharmacyTypeCS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "version": "1.1.0", + "name": "PharmacyTypeCS", + "title": "Codes for types of pharmacies", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Codes for types of Pharmacies. Each payer will have its own controlled vocabulary.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "content": "complete", + "count": 8, + "concept": [ + { + "code": "1-month-in-retail", + "display": "1 month in network retail", + "definition": "1 Month Supply via in-network retail pharmacy." + }, + { + "code": "1-month-out-retail", + "display": "1 month out of network retail", + "definition": "1 Month Supply via out-of-network retail pharmacy." + }, + { + "code": "1-month-in-mail", + "display": "1 month in network mail order", + "definition": "1 Month Supply via in-network mail order pharmacy." + }, + { + "code": "1-month-out-mail", + "display": "1 month out of network mail order", + "definition": "1 Month Supply via out-of-network mail order pharmacy." + }, + { + "code": "3-month-in-retail", + "display": "3 month in network retail", + "definition": "3 Month Supply via in-network retail pharmacy." + }, + { + "code": "3-month-out-retail", + "display": "3 month out of network retail", + "definition": "3 Month Supply via out-of-network retail pharmacy." + }, + { + "code": "3-month-in-mail", + "display": "3 month in network mail order", + "definition": "3 Month Supply via in-network mail order pharmacy." + }, + { + "code": "3-month-out-mail", + "display": "3 month out of network mail order", + "definition": "3 Month Supply via out-of-network mail order pharmacy." + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ImplementationGuide-hl7.fhir.us.davinci-drug-formulary.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ImplementationGuide-hl7.fhir.us.davinci-drug-formulary.json new file mode 100644 index 00000000000..c8f58a97dab --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ImplementationGuide-hl7.fhir.us.davinci-drug-formulary.json @@ -0,0 +1,959 @@ +{ + "resourceType": "ImplementationGuide", + "id": "hl7.fhir.us.davinci-drug-formulary", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary", + "version": "1.1.0", + "name": "Formulary", + "title": "DaVinci Payer Data Exchange (PDex) US Drug Formulary", + "status": "draft", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Da Vinci Payer Data Exchange (PDex) US Drug Formulary STU 1.1.0", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "packageId": "hl7.fhir.us.davinci-drug-formulary", + "license": "CC0-1.0", + "fhirVersion": [ + "4.0.1" + ], + "dependsOn": [ + { + "id": "hl7_fhir_us_core", + "uri": "http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core", + "packageId": "hl7.fhir.us.core", + "version": "3.1.1" + } + ], + "definition": { + "extension": [ + { + "extension": [ + { + "url": "code", + "valueString": "copyrightyear" + }, + { + "url": "value", + "valueString": "2021+" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "releaselabel" + }, + { + "url": "value", + "valueString": "STU 1.1" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "show-inherited-invariants" + }, + { + "url": "value", + "valueString": "false" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-jurisdiction" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-publisher" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "jira-code" + }, + { + "url": "value", + "valueString": "davinci-df" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-history" + }, + { + "url": "value", + "valueString": "http://hl7.org/fhir/us/davinci-drug-formulary/history.html" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "autoload-resources" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-liquid" + }, + { + "url": "value", + "valueString": "template/liquid" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-liquid" + }, + { + "url": "value", + "valueString": "input/liquid" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-qa" + }, + { + "url": "value", + "valueString": "temp/qa" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-temp" + }, + { + "url": "value", + "valueString": "temp/pages" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-output" + }, + { + "url": "value", + "valueString": "output" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "path-suppressed-warnings" + }, + { + "url": "value", + "valueString": "input/ignoreWarnings.txt" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "template-html" + }, + { + "url": "value", + "valueString": "template-page.html" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "template-md" + }, + { + "url": "value", + "valueString": "template-page-md.html" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-contact" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-context" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-copyright" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-license" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "apply-version" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + }, + { + "extension": [ + { + "url": "code", + "valueString": "active-tables" + }, + { + "url": "value", + "valueString": "true" + } + ], + "url": "http://hl7.org/fhir/tools/StructureDefinition/ig-parameter" + } + ], + "resource": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:resource" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-CoveragePlan" + }, + "name": "Formulary Coverage Plan", + "description": "A health plan which contains links to administrative information, a list of formulary drugs covered under that plan, and a definition of drug tiers and their associated cost-sharing models.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:resource" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-FormularyDrug" + }, + "name": "Formulary Drug", + "description": "Drug information which is part of a formulary including its RxNorm code, the PlanID of the formulary, information on prescribing limitations, and optionally drug classification and alternatives.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-DrugAlternatives-extension" + }, + "name": "Drug Alternatives", + "description": "Generic or Branded Drugs included within the CoveragePlan's formulary that could be prescribed as alternatives to the current FormularyDrug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-DrugTierDefinition-extension" + }, + "name": "Drug Tier Definition", + "description": "A description of the drug tiers used by the formulary and how those tiers implement copay and coinsurance amounts. Drug tiers do not have any inherent meaning that is consistent across all formularies. Rather, each tier is defined using this element.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-DrugTierID-extension" + }, + "name": "Drug Tier ID", + "description": "A code that describes the coverage status of a drug in a health plan (e.g., preferred generic, specialty, etc.)", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-EmailPlanContact-extension" + }, + "name": "Email Plan Contact", + "description": "An email address for developers/public to report mistakes in the network and formulary data. FHIR URL type can be a web-url or an e-mail address.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-FormularyURL-extension" + }, + "name": "Formulary URL", + "description": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation. If the formulary brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-MailOrder-extension" + }, + "name": "Mail Order", + "description": "A Boolean indication of whether the formulary drug is available by mail order through the associated plan. The MailOrder value in FormularyDrug overrides the MailOrder value in DrugTierDefinition within the CoveragePlan.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-MarketingURL-extension" + }, + "name": "Marketing URL", + "description": "The URL that goes directly to the plan brochure for the specific standard plan or plan variation. If the plan brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-Network-extension" + }, + "name": "Network", + "description": "Array of Networks within a plan. If a network is not applicable for a plan, enter 'Not applicable' in the value string.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-PlanID-extension" + }, + "name": "Plan ID", + "description": "Unique, generated Plan ID number, such as HIOS ID for QHPs or Contract Number for Medicare Advantage Plans. Plan IDs must be unique within each organization that manages their formulary data.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-PlanIDType-extension" + }, + "name": "Plan ID Type", + "description": "Type of Plan ID. For all Marketplace plans this should be: HIOS-PLAN-ID. For all other plans this should be: OTHER-PLAN-ID.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-PriorAuthorization-extension" + }, + "name": "Prior Authorization", + "description": "A Boolean indication of whether the coverage plan imposes a prior authorization requirement on this drug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-QuantityLimit-extension" + }, + "name": "Quantity Limit", + "description": "A Boolean indication of whether the coverage plan imposes a quantity limit on this drug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-StepTherapyLimit-extension" + }, + "name": "Step Therapy Limit", + "description": "A Boolean indication of whether the coverage plan imposes a step therapy limit on this drug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-SummaryURL-extension" + }, + "name": "Summary URL", + "description": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation. If the formulary brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/CoinsuranceOptionVS" + }, + "name": "Qualifier for coinsurance rate", + "description": "Qualifier for coinsurance rate", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/CopayOptionVS" + }, + "name": "Qualifier of copay amount", + "description": "Qualifier of copay amount", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/DrugTierVS" + }, + "name": "Drug tier of medication in health plan", + "description": "The drug tier of a particular medication in a health plan. The base set are examples. Each plan may have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/PharmacyTypeVS" + }, + "name": "Type of pharmacies", + "description": "Types of pharmacies. Each payer will have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-CoinsuranceOptionCS" + }, + "name": "Code for qualifier for coinsurance rate", + "description": "Code for qualifier for coinsurance rate", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-CopayOptionCS" + }, + "name": "Codes for qualifier of copay amount", + "description": "Codes for qualifier of copay amount", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-DrugTierCS" + }, + "name": "Codes for medication drug tiers in health plans", + "description": "Codes to represent the drug tier of a particular medication in a health plan. Base set are examples. Each plan may have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-PharmacyTypeCS" + }, + "name": "Codes for types of pharmacies", + "description": "Codes for types of Pharmacies. Each payer will have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CapabilityStatement" + } + ], + "reference": { + "reference": "CapabilityStatement/usdf-server" + }, + "name": "US Drug Formulary Server Capability Statement", + "description": "This Section describes the expected capabilities of the US Drug Formulary Server actor which is responsible for providing responses to the queries submitted by the US Drug Formulary Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by US Drug Formulary Server are defined.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "SearchParameter" + } + ], + "reference": { + "reference": "SearchParameter/DrugName" + }, + "name": "DrugName", + "description": "Accesses the Descriptive Name of a FormularyDrug", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "SearchParameter" + } + ], + "reference": { + "reference": "SearchParameter/DrugPlan" + }, + "name": "DrugPlan", + "description": "Accesses the DrugPlan ID of a FormularyDrug", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "SearchParameter" + } + ], + "reference": { + "reference": "SearchParameter/DrugTier" + }, + "name": "DrugTier", + "description": "Accesses the DrugTier ID of a FormularyDrug", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/covplanV1002" + }, + "name": "Coverage Plan V1002", + "description": "Sample Gold Health Plan", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/CoveragePlanV3001" + }, + "name": "Coverage Plan V3001", + "description": "Sample Gold Health Plan", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/CoveragePlanV3002" + }, + "name": "Coverage Plan V3002", + "description": "Sample Gold Health Plan", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/CoveragePlanV3004t" + }, + "name": "Coverage Plan V3004t", + "description": "BluePreferred PPO HSA Silver $3,000", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/cmsip9" + }, + "name": "Formulary Drug cmsip9", + "description": "Doxepin HCl 5 % Topical Cream", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/formularydrugV1002" + }, + "name": "Formulary Drug V1002", + "description": "Percocet 5 MG / 325 MG Oral Tablet", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/FormularyDrugV3001" + }, + "name": "Formulary Drug V3001", + "description": "Percocet 5 MG / 325 MG Oral Tablet", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/FormularyDrugV3002" + }, + "name": "Formulary Drug V3002", + "description": "Tylenol Extra Strength 500 MG Oral Tablet", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + } + ], + "page": { + "nameUrl": "toc.html", + "title": "Table of Contents", + "generation": "html", + "page": [ + { + "nameUrl": "index.html", + "title": "Home", + "generation": "markdown" + }, + { + "nameUrl": "credits.html", + "title": "Credits", + "generation": "markdown" + }, + { + "nameUrl": "use_cases_and_overview.html", + "title": "Use Cases and Overview", + "generation": "markdown" + }, + { + "nameUrl": "search_parameters.html", + "title": "Search Parameters", + "generation": "markdown" + }, + { + "nameUrl": "queries.html", + "title": "Queries", + "generation": "markdown" + }, + { + "nameUrl": "artifacts.html", + "title": "Artifacts Summary", + "generation": "html" + }, + { + "nameUrl": "downloads.html", + "title": "Downloads", + "generation": "markdown" + }, + { + "nameUrl": "change_notes.html", + "title": "Change Notes", + "generation": "markdown" + } + ] + }, + "parameter": [ + { + "code": "path-resource", + "value": "input/capabilities" + }, + { + "code": "path-resource", + "value": "input/examples" + }, + { + "code": "path-resource", + "value": "input/extensions" + }, + { + "code": "path-resource", + "value": "input/models" + }, + { + "code": "path-resource", + "value": "input/operations" + }, + { + "code": "path-resource", + "value": "input/profiles" + }, + { + "code": "path-resource", + "value": "input/resources" + }, + { + "code": "path-resource", + "value": "input/vocabulary" + }, + { + "code": "path-resource", + "value": "input/maps" + }, + { + "code": "path-resource", + "value": "input/testing" + }, + { + "code": "path-resource", + "value": "input/history" + }, + { + "code": "path-resource", + "value": "fsh-generated/resources" + }, + { + "code": "path-pages", + "value": "template/config" + }, + { + "code": "path-pages", + "value": "input/images" + }, + { + "code": "path-tx-cache", + "value": "input-cache/txcache" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/SearchParameter-DrugName.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/SearchParameter-DrugName.json new file mode 100644 index 00000000000..0c53113fd84 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/SearchParameter-DrugName.json @@ -0,0 +1,56 @@ +{ + "resourceType": "SearchParameter", + "id": "DrugName", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugName", + "version": "1.1.0", + "name": "DrugName", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Accesses the Descriptive Name of a FormularyDrug", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "code": "DrugName", + "base": [ + "MedicationKnowledge" + ], + "type": "string", + "expression": "MedicationKnowledge.code.coding.display", + "multipleOr": true, + "multipleAnd": true, + "comparator": [ + "eq" + ], + "modifier": [ + "missing", + "exact", + "contains" + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/SearchParameter-DrugPlan.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/SearchParameter-DrugPlan.json new file mode 100644 index 00000000000..cfe68606df1 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/SearchParameter-DrugPlan.json @@ -0,0 +1,49 @@ +{ + "resourceType": "SearchParameter", + "id": "DrugPlan", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugPlan", + "version": "1.1.0", + "name": "DrugPlan", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Accesses the DrugPlan ID of a FormularyDrug", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "code": "DrugPlan", + "base": [ + "MedicationKnowledge" + ], + "type": "string", + "expression": "MedicationKnowledge.extension.where(url='http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension').value", + "comparator": [ + "eq" + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/SearchParameter-DrugTier.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/SearchParameter-DrugTier.json new file mode 100644 index 00000000000..8d681de90a9 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/SearchParameter-DrugTier.json @@ -0,0 +1,49 @@ +{ + "resourceType": "SearchParameter", + "id": "DrugTier", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugTier", + "version": "1.1.0", + "name": "DrugTier", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Accesses the DrugTier ID of a FormularyDrug", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "code": "DrugTier", + "base": [ + "MedicationKnowledge" + ], + "type": "token", + "expression": "MedicationKnowledge.extension.where(url='http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension').value", + "comparator": [ + "eq" + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-CoveragePlan.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-CoveragePlan.json new file mode 100644 index 00000000000..b6ece3745b1 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-CoveragePlan.json @@ -0,0 +1,1875 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-CoveragePlan", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category", + "valueString": "Base.Management" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category", + "valueCode": "not-classified" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan", + "version": "1.1.0", + "name": "CoveragePlan", + "title": "Formulary Coverage Plan", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A health plan which contains links to administrative information, a list of formulary drugs covered under that plan, and a definition of drug tiers and their associated cost-sharing models.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "List", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "List", + "path": "List", + "short": "A list is a curated collection of resources", + "definition": "A list is a curated collection of resources.", + "alias": [ + "Collection", + "WorkingList", + "Organizer" + ], + "min": 0, + "max": "*", + "base": { + "path": "List", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "lst-1", + "severity": "error", + "human": "A list can only have an emptyReason if it is empty", + "expression": "emptyReason.empty() or entry.empty()", + "xpath": "not(exists(f:emptyReason) and exists(f:entry))", + "source": "http://hl7.org/fhir/StructureDefinition/List" + }, + { + "key": "lst-2", + "severity": "error", + "human": "The deleted flag can only be used if the mode of the list is \"changes\"", + "expression": "mode = 'changes' or entry.deleted.empty()", + "xpath": "(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))", + "source": "http://hl7.org/fhir/StructureDefinition/List" + }, + { + "key": "lst-3", + "severity": "error", + "human": "An entry date can only be used if the mode of the list is \"working\"", + "expression": "mode = 'working' or entry.date.empty()", + "xpath": "(f:mode/@value = 'working') or not(exists(f:entry/f:date))", + "source": "http://hl7.org/fhir/StructureDefinition/List" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "rim", + "map": "Act[classCode id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "List.implicitRules", + "path": "List.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "List.language", + "path": "List.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages" + } + }, + { + "id": "List.text", + "path": "List.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "List.contained", + "path": "List.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "List.extension", + "path": "List.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 4, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "List.extension:usdf-DrugTierDefinition-extension", + "path": "List.extension", + "sliceName": "usdf-DrugTierDefinition-extension", + "short": "Drug Tier Definition", + "definition": "A description of the drug tiers used by the formulary and how those tiers implement copay and coinsurance amounts. Drug tiers do not have any inherent meaning that is consistent across all formularies. Rather, each tier is defined using this element.", + "min": 1, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.extension:usdf-Network-extension", + "path": "List.extension", + "sliceName": "usdf-Network-extension", + "short": "Network", + "definition": "Array of Networks within a plan. If a network is not applicable for a plan, enter 'Not applicable' in the value string.", + "min": 1, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.extension:usdf-SummaryURL-extension", + "path": "List.extension", + "sliceName": "usdf-SummaryURL-extension", + "short": "Summary URL", + "definition": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation. If the formulary brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "min": 1, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.extension:usdf-FormularyURL-extension", + "path": "List.extension", + "sliceName": "usdf-FormularyURL-extension", + "short": "Formulary URL", + "definition": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation. If the formulary brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.extension:usdf-EmailPlanContact-extension", + "path": "List.extension", + "sliceName": "usdf-EmailPlanContact-extension", + "short": "Email Plan Contact", + "definition": "An email address for developers/public to report mistakes in the network and formulary data. FHIR URL type can be a web-url or an e-mail address.", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.extension:usdf-MarketingURL-extension", + "path": "List.extension", + "sliceName": "usdf-MarketingURL-extension", + "short": "Marketing URL", + "definition": "The URL that goes directly to the plan brochure for the specific standard plan or plan variation. If the plan brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.extension:usdf-PlanIDType-extension", + "path": "List.extension", + "sliceName": "usdf-PlanIDType-extension", + "short": "Plan ID Type", + "definition": "Type of Plan ID. For all Marketplace plans this should be: HIOS-PLAN-ID. For all other plans this should be: OTHER-PLAN-ID.", + "min": 1, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "List.modifierExtension", + "path": "List.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "List.identifier", + "path": "List.identifier", + "short": "Business identifier", + "definition": "Identifier for the List assigned for business purposes outside the context of FHIR.", + "min": 0, + "max": "*", + "base": { + "path": "List.identifier", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Identifier" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.identifier" + }, + { + "identity": "rim", + "map": ".id" + } + ] + }, + { + "id": "List.status", + "path": "List.status", + "short": "current | retired | entered-in-error", + "definition": "Indicates the current state of this list.", + "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", + "min": 1, + "max": "1", + "base": { + "path": "List.status", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ListStatus" + } + ], + "strength": "required", + "description": "The current state of the list.", + "valueSet": "http://hl7.org/fhir/ValueSet/list-status|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.status" + }, + { + "identity": "rim", + "map": ".status[current=active;retired=obsolete;entered-in-error=nullified]" + } + ] + }, + { + "id": "List.mode", + "path": "List.mode", + "short": "working | snapshot | changes", + "definition": "How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.", + "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.", + "requirements": "Lists are used in various ways, and it must be known in what way it is safe to use them.", + "min": 1, + "max": "1", + "base": { + "path": "List.mode", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "If set to \"changes\", the list is considered incomplete, while the other two codes indicate the list is complete, which changes the understanding of the elements listed", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ListMode" + } + ], + "strength": "required", + "description": "The processing mode that applies to this list.", + "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "rim", + "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value" + } + ] + }, + { + "id": "List.title", + "path": "List.title", + "short": "Descriptive name for the list", + "definition": "A label for the list assigned by the author.", + "requirements": "Allows customization beyond just the code identifying the kind of list.", + "min": 0, + "max": "1", + "base": { + "path": "List.title", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "example": [ + { + "label": "General", + "valueString": "Dr. Jane's Patients" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": ".title" + } + ] + }, + { + "id": "List.code", + "path": "List.code", + "short": "What the purpose of this list is", + "definition": "This code defines the purpose of the list - why it was created.", + "comment": "If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code.", + "requirements": "Lists often contain subsets of resources rather than an exhaustive list. The code identifies what type of subset is included.", + "min": 1, + "max": "1", + "base": { + "path": "List.code", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "patternCodeableConcept": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "DRUGPOL" + } + ] + }, + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ListPurpose" + } + ], + "strength": "example", + "description": "What the purpose of a list is.", + "valueSet": "http://hl7.org/fhir/ValueSet/list-example-codes" + }, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.what[x]" + }, + { + "identity": "rim", + "map": ".code" + } + ] + }, + { + "id": "List.subject", + "path": "List.subject", + "short": "If all resources have the same subject", + "definition": "The common subject (or patient) of the resources that are in the list if there is one.", + "comment": "Some purely arbitrary lists do not have a common subject, so this is optional.", + "requirements": "The primary purpose of listing the subject explicitly is to help with finding the right list.", + "min": 0, + "max": "1", + "base": { + "path": "List.subject", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Patient", + "http://hl7.org/fhir/StructureDefinition/Group", + "http://hl7.org/fhir/StructureDefinition/Device", + "http://hl7.org/fhir/StructureDefinition/Location" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.subject[x]" + }, + { + "identity": "rim", + "map": ".participation[typeCode id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.context" + }, + { + "identity": "rim", + "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" + } + ] + }, + { + "id": "List.date", + "path": "List.date", + "short": "When the list was prepared", + "definition": "The date that the list was prepared.", + "comment": "The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs.", + "requirements": "Identifies how current the list is which affects relevance.", + "min": 0, + "max": "1", + "base": { + "path": "List.date", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.recorded" + }, + { + "identity": "rim", + "map": ".participation[typeCode id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "w5", + "map": "FiveWs.author" + }, + { + "identity": "rim", + "map": ".participation[typeCode id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ListOrder" + } + ], + "strength": "preferred", + "description": "What order applies to the items in a list.", + "valueSet": "http://hl7.org/fhir/ValueSet/list-order" + }, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1" + } + ] + }, + { + "id": "List.note", + "path": "List.note", + "short": "Comments about the list", + "definition": "Comments that apply to the overall list.", + "min": 0, + "max": "*", + "base": { + "path": "List.note", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Annotation" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ].act.text" + } + ] + }, + { + "id": "List.entry", + "path": "List.entry", + "short": "Entries in the list", + "definition": "Entries in this list.", + "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.", + "min": 0, + "max": "*", + "base": { + "path": "List.entry", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "condition": [ + "lst-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]" + } + ] + }, + { + "id": "List.entry.id", + "path": "List.entry.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "List.entry.extension", + "path": "List.entry.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "List.entry.modifierExtension", + "path": "List.entry.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "List.entry.flag", + "path": "List.entry.flag", + "short": "Status/Workflow information about this item", + "definition": "The flag allows the system constructing the list to indicate the role and significance of the item in the list.", + "comment": "The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is \"changes\".", + "requirements": "This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list.", + "min": 0, + "max": "1", + "base": { + "path": "List.entry.flag", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ListItemFlag" + } + ], + "strength": "example", + "description": "Codes that provide further information about the reason and meaning of the item in the list.", + "valueSet": "http://hl7.org/fhir/ValueSet/list-item-flag" + }, + "mapping": [ + { + "identity": "rim", + "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value" + } + ] + }, + { + "id": "List.entry.deleted", + "path": "List.entry.deleted", + "short": "If this item is actually marked as deleted", + "definition": "True if this item is marked as deleted in the list.", + "comment": "If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is \"changes\". A deleted entry should be displayed in narrative as deleted. This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list.", + "requirements": "The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as \"deleted\".", + "min": 0, + "max": "1", + "base": { + "path": "List.entry.deleted", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "meaningWhenMissing": "List items are generally only treated as deleted when this element explicitly carries a value of true. Systems SHOULD always populate this value when mode is 'changes'", + "condition": [ + "lst-2" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "If deleted is true, then the item included in the list isn't actually part of the list anymore", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "added: .updateMode=(\"A\",\"AR\") retained: .updateMode=\"NC\" updated: .updateMode=\"R\" deleted: .updateMode=\"D\"" + } + ] + }, + { + "id": "List.entry.date", + "path": "List.entry.date", + "short": "When item added to list", + "definition": "When this item was added to the list.", + "requirements": "The date may be significant for understanding the meaning of items in a working list.", + "min": 0, + "max": "1", + "base": { + "path": "List.entry.date", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "dateTime" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".availabilityTime" + } + ] + }, + { + "id": "List.entry.item", + "path": "List.entry.item", + "short": "Actual entry", + "definition": "A reference to the actual resource from which data was derived.", + "min": 1, + "max": "1", + "base": { + "path": "List.entry.item", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Resource" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": ".target or .role or .role.entity" + } + ] + }, + { + "id": "List.emptyReason", + "path": "List.emptyReason", + "short": "Why list is empty", + "definition": "If the list is empty, why the list is empty.", + "comment": "The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases.", + "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.", + "min": 0, + "max": "1", + "base": { + "path": "List.emptyReason", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "condition": [ + "lst-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "ListEmptyReason" + } + ], + "strength": "preferred", + "description": "If a list is empty, why it is empty.", + "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason" + }, + "mapping": [ + { + "identity": "rim", + "map": ".inboundRelationship[typeCode=SUBJ,codeRedacted for size" + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension", + "version": "1.1.0", + "name": "DrugAlternatives", + "title": "Drug Alternatives", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Generic or Branded Drugs included within the CoveragePlan's formulary that could be prescribed as alternatives to the current FormularyDrug.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Drug Alternatives", + "definition": "Generic or Branded Drugs included within the CoveragePlan's formulary that could be prescribed as alternatives to the current FormularyDrug.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Drug Alternatives", + "definition": "Generic or Branded Drugs included within the CoveragePlan's formulary that could be prescribed as alternatives to the current FormularyDrug." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-DrugTierDefinition-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-DrugTierDefinition-extension.json new file mode 100644 index 00000000000..caf6203fe11 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-DrugTierDefinition-extension.json @@ -0,0 +1,2384 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-DrugTierDefinition-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension", + "version": "1.1.0", + "name": "DrugTierDefinition", + "title": "Drug Tier Definition", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A description of the drug tiers used by the formulary and how those tiers implement copay and coinsurance amounts. Drug tiers do not have any inherent meaning that is consistent across all formularies. Rather, each tier is defined using this element.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Drug Tier Definition", + "definition": "A description of the drug tiers used by the formulary and how those tiers implement copay and coinsurance amounts. Drug tiers do not have any inherent meaning that is consistent across all formularies. Rather, each tier is defined using this element.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 2, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:drugTierID", + "path": "Extension.extension", + "sliceName": "drugTierID", + "short": "Drug Tier ID", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:drugTierID.id", + "path": "Extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:drugTierID.extension", + "path": "Extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:drugTierID.url", + "path": "Extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "drugTierID", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:drugTierID.value[x]", + "path": "Extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "extensible", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS" + }, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:mailOrder", + "path": "Extension.extension", + "sliceName": "mailOrder", + "short": "Mail Order", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:mailOrder.id", + "path": "Extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:mailOrder.extension", + "path": "Extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:mailOrder.url", + "path": "Extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "mailOrder", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:mailOrder.value[x]", + "path": "Extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing", + "path": "Extension.extension", + "sliceName": "costSharing", + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.id", + "path": "Extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension", + "path": "Extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 5, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType", + "path": "Extension.extension.extension", + "sliceName": "pharmacyType", + "short": "Pharmacy Type", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.id", + "path": "Extension.extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.extension", + "path": "Extension.extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.url", + "path": "Extension.extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "pharmacyType", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.value[x]", + "path": "Extension.extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "extensible", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/PharmacyTypeVS" + }, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount", + "path": "Extension.extension.extension", + "sliceName": "copayAmount", + "short": "Copay Amount", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.id", + "path": "Extension.extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.extension", + "path": "Extension.extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.url", + "path": "Extension.extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "copayAmount", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.value[x]", + "path": "Extension.extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Money" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayOption", + "path": "Extension.extension.extension", + "sliceName": "copayOption", + "short": "Copay Options", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.id", + "path": "Extension.extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.extension", + "path": "Extension.extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.url", + "path": "Extension.extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "copayOption", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.value[x]", + "path": "Extension.extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CopayOptionVS" + }, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate", + "path": "Extension.extension.extension", + "sliceName": "coinsuranceRate", + "short": "Co-Insurance Rate", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.id", + "path": "Extension.extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.extension", + "path": "Extension.extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.url", + "path": "Extension.extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "coinsuranceRate", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.value[x]", + "path": "Extension.extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "decimal" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption", + "path": "Extension.extension.extension", + "sliceName": "coinsuranceOption", + "short": "Co-Insurance Option", + "definition": "An Extension", + "min": 1, + "max": "1", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.id", + "path": "Extension.extension.extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.extension", + "path": "Extension.extension.extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.url", + "path": "Extension.extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "coinsuranceOption", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.value[x]", + "path": "Extension.extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CoinsuranceOptionVS" + }, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.url", + "path": "Extension.extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "costSharing", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.extension:costSharing.value[x]", + "path": "Extension.extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 0, + "max": "0", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + }, + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 0, + "max": "0", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "base64Binary" + }, + { + "code": "boolean" + }, + { + "code": "canonical" + }, + { + "code": "code" + }, + { + "code": "date" + }, + { + "code": "dateTime" + }, + { + "code": "decimal" + }, + { + "code": "id" + }, + { + "code": "instant" + }, + { + "code": "integer" + }, + { + "code": "markdown" + }, + { + "code": "oid" + }, + { + "code": "positiveInt" + }, + { + "code": "string" + }, + { + "code": "time" + }, + { + "code": "unsignedInt" + }, + { + "code": "uri" + }, + { + "code": "url" + }, + { + "code": "uuid" + }, + { + "code": "Address" + }, + { + "code": "Age" + }, + { + "code": "Annotation" + }, + { + "code": "Attachment" + }, + { + "code": "CodeableConcept" + }, + { + "code": "Coding" + }, + { + "code": "ContactPoint" + }, + { + "code": "Count" + }, + { + "code": "Distance" + }, + { + "code": "Duration" + }, + { + "code": "HumanName" + }, + { + "code": "Identifier" + }, + { + "code": "Money" + }, + { + "code": "Period" + }, + { + "code": "Quantity" + }, + { + "code": "Range" + }, + { + "code": "Ratio" + }, + { + "code": "Reference" + }, + { + "code": "SampledData" + }, + { + "code": "Signature" + }, + { + "code": "Timing" + }, + { + "code": "ContactDetail" + }, + { + "code": "Contributor" + }, + { + "code": "DataRequirement" + }, + { + "code": "Expression" + }, + { + "code": "ParameterDefinition" + }, + { + "code": "RelatedArtifact" + }, + { + "code": "TriggerDefinition" + }, + { + "code": "UsageContext" + }, + { + "code": "Dosage" + }, + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Drug Tier Definition", + "definition": "A description of the drug tiers used by the formulary and how those tiers implement copay and coinsurance amounts. Drug tiers do not have any inherent meaning that is consistent across all formularies. Rather, each tier is defined using this element." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "min": 2 + }, + { + "id": "Extension.extension:drugTierID", + "path": "Extension.extension", + "sliceName": "drugTierID", + "short": "Drug Tier ID", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:drugTierID.extension", + "path": "Extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:drugTierID.url", + "path": "Extension.extension.url", + "fixedUri": "drugTierID" + }, + { + "id": "Extension.extension:drugTierID.value[x]", + "path": "Extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "CodeableConcept" + } + ], + "binding": { + "strength": "extensible", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS" + } + }, + { + "id": "Extension.extension:mailOrder", + "path": "Extension.extension", + "sliceName": "mailOrder", + "short": "Mail Order", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:mailOrder.extension", + "path": "Extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:mailOrder.url", + "path": "Extension.extension.url", + "fixedUri": "mailOrder" + }, + { + "id": "Extension.extension:mailOrder.value[x]", + "path": "Extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "boolean" + } + ] + }, + { + "id": "Extension.extension:costSharing", + "path": "Extension.extension", + "sliceName": "costSharing", + "min": 0, + "max": "*" + }, + { + "id": "Extension.extension:costSharing.extension", + "path": "Extension.extension.extension", + "min": 5 + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType", + "path": "Extension.extension.extension", + "sliceName": "pharmacyType", + "short": "Pharmacy Type", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.extension", + "path": "Extension.extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.url", + "path": "Extension.extension.extension.url", + "fixedUri": "pharmacyType" + }, + { + "id": "Extension.extension:costSharing.extension:pharmacyType.value[x]", + "path": "Extension.extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "CodeableConcept" + } + ], + "binding": { + "strength": "extensible", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/PharmacyTypeVS" + } + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount", + "path": "Extension.extension.extension", + "sliceName": "copayAmount", + "short": "Copay Amount", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.extension", + "path": "Extension.extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.url", + "path": "Extension.extension.extension.url", + "fixedUri": "copayAmount" + }, + { + "id": "Extension.extension:costSharing.extension:copayAmount.value[x]", + "path": "Extension.extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "Money" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:copayOption", + "path": "Extension.extension.extension", + "sliceName": "copayOption", + "short": "Copay Options", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.extension", + "path": "Extension.extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.url", + "path": "Extension.extension.extension.url", + "fixedUri": "copayOption" + }, + { + "id": "Extension.extension:costSharing.extension:copayOption.value[x]", + "path": "Extension.extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "CodeableConcept" + } + ], + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CopayOptionVS" + } + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate", + "path": "Extension.extension.extension", + "sliceName": "coinsuranceRate", + "short": "Co-Insurance Rate", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.extension", + "path": "Extension.extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.url", + "path": "Extension.extension.extension.url", + "fixedUri": "coinsuranceRate" + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceRate.value[x]", + "path": "Extension.extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "decimal" + } + ] + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption", + "path": "Extension.extension.extension", + "sliceName": "coinsuranceOption", + "short": "Co-Insurance Option", + "min": 1, + "max": "1" + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.extension", + "path": "Extension.extension.extension.extension", + "max": "0" + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.url", + "path": "Extension.extension.extension.url", + "fixedUri": "coinsuranceOption" + }, + { + "id": "Extension.extension:costSharing.extension:coinsuranceOption.value[x]", + "path": "Extension.extension.extension.value[x]", + "min": 1, + "type": [ + { + "code": "CodeableConcept" + } + ], + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CoinsuranceOptionVS" + } + }, + { + "id": "Extension.extension:costSharing.url", + "path": "Extension.extension.url", + "fixedUri": "costSharing" + }, + { + "id": "Extension.extension:costSharing.value[x]", + "path": "Extension.extension.value[x]", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "max": "0" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-DrugTierID-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-DrugTierID-extension.json new file mode 100644 index 00000000000..111d3c167d3 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-DrugTierID-extension.json @@ -0,0 +1,356 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-DrugTierID-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "version": "1.1.0", + "name": "DrugTierID", + "title": "Drug Tier ID", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A code that describes the coverage status of a drug in a health plan (e.g., preferred generic, specialty, etc.)", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Drug Tier ID", + "definition": "A code that describes the coverage status of a drug in a health plan (e.g., preferred generic, specialty, etc.)", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "closed" + }, + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]:valueCodeableConcept", + "path": "Extension.value[x]", + "sliceName": "valueCodeableConcept", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "strength": "extensible", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS" + }, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Drug Tier ID", + "definition": "A code that describes the coverage status of a drug in a health plan (e.g., preferred generic, specialty, etc.)" + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "$this" + } + ], + "ordered": false, + "rules": "open" + }, + "min": 1, + "type": [ + { + "code": "CodeableConcept" + } + ] + }, + { + "id": "Extension.valueCodeableConcept", + "path": "Extension.valueCodeableConcept", + "min": 1, + "max": "1", + "binding": { + "strength": "extensible", + "valueSet": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS" + } + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-EmailPlanContact-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-EmailPlanContact-extension.json new file mode 100644 index 00000000000..70dc1fc5e60 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-EmailPlanContact-extension.json @@ -0,0 +1,285 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-EmailPlanContact-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "version": "1.1.0", + "name": "EmailPlanContact", + "title": "Email Plan Contact", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "An email address for developers/public to report mistakes in the network and formulary data. FHIR URL type can be a web-url or an e-mail address.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Email Plan Contact", + "definition": "An email address for developers/public to report mistakes in the network and formulary data. FHIR URL type can be a web-url or an e-mail address.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "url" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Email Plan Contact", + "definition": "An email address for developers/public to report mistakes in the network and formulary data. FHIR URL type can be a web-url or an e-mail address." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "url" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-FormularyDrug.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-FormularyDrug.json new file mode 100644 index 00000000000..9d22b240f11 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-FormularyDrug.json @@ -0,0 +1,5100 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-FormularyDrug", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category", + "valueString": "Clinical.Medications" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category", + "valueCode": "business" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug", + "version": "1.1.0", + "name": "FormularyDrug", + "title": "Formulary Drug", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Drug information which is part of a formulary including its RxNorm code, the PlanID of the formulary, information on prescribing limitations, and optionally drug classification and alternatives.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "script10.6", + "uri": "http://ncpdp.org/SCRIPT10_6", + "name": "Mapping to NCPDP SCRIPT 10.6" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + }, + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "MedicationKnowledge", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationKnowledge", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "MedicationKnowledge", + "path": "MedicationKnowledge", + "short": "Definition of Medication Knowledge", + "definition": "Information about a medication that is used to support knowledge.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge", + "min": 0, + "max": "*" + }, + "constraint": [ + { + "key": "dom-2", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", + "expression": "contained.contained.empty()", + "xpath": "not(parent::f:contained and f:contained)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-3", + "severity": "error", + "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", + "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()", + "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-4", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", + "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "key": "dom-5", + "severity": "error", + "human": "If a resource is contained in another resource, it SHALL NOT have a security label", + "expression": "contained.meta.security.empty()", + "xpath": "not(exists(f:contained/*/f:meta/f:security))", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", + "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." + } + ], + "key": "dom-6", + "severity": "warning", + "human": "A resource should have narrative for robust management", + "expression": "text.`div`.exists()", + "xpath": "exists(f:text/h:div)", + "source": "http://hl7.org/fhir/StructureDefinition/DomainResource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Entity. Role, or Act" + }, + { + "identity": "rim", + "map": "Todo" + } + ] + }, + { + "id": "MedicationKnowledge.id", + "path": "MedicationKnowledge.id", + "short": "Logical id of this artifact", + "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", + "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "MedicationKnowledge.meta", + "path": "MedicationKnowledge.meta", + "short": "Metadata about the resource", + "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.meta", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Meta" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "MedicationKnowledge.implicitRules", + "path": "MedicationKnowledge.implicitRules", + "short": "A set of rules under which this content was created", + "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", + "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", + "min": 0, + "max": "1", + "base": { + "path": "Resource.implicitRules", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "uri" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", + "isSummary": true + }, + { + "id": "MedicationKnowledge.language", + "path": "MedicationKnowledge.language", + "short": "Language of the resource content", + "definition": "The base language in which the resource is written.", + "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", + "min": 0, + "max": "1", + "base": { + "path": "Resource.language", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", + "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "Language" + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", + "valueBoolean": true + } + ], + "strength": "preferred", + "description": "A human language.", + "valueSet": "http://hl7.org/fhir/ValueSet/languages" + } + }, + { + "id": "MedicationKnowledge.text", + "path": "MedicationKnowledge.text", + "short": "Text summary of the resource, for human interpretation", + "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", + "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", + "alias": [ + "narrative", + "html", + "xhtml", + "display" + ], + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.text", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Narrative" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "Act.text?" + } + ] + }, + { + "id": "MedicationKnowledge.contained", + "path": "MedicationKnowledge.contained", + "short": "Contained, inline Resources", + "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", + "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", + "alias": [ + "inline resources", + "anonymous resources", + "contained resources" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.contained", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Resource" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.extension", + "path": "MedicationKnowledge.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 2, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.extension:usdf-DrugAlternatives-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-DrugAlternatives-extension", + "short": "Drug Alternatives", + "definition": "Generic or Branded Drugs included within the CoveragePlan's formulary that could be prescribed as alternatives to the current FormularyDrug.", + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "MedicationKnowledge.extension:usdf-PriorAuthorization-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-PriorAuthorization-extension", + "short": "Prior Authorization", + "definition": "A Boolean indication of whether the coverage plan imposes a prior authorization requirement on this drug.", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "MedicationKnowledge.extension:usdf-StepTherapyLimit-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-StepTherapyLimit-extension", + "short": "Step Therapy Limit", + "definition": "A Boolean indication of whether the coverage plan imposes a step therapy limit on this drug.", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "MedicationKnowledge.extension:usdf-QuantityLimit-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-QuantityLimit-extension", + "short": "Quantity Limit", + "definition": "A Boolean indication of whether the coverage plan imposes a quantity limit on this drug.", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "MedicationKnowledge.extension:usdf-MailOrder-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-MailOrder-extension", + "short": "Mail Order", + "definition": "A Boolean indication of whether the formulary drug is available by mail order through the associated plan. The MailOrder value in FormularyDrug overrides the MailOrder value in DrugTierDefinition within the CoveragePlan.", + "min": 0, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MailOrder-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "MedicationKnowledge.extension:usdf-PlanID-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-PlanID-extension", + "short": "Plan ID", + "definition": "Unique, generated Plan ID number, such as HIOS ID for QHPs or Contract Number for Medicare Advantage Plans. Plan IDs must be unique within each organization that manages their formulary data.", + "min": 1, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "MedicationKnowledge.extension:usdf-DrugTierID-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-DrugTierID-extension", + "short": "Drug Tier ID", + "definition": "A code that describes the coverage status of a drug in a health plan (e.g., preferred generic, specialty, etc.)", + "min": 1, + "max": "1", + "base": { + "path": "DomainResource.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension" + ] + } + ], + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "mustSupport": true, + "isModifier": false + }, + { + "id": "MedicationKnowledge.modifierExtension", + "path": "MedicationKnowledge.modifierExtension", + "short": "Extensions that cannot be ignored", + "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "DomainResource.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.code", + "path": "MedicationKnowledge.code", + "short": "Code that identifies this medication", + "definition": "A code that specifies this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.", + "comment": "Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) will have the coding.userSelected set to true. As described in the coding datatype: \"A coding may be marked as a \"userSelected\" if a user selected the particular coded value in a user interface (e.g. the user selects an item in a pick-list). If a user selected coding exists, it is the preferred choice for performing translations etc. Other codes can only be literal translations to alternative code systems, or codes at a lower level of granularity (e.g. a generic code for a vendor-specific primary one).", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.code", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes" + }, + "mapping": [ + { + "identity": "script10.6", + "map": "coding.code = //element(*,MedicationType)/DrugCoded/ProductCode\r\rcoding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier\r\rcoding.display = //element(*,MedicationType)/DrugDescription" + }, + { + "identity": "w5", + "map": "FiveWs.class" + }, + { + "identity": "v2", + "map": "RXO-1.1-Requested Give Code.code / RXE-2.1-Give Code.code / RXD-2.1-Dispense/Give Code.code / RXG-4.1-Give Code.code /RXA-5.1-Administered Code.code / RXC-2.1 Component Code" + }, + { + "identity": "rim", + "map": ".code" + } + ] + }, + { + "id": "MedicationKnowledge.status", + "path": "MedicationKnowledge.status", + "short": "active | inactive | entered-in-error", + "definition": "A code to indicate if the medication is in active use. The status refers to the validity about the information of the medication and not to its medicinal properties.", + "comment": "This status is intended to identify if the medication in a local system is in active use within a drug database or inventory. For example, a pharmacy system may create a new drug file record for a compounded product \"ABC Hospital Special Cream\" with an active status. At some point in the future, it may be determined that the drug record was created with an error and the status is changed to \"entered in error\". This status is not intended to specify if a medication is part of a particular formulary. It is possible that the drug record may be referenced by multiple formularies or catalogues and each of those entries would have a separate status.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.status", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "code" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": true, + "isModifierReason": "This element changes the interpretation of all descriptive attributes.", + "isSummary": true, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationKnowledgeStatus" + } + ], + "strength": "required", + "description": "A coded concept defining if the medication is in active use.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationknowledge-status|4.0.1" + }, + "mapping": [ + { + "identity": "rim", + "map": ".statusCode" + } + ] + }, + { + "id": "MedicationKnowledge.manufacturer", + "path": "MedicationKnowledge.manufacturer", + "short": "Manufacturer of the item", + "definition": "Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.manufacturer", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "script10.6", + "map": "no mapping" + }, + { + "identity": "w5", + "map": "FiveWs.actor" + }, + { + "identity": "v2", + "map": "RXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name" + }, + { + "identity": "rim", + "map": ".player.scopingRole[typeCode=MANU].scoper" + } + ] + }, + { + "id": "MedicationKnowledge.doseForm", + "path": "MedicationKnowledge.doseForm", + "short": "powder | tablets | capsule +", + "definition": "Describes the form of the item. Powder; tablets; capsule.", + "comment": "When Medication is referenced from MedicationRequest, this is the ordered form. When Medication is referenced within MedicationDispense, this is the dispensed form. When Medication is referenced within MedicationAdministration, this is administered form.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.doseForm", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationForm" + } + ], + "strength": "example", + "description": "A coded concept defining the form of a medication.", + "valueSet": "http://hl7.org/fhir/ValueSet/medication-form-codes" + }, + "mapping": [ + { + "identity": "script10.6", + "map": "coding.code = //element(*,DrugCodedType)/FormCode\r\rcoding.system = //element(*,DrugCodedType)/FormSourceCode" + }, + { + "identity": "v2", + "map": "RXO-5-Requested Dosage Form / RXE-6-Give Dosage Form / RXD-6-Actual Dosage Form / RXG-8-Give Dosage Form / RXA-8-Administered Dosage Form" + }, + { + "identity": "rim", + "map": ".formCode" + } + ] + }, + { + "id": "MedicationKnowledge.amount", + "path": "MedicationKnowledge.amount", + "short": "Amount of drug in package", + "definition": "Specific amount of the drug in the packaged product. For example, when specifying a product that has the same strength (For example, Insulin glargine 100 unit per mL solution for injection), this attribute provides additional clarification of the package amount (For example, 3 mL, 10mL, etc.).", + "comment": "This is the quantity of medication in a package. To specify the strength of the medication, the Ingredient.strength attribute is used.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.amount", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": ".quantity" + } + ] + }, + { + "id": "MedicationKnowledge.synonym", + "path": "MedicationKnowledge.synonym", + "short": "Additional names for a medication", + "definition": "Additional names for a medication, for example, the name(s) given to a medication in different countries. For example, acetaminophen and paracetamol or salbutamol and albuterol.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.synonym", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": true + }, + { + "id": "MedicationKnowledge.relatedMedicationKnowledge", + "path": "MedicationKnowledge.relatedMedicationKnowledge", + "short": "Associated or related medication information", + "definition": "Associated or related knowledge about a medication.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.relatedMedicationKnowledge", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.relatedMedicationKnowledge.id", + "path": "MedicationKnowledge.relatedMedicationKnowledge.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.relatedMedicationKnowledge.extension", + "path": "MedicationKnowledge.relatedMedicationKnowledge.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.relatedMedicationKnowledge.modifierExtension", + "path": "MedicationKnowledge.relatedMedicationKnowledge.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.relatedMedicationKnowledge.type", + "path": "MedicationKnowledge.relatedMedicationKnowledge.type", + "short": "Category of medicationKnowledge", + "definition": "The category of the associated medication knowledge reference.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.relatedMedicationKnowledge.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.relatedMedicationKnowledge.reference", + "path": "MedicationKnowledge.relatedMedicationKnowledge.reference", + "short": "Associated documentation about the associated medication knowledge", + "definition": "Associated documentation about the associated medication knowledge.", + "min": 1, + "max": "*", + "base": { + "path": "MedicationKnowledge.relatedMedicationKnowledge.reference", + "min": 1, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/MedicationKnowledge" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.associatedMedication", + "path": "MedicationKnowledge.associatedMedication", + "short": "A medication resource that is associated with this medication", + "definition": "Associated or related medications. For example, if the medication is a branded product (e.g. Crestor), this is the Therapeutic Moeity (e.g. Rosuvastatin) or if this is a generic medication (e.g. Rosuvastatin), this would link to a branded product (e.g. Crestor).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.associatedMedication", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Medication" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.productType", + "path": "MedicationKnowledge.productType", + "short": "Category of the medication or product", + "definition": "Category of the medication or product (e.g. branded product, therapeutic moeity, generic product, innovator product, etc.).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.productType", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.monograph", + "path": "MedicationKnowledge.monograph", + "short": "Associated documentation about the medication", + "definition": "Associated documentation about the medication.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.monograph", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.monograph.id", + "path": "MedicationKnowledge.monograph.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.monograph.extension", + "path": "MedicationKnowledge.monograph.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.monograph.modifierExtension", + "path": "MedicationKnowledge.monograph.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.monograph.type", + "path": "MedicationKnowledge.monograph.type", + "short": "The category of medication document", + "definition": "The category of documentation about the medication. (e.g. professional monograph, patient education monograph).", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.monograph.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.monograph.source", + "path": "MedicationKnowledge.monograph.source", + "short": "Associated documentation about the medication", + "definition": "Associated documentation about the medication.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.monograph.source", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DocumentReference", + "http://hl7.org/fhir/StructureDefinition/Media" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.ingredient", + "path": "MedicationKnowledge.ingredient", + "short": "Active or inactive ingredient", + "definition": "Identifies a particular constituent of interest in the product.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.ingredient", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.ingredient.id", + "path": "MedicationKnowledge.ingredient.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.ingredient.extension", + "path": "MedicationKnowledge.ingredient.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.ingredient.modifierExtension", + "path": "MedicationKnowledge.ingredient.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.ingredient.item[x]", + "path": "MedicationKnowledge.ingredient.item[x]", + "short": "Medication(s) or substance(s) contained in the medication", + "definition": "The actual ingredient - either a substance (simple ingredient) or another medication.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.ingredient.item[x]", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Substance" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "coding.code = //element(*,MedicationType)/DrugCoded/ProductCode\r\rcoding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier\r\rcoding.display = //element(*,MedicationType)/DrugDescription" + }, + { + "identity": "v2", + "map": "RXC-2-Component Code if medication: RXO-1-Requested Give Code / RXE-2-Give Code / RXD-2-Dispense/Give Code / RXG-4-Give Code / RXA-5-Administered Code" + }, + { + "identity": "rim", + "map": ".player" + } + ] + }, + { + "id": "MedicationKnowledge.ingredient.isActive", + "path": "MedicationKnowledge.ingredient.isActive", + "short": "Active ingredient indicator", + "definition": "Indication of whether this ingredient affects the therapeutic action of the drug.", + "requirements": "True indicates that the ingredient affects the therapeutic action of the drug (i.e. active). \rFalse indicates that the ingredient does not affect the therapeutic action of the drug (i.e. inactive).", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.ingredient.isActive", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "NA" + } + ] + }, + { + "id": "MedicationKnowledge.ingredient.strength", + "path": "MedicationKnowledge.ingredient.strength", + "short": "Quantity of ingredient present", + "definition": "Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet. This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.ingredient.strength", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Ratio" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "script10.6", + "map": "//element(*,DrugCodedType)/Strength" + }, + { + "identity": "v2", + "map": "RXC-3-Component Amount & RXC-4-Component Units if medication: RXO-2-Requested Give Amount - Minimum & RXO-4-Requested Give Units / RXO-3-Requested Give Amount - Maximum & RXO-4-Requested Give Units / RXO-11-Requested Dispense Amount & RXO-12-Requested Dispense Units / RXE-3-Give Amount - Minimum & RXE-5-Give Units / RXE-4-Give Amount - Maximum & RXE-5-Give Units / RXE-10-Dispense Amount & RXE-10-Dispense Units" + }, + { + "identity": "rim", + "map": ".quantity" + } + ] + }, + { + "id": "MedicationKnowledge.preparationInstruction", + "path": "MedicationKnowledge.preparationInstruction", + "short": "The instructions for preparing the medication", + "definition": "The instructions for preparing the medication.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.preparationInstruction", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "markdown" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.intendedRoute", + "path": "MedicationKnowledge.intendedRoute", + "short": "The intended or approved route of administration", + "definition": "The intended or approved route of administration.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.intendedRoute", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationRoute" + } + ], + "strength": "example", + "description": "A coded concept defining the intended route of administration.", + "valueSet": "http://hl7.org/fhir/ValueSet/route-codes" + } + }, + { + "id": "MedicationKnowledge.cost", + "path": "MedicationKnowledge.cost", + "short": "The pricing of the medication", + "definition": "The price of the medication.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.cost", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.cost.id", + "path": "MedicationKnowledge.cost.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.cost.extension", + "path": "MedicationKnowledge.cost.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.cost.modifierExtension", + "path": "MedicationKnowledge.cost.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.cost.type", + "path": "MedicationKnowledge.cost.type", + "short": "The category of the cost information", + "definition": "The category of the cost information. For example, manufacturers' cost, patient cost, claim reimbursement cost, actual acquisition cost.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.cost.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.cost.source", + "path": "MedicationKnowledge.cost.source", + "short": "The source or owner for the price information", + "definition": "The source or owner that assigns the price to the medication.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.cost.source", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.cost.cost", + "path": "MedicationKnowledge.cost.cost", + "short": "The price of the medication", + "definition": "The price of the medication.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.cost.cost", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Money" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.monitoringProgram", + "path": "MedicationKnowledge.monitoringProgram", + "short": "Program under which a medication is reviewed", + "definition": "The program under which the medication is reviewed.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.monitoringProgram", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.monitoringProgram.id", + "path": "MedicationKnowledge.monitoringProgram.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.monitoringProgram.extension", + "path": "MedicationKnowledge.monitoringProgram.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.monitoringProgram.modifierExtension", + "path": "MedicationKnowledge.monitoringProgram.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.monitoringProgram.type", + "path": "MedicationKnowledge.monitoringProgram.type", + "short": "Type of program under which the medication is monitored", + "definition": "Type of program under which the medication is monitored.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.monitoringProgram.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.monitoringProgram.name", + "path": "MedicationKnowledge.monitoringProgram.name", + "short": "Name of the reviewing program", + "definition": "Name of the reviewing program.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.monitoringProgram.name", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines", + "path": "MedicationKnowledge.administrationGuidelines", + "short": "Guidelines for administration of the medication", + "definition": "Guidelines for the administration of the medication.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.administrationGuidelines", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.id", + "path": "MedicationKnowledge.administrationGuidelines.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.extension", + "path": "MedicationKnowledge.administrationGuidelines.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.modifierExtension", + "path": "MedicationKnowledge.administrationGuidelines.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.dosage", + "path": "MedicationKnowledge.administrationGuidelines.dosage", + "short": "Dosage for the medication for the specific guidelines", + "definition": "Dosage for the medication for the specific guidelines.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.dosage", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.dosage.id", + "path": "MedicationKnowledge.administrationGuidelines.dosage.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.dosage.extension", + "path": "MedicationKnowledge.administrationGuidelines.dosage.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.dosage.modifierExtension", + "path": "MedicationKnowledge.administrationGuidelines.dosage.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.dosage.type", + "path": "MedicationKnowledge.administrationGuidelines.dosage.type", + "short": "Type of dosage", + "definition": "The type of dosage (for example, prophylaxis, maintenance, therapeutic, etc.).", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.dosage.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.dosage.dosage", + "path": "MedicationKnowledge.administrationGuidelines.dosage.dosage", + "short": "Dosage for the medication for the specific guidelines", + "definition": "Dosage for the medication for the specific guidelines.", + "min": 1, + "max": "*", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.dosage.dosage", + "min": 1, + "max": "*" + }, + "type": [ + { + "code": "Dosage" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.indication[x]", + "path": "MedicationKnowledge.administrationGuidelines.indication[x]", + "short": "Indication for use that apply to the specific administration guidelines", + "definition": "Indication for use that apply to the specific administration guidelines.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.indication[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/ObservationDefinition" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics", + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics", + "short": "Characteristics of the patient that are relevant to the administration guidelines", + "definition": "Characteristics of the patient that are relevant to the administration guidelines (for example, height, weight, gender, etc.).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.id", + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.extension", + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.modifierExtension", + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]", + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]", + "short": "Specific characteristic that is relevant to the administration guideline", + "definition": "Specific characteristic that is relevant to the administration guideline (e.g. height, weight, gender).", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.value", + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.value", + "short": "The specific characteristic", + "definition": "The specific characteristic (e.g. height, weight, gender, etc.).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.administrationGuidelines.patientCharacteristics.value", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.medicineClassification", + "path": "MedicationKnowledge.medicineClassification", + "short": "Categorization of the medication within a formulary or classification system", + "definition": "Categorization of the medication within a formulary or classification system.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.medicineClassification", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.medicineClassification.id", + "path": "MedicationKnowledge.medicineClassification.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.medicineClassification.extension", + "path": "MedicationKnowledge.medicineClassification.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.medicineClassification.modifierExtension", + "path": "MedicationKnowledge.medicineClassification.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.medicineClassification.type", + "path": "MedicationKnowledge.medicineClassification.type", + "short": "The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification)", + "definition": "The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification).", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.medicineClassification.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.medicineClassification.classification", + "path": "MedicationKnowledge.medicineClassification.classification", + "short": "Specific category assigned to the medication", + "definition": "Specific category assigned to the medication (e.g. anti-infective, anti-hypertensive, antibiotic, etc.).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.medicineClassification.classification", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.packaging", + "path": "MedicationKnowledge.packaging", + "short": "Details about packaged medications", + "definition": "Information that only applies to packages (not products).", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.packaging", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.packaging.id", + "path": "MedicationKnowledge.packaging.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.packaging.extension", + "path": "MedicationKnowledge.packaging.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.packaging.modifierExtension", + "path": "MedicationKnowledge.packaging.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.packaging.type", + "path": "MedicationKnowledge.packaging.type", + "short": "A code that defines the specific type of packaging that the medication can be found in", + "definition": "A code that defines the specific type of packaging that the medication can be found in (e.g. blister sleeve, tube, bottle).", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.packaging.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationPackageType" + } + ], + "strength": "example", + "description": "A coded concept defining the type of packaging of a medication.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationknowledge-package-type" + } + }, + { + "id": "MedicationKnowledge.packaging.quantity", + "path": "MedicationKnowledge.packaging.quantity", + "short": "The number of product units the package would contain if fully loaded", + "definition": "The number of product units the package would contain if fully loaded.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.packaging.quantity", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.drugCharacteristic", + "path": "MedicationKnowledge.drugCharacteristic", + "short": "Specifies descriptive properties of the medicine", + "definition": "Specifies descriptive properties of the medicine, such as color, shape, imprints, etc.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.drugCharacteristic", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.drugCharacteristic.id", + "path": "MedicationKnowledge.drugCharacteristic.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.drugCharacteristic.extension", + "path": "MedicationKnowledge.drugCharacteristic.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.drugCharacteristic.modifierExtension", + "path": "MedicationKnowledge.drugCharacteristic.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.drugCharacteristic.type", + "path": "MedicationKnowledge.drugCharacteristic.type", + "short": "Code specifying the type of characteristic of medication", + "definition": "A code specifying which characteristic of the medicine is being described (for example, colour, shape, imprint).", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.drugCharacteristic.type", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "binding": { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", + "valueString": "MedicationCharacteristic" + } + ], + "strength": "example", + "description": "A coded concept defining the characteristic types of a medication.", + "valueSet": "http://hl7.org/fhir/ValueSet/medicationknowledge-characteristic" + } + }, + { + "id": "MedicationKnowledge.drugCharacteristic.value[x]", + "path": "MedicationKnowledge.drugCharacteristic.value[x]", + "short": "Description of the characteristic", + "definition": "Description of the characteristic.", + "comment": "The description should be provided as a CodeableConcept, SimpleQuantity or an image. The description can be a string only when these others are not available.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.drugCharacteristic.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "string" + }, + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + }, + { + "code": "base64Binary" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.contraindication", + "path": "MedicationKnowledge.contraindication", + "short": "Potential clinical issue with or between medication(s)", + "definition": "Potential clinical issue with or between medication(s) (for example, drug-drug interaction, drug-disease contraindication, drug-allergy interaction, etc.).", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.contraindication", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/DetectedIssue" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory", + "path": "MedicationKnowledge.regulatory", + "short": "Regulatory information about a medication", + "definition": "Regulatory information about a medication.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.regulatory", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.id", + "path": "MedicationKnowledge.regulatory.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.extension", + "path": "MedicationKnowledge.regulatory.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.modifierExtension", + "path": "MedicationKnowledge.regulatory.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.regulatoryAuthority", + "path": "MedicationKnowledge.regulatory.regulatoryAuthority", + "short": "Specifies the authority of the regulation", + "definition": "The authority that is specifying the regulations.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.regulatoryAuthority", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Organization" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.substitution", + "path": "MedicationKnowledge.regulatory.substitution", + "short": "Specifies if changes are allowed when dispensing a medication from a regulatory perspective", + "definition": "Specifies if changes are allowed when dispensing a medication from a regulatory perspective.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.regulatory.substitution", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.substitution.id", + "path": "MedicationKnowledge.regulatory.substitution.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.substitution.extension", + "path": "MedicationKnowledge.regulatory.substitution.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.substitution.modifierExtension", + "path": "MedicationKnowledge.regulatory.substitution.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.substitution.type", + "path": "MedicationKnowledge.regulatory.substitution.type", + "short": "Specifies the type of substitution allowed", + "definition": "Specifies the type of substitution allowed.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.substitution.type", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.substitution.allowed", + "path": "MedicationKnowledge.regulatory.substitution.allowed", + "short": "Specifies if regulation allows for changes in the medication when dispensing", + "definition": "Specifies if regulation allows for changes in the medication when dispensing.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.substitution.allowed", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.schedule", + "path": "MedicationKnowledge.regulatory.schedule", + "short": "Specifies the schedule of a medication in jurisdiction", + "definition": "Specifies the schedule of a medication in jurisdiction.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.regulatory.schedule", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.schedule.id", + "path": "MedicationKnowledge.regulatory.schedule.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.schedule.extension", + "path": "MedicationKnowledge.regulatory.schedule.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.schedule.modifierExtension", + "path": "MedicationKnowledge.regulatory.schedule.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.schedule.schedule", + "path": "MedicationKnowledge.regulatory.schedule.schedule", + "short": "Specifies the specific drug schedule", + "definition": "Specifies the specific drug schedule.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.schedule.schedule", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "CodeableConcept" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.maxDispense", + "path": "MedicationKnowledge.regulatory.maxDispense", + "short": "The maximum number of units of the medication that can be dispensed in a period", + "definition": "The maximum number of units of the medication that can be dispensed in a period.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.maxDispense", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.maxDispense.id", + "path": "MedicationKnowledge.regulatory.maxDispense.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.maxDispense.extension", + "path": "MedicationKnowledge.regulatory.maxDispense.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.maxDispense.modifierExtension", + "path": "MedicationKnowledge.regulatory.maxDispense.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.regulatory.maxDispense.quantity", + "path": "MedicationKnowledge.regulatory.maxDispense.quantity", + "short": "The maximum number of units of the medication that can be dispensed", + "definition": "The maximum number of units of the medication that can be dispensed.", + "min": 1, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.maxDispense.quantity", + "min": 1, + "max": "1" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.regulatory.maxDispense.period", + "path": "MedicationKnowledge.regulatory.maxDispense.period", + "short": "The period that applies to the maximum number of units", + "definition": "The period that applies to the maximum number of units.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.regulatory.maxDispense.period", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Duration" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.kinetics", + "path": "MedicationKnowledge.kinetics", + "short": "The time course of drug absorption, distribution, metabolism and excretion of a medication from the body", + "definition": "The time course of drug absorption, distribution, metabolism and excretion of a medication from the body.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.kinetics", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "BackboneElement" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.kinetics.id", + "path": "MedicationKnowledge.kinetics.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.kinetics.extension", + "path": "MedicationKnowledge.kinetics.extension", + "short": "Additional content defined by implementations", + "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "alias": [ + "extensions", + "user content" + ], + "min": 0, + "max": "*", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "MedicationKnowledge.kinetics.modifierExtension", + "path": "MedicationKnowledge.kinetics.modifierExtension", + "short": "Extensions that cannot be ignored even if unrecognized", + "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", + "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", + "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", + "alias": [ + "extensions", + "user content", + "modifiers" + ], + "min": 0, + "max": "*", + "base": { + "path": "BackboneElement.modifierExtension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": true, + "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", + "isSummary": true, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "MedicationKnowledge.kinetics.areaUnderCurve", + "path": "MedicationKnowledge.kinetics.areaUnderCurve", + "short": "The drug concentration measured at certain discrete points in time", + "definition": "The drug concentration measured at certain discrete points in time.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.kinetics.areaUnderCurve", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.kinetics.lethalDose50", + "path": "MedicationKnowledge.kinetics.lethalDose50", + "short": "The median lethal dose of a drug", + "definition": "The median lethal dose of a drug.", + "min": 0, + "max": "*", + "base": { + "path": "MedicationKnowledge.kinetics.lethalDose50", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Quantity", + "profile": [ + "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" + ] + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "MedicationKnowledge.kinetics.halfLifePeriod", + "path": "MedicationKnowledge.kinetics.halfLifePeriod", + "short": "Time required for concentration in the body to decrease by half", + "definition": "The time required for any specified property (e.g., the concentration of a substance in the body) to decrease by half.", + "min": 0, + "max": "1", + "base": { + "path": "MedicationKnowledge.kinetics.halfLifePeriod", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "Duration" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false + } + ] + }, + "differential": { + "element": [ + { + "id": "MedicationKnowledge", + "path": "MedicationKnowledge" + }, + { + "id": "MedicationKnowledge.extension", + "path": "MedicationKnowledge.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "ordered": false, + "rules": "open" + }, + "min": 2 + }, + { + "id": "MedicationKnowledge.extension:usdf-DrugAlternatives-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-DrugAlternatives-extension", + "min": 0, + "max": "*", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension" + ] + } + ] + }, + { + "id": "MedicationKnowledge.extension:usdf-PriorAuthorization-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-PriorAuthorization-extension", + "min": 0, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension" + ] + } + ], + "mustSupport": true + }, + { + "id": "MedicationKnowledge.extension:usdf-StepTherapyLimit-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-StepTherapyLimit-extension", + "min": 0, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension" + ] + } + ], + "mustSupport": true + }, + { + "id": "MedicationKnowledge.extension:usdf-QuantityLimit-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-QuantityLimit-extension", + "min": 0, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension" + ] + } + ], + "mustSupport": true + }, + { + "id": "MedicationKnowledge.extension:usdf-MailOrder-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-MailOrder-extension", + "min": 0, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MailOrder-extension" + ] + } + ] + }, + { + "id": "MedicationKnowledge.extension:usdf-PlanID-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-PlanID-extension", + "min": 1, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension" + ] + } + ], + "mustSupport": true + }, + { + "id": "MedicationKnowledge.extension:usdf-DrugTierID-extension", + "path": "MedicationKnowledge.extension", + "sliceName": "usdf-DrugTierID-extension", + "min": 1, + "max": "1", + "type": [ + { + "code": "Extension", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension" + ] + } + ], + "mustSupport": true + }, + { + "id": "MedicationKnowledge.code", + "path": "MedicationKnowledge.code", + "min": 1, + "binding": { + "strength": "required", + "valueSet": "http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes" + } + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-FormularyURL-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-FormularyURL-extension.json new file mode 100644 index 00000000000..71db6fdd2f9 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-FormularyURL-extension.json @@ -0,0 +1,285 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-FormularyURL-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "version": "1.1.0", + "name": "FormularyURL", + "title": "Formulary URL", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation. If the formulary brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Formulary URL", + "definition": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation. If the formulary brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "url" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Formulary URL", + "definition": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation. If the formulary brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "url" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-MailOrder-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-MailOrder-extension.json new file mode 100644 index 00000000000..035cc9a3ba9 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-MailOrder-extension.json @@ -0,0 +1,285 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-MailOrder-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MailOrder-extension", + "version": "1.1.0", + "name": "MailOrder", + "title": "Mail Order", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A Boolean indication of whether the formulary drug is available by mail order through the associated plan. The MailOrder value in FormularyDrug overrides the MailOrder value in DrugTierDefinition within the CoveragePlan.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Mail Order", + "definition": "A Boolean indication of whether the formulary drug is available by mail order through the associated plan. The MailOrder value in FormularyDrug overrides the MailOrder value in DrugTierDefinition within the CoveragePlan.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MailOrder-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Mail Order", + "definition": "A Boolean indication of whether the formulary drug is available by mail order through the associated plan. The MailOrder value in FormularyDrug overrides the MailOrder value in DrugTierDefinition within the CoveragePlan." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MailOrder-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "boolean" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-MarketingURL-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-MarketingURL-extension.json new file mode 100644 index 00000000000..6efd03b04c2 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-MarketingURL-extension.json @@ -0,0 +1,285 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-MarketingURL-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "version": "1.1.0", + "name": "MarketingURL", + "title": "Marketing URL", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "The URL that goes directly to the plan brochure for the specific standard plan or plan variation. If the plan brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Marketing URL", + "definition": "The URL that goes directly to the plan brochure for the specific standard plan or plan variation. If the plan brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "url" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Marketing URL", + "definition": "The URL that goes directly to the plan brochure for the specific standard plan or plan variation. If the plan brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "url" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-Network-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-Network-extension.json new file mode 100644 index 00000000000..cd5894d8c5f --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-Network-extension.json @@ -0,0 +1,285 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-Network-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "version": "1.1.0", + "name": "Network", + "title": "Network", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Array of Networks within a plan. If a network is not applicable for a plan, enter 'Not applicable' in the value string.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Network", + "definition": "Array of Networks within a plan. If a network is not applicable for a plan, enter 'Not applicable' in the value string.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Network", + "definition": "Array of Networks within a plan. If a network is not applicable for a plan, enter 'Not applicable' in the value string." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "string" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-PlanID-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-PlanID-extension.json new file mode 100644 index 00000000000..8270d98567b --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-PlanID-extension.json @@ -0,0 +1,285 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-PlanID-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "version": "1.1.0", + "name": "PlanID", + "title": "Plan ID", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Unique, generated Plan ID number, such as HIOS ID for QHPs or Contract Number for Medicare Advantage Plans. Plan IDs must be unique within each organization that manages their formulary data.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Plan ID", + "definition": "Unique, generated Plan ID number, such as HIOS ID for QHPs or Contract Number for Medicare Advantage Plans. Plan IDs must be unique within each organization that manages their formulary data.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Plan ID", + "definition": "Unique, generated Plan ID number, such as HIOS ID for QHPs or Contract Number for Medicare Advantage Plans. Plan IDs must be unique within each organization that manages their formulary data." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "string" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-PlanIDType-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-PlanIDType-extension.json new file mode 100644 index 00000000000..a6a90163861 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-PlanIDType-extension.json @@ -0,0 +1,285 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-PlanIDType-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "version": "1.1.0", + "name": "PlanIDType", + "title": "Plan ID Type", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Type of Plan ID. For all Marketplace plans this should be: HIOS-PLAN-ID. For all other plans this should be: OTHER-PLAN-ID.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Plan ID Type", + "definition": "Type of Plan ID. For all Marketplace plans this should be: HIOS-PLAN-ID. For all other plans this should be: OTHER-PLAN-ID.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "string" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Plan ID Type", + "definition": "Type of Plan ID. For all Marketplace plans this should be: HIOS-PLAN-ID. For all other plans this should be: OTHER-PLAN-ID." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "string" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-PriorAuthorization-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-PriorAuthorization-extension.json new file mode 100644 index 00000000000..220e62d23fe --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-PriorAuthorization-extension.json @@ -0,0 +1,285 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-PriorAuthorization-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "version": "1.1.0", + "name": "PriorAuthorization", + "title": "Prior Authorization", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A Boolean indication of whether the coverage plan imposes a prior authorization requirement on this drug.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Prior Authorization", + "definition": "A Boolean indication of whether the coverage plan imposes a prior authorization requirement on this drug.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Prior Authorization", + "definition": "A Boolean indication of whether the coverage plan imposes a prior authorization requirement on this drug." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "boolean" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-QuantityLimit-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-QuantityLimit-extension.json new file mode 100644 index 00000000000..5edeef97452 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-QuantityLimit-extension.json @@ -0,0 +1,285 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-QuantityLimit-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "version": "1.1.0", + "name": "QuantityLimit", + "title": "Quantity Limit", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A Boolean indication of whether the coverage plan imposes a quantity limit on this drug.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Quantity Limit", + "definition": "A Boolean indication of whether the coverage plan imposes a quantity limit on this drug.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Quantity Limit", + "definition": "A Boolean indication of whether the coverage plan imposes a quantity limit on this drug." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "boolean" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-StepTherapyLimit-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-StepTherapyLimit-extension.json new file mode 100644 index 00000000000..ceff40f8072 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-StepTherapyLimit-extension.json @@ -0,0 +1,285 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-StepTherapyLimit-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "version": "1.1.0", + "name": "StepTherapyLimit", + "title": "Step Therapy Limit", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "A Boolean indication of whether the coverage plan imposes a step therapy limit on this drug.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Step Therapy Limit", + "definition": "A Boolean indication of whether the coverage plan imposes a step therapy limit on this drug.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "boolean" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Step Therapy Limit", + "definition": "A Boolean indication of whether the coverage plan imposes a step therapy limit on this drug." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "boolean" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-SummaryURL-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-SummaryURL-extension.json new file mode 100644 index 00000000000..8bbecd3f22e --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/StructureDefinition-usdf-SummaryURL-extension.json @@ -0,0 +1,285 @@ +{ + "resourceType": "StructureDefinition", + "id": "usdf-SummaryURL-extension", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "version": "1.1.0", + "name": "SummaryURL", + "title": "Summary URL", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation. If the formulary brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Element" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "snapshot": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Summary URL", + "definition": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation. If the formulary brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "min": 0, + "max": "*", + "base": { + "path": "Extension", + "min": 0, + "max": "*" + }, + "condition": [ + "ele-1" + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false + }, + { + "id": "Extension.id", + "path": "Extension.id", + "representation": [ + "xmlAttr" + ], + "short": "Unique id for inter-element referencing", + "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", + "min": 0, + "max": "1", + "base": { + "path": "Element.id", + "min": 0, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "string" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "n/a" + } + ] + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "slicing": { + "discriminator": [ + { + "type": "value", + "path": "url" + } + ], + "description": "Extensions are always sliced by (at least) url", + "rules": "open" + }, + "short": "Extension", + "definition": "An Extension", + "min": 0, + "max": "0", + "base": { + "path": "Element.extension", + "min": 0, + "max": "*" + }, + "type": [ + { + "code": "Extension" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + }, + { + "key": "ext-1", + "severity": "error", + "human": "Must have either extensions or value[x], not both", + "expression": "extension.exists() != value.exists()", + "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", + "source": "http://hl7.org/fhir/StructureDefinition/Extension" + } + ], + "isModifier": false, + "isSummary": false + }, + { + "id": "Extension.url", + "path": "Extension.url", + "representation": [ + "xmlAttr" + ], + "short": "identifies the meaning of the extension", + "definition": "Source of the definition for the extension code - a logical name or a URL.", + "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", + "min": 1, + "max": "1", + "base": { + "path": "Extension.url", + "min": 1, + "max": "1" + }, + "type": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", + "valueUrl": "uri" + } + ], + "code": "http://hl7.org/fhirpath/System.String" + } + ], + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "short": "Value of extension", + "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", + "min": 1, + "max": "1", + "base": { + "path": "Extension.value[x]", + "min": 0, + "max": "1" + }, + "type": [ + { + "code": "url" + } + ], + "constraint": [ + { + "key": "ele-1", + "severity": "error", + "human": "All FHIR elements must have a @value or children", + "expression": "hasValue() or (children().count() > id.count())", + "xpath": "@value|f:*|h:div", + "source": "http://hl7.org/fhir/StructureDefinition/Element" + } + ], + "isModifier": false, + "isSummary": false, + "mapping": [ + { + "identity": "rim", + "map": "N/A" + } + ] + } + ] + }, + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Summary URL", + "definition": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation. If the formulary brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "url" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ValueSet-CoinsuranceOptionVS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ValueSet-CoinsuranceOptionVS.json new file mode 100644 index 00000000000..dab8e96dbb8 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ValueSet-CoinsuranceOptionVS.json @@ -0,0 +1,48 @@ +{ + "resourceType": "ValueSet", + "id": "CoinsuranceOptionVS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CoinsuranceOptionVS", + "version": "1.1.0", + "name": "CoinsuranceOptionVS", + "title": "Qualifier for coinsurance rate", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Qualifier for coinsurance rate", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "compose": { + "include": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ValueSet-CopayOptionVS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ValueSet-CopayOptionVS.json new file mode 100644 index 00000000000..8af8f47260b --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ValueSet-CopayOptionVS.json @@ -0,0 +1,48 @@ +{ + "resourceType": "ValueSet", + "id": "CopayOptionVS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CopayOptionVS", + "version": "1.1.0", + "name": "CopayOptionVS", + "title": "Qualifier of copay amount", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Qualifier of copay amount", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "compose": { + "include": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ValueSet-DrugTierVS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ValueSet-DrugTierVS.json new file mode 100644 index 00000000000..713be455f68 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ValueSet-DrugTierVS.json @@ -0,0 +1,48 @@ +{ + "resourceType": "ValueSet", + "id": "DrugTierVS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS", + "version": "1.1.0", + "name": "DrugTierVS", + "title": "Drug tier of medication in health plan", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "The drug tier of a particular medication in a health plan. The base set are examples. Each plan may have its own controlled vocabulary.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "compose": { + "include": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ValueSet-PharmacyTypeVS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ValueSet-PharmacyTypeVS.json new file mode 100644 index 00000000000..b686e4313e1 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ValueSet-PharmacyTypeVS.json @@ -0,0 +1,48 @@ +{ + "resourceType": "ValueSet", + "id": "PharmacyTypeVS", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/PharmacyTypeVS", + "version": "1.1.0", + "name": "PharmacyTypeVS", + "title": "Type of pharmacies", + "status": "active", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Types of pharmacies. Each payer will have its own controlled vocabulary.", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "compose": { + "include": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ig-r4.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ig-r4.json new file mode 100644 index 00000000000..6471bfe07d0 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/ig-r4.json @@ -0,0 +1,759 @@ +{ + "resourceType": "ImplementationGuide", + "id": "hl7.fhir.us.davinci-drug-formulary", + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary", + "version": "1.1.0", + "name": "Formulary", + "title": "DaVinci Payer Data Exchange (PDex) US Drug Formulary", + "status": "draft", + "date": "2021-10-15T15:48:08+00:00", + "publisher": "HL7 Pharmacy Working Group", + "contact": [ + { + "name": "HL7 Pharmacy Working Group", + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/medication" + }, + { + "system": "email", + "value": "pharmacy@lists.HL7.org" + } + ] + } + ], + "description": "Da Vinci Payer Data Exchange (PDex) US Drug Formulary STU 1.1.0", + "jurisdiction": [ + { + "coding": [ + { + "system": "urn:iso:std:iso:3166", + "code": "US" + } + ] + } + ], + "packageId": "hl7.fhir.us.davinci-drug-formulary", + "license": "CC0-1.0", + "fhirVersion": [ + "4.0.1" + ], + "dependsOn": [ + { + "id": "hl7_fhir_us_core", + "uri": "http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core", + "packageId": "hl7.fhir.us.core", + "version": "3.1.1" + } + ], + "definition": { + "resource": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:resource" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-CoveragePlan" + }, + "name": "Formulary Coverage Plan", + "description": "A health plan which contains links to administrative information, a list of formulary drugs covered under that plan, and a definition of drug tiers and their associated cost-sharing models.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:resource" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-FormularyDrug" + }, + "name": "Formulary Drug", + "description": "Drug information which is part of a formulary including its RxNorm code, the PlanID of the formulary, information on prescribing limitations, and optionally drug classification and alternatives.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-DrugAlternatives-extension" + }, + "name": "Drug Alternatives", + "description": "Generic or Branded Drugs included within the CoveragePlan's formulary that could be prescribed as alternatives to the current FormularyDrug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-DrugTierDefinition-extension" + }, + "name": "Drug Tier Definition", + "description": "A description of the drug tiers used by the formulary and how those tiers implement copay and coinsurance amounts. Drug tiers do not have any inherent meaning that is consistent across all formularies. Rather, each tier is defined using this element.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-DrugTierID-extension" + }, + "name": "Drug Tier ID", + "description": "A code that describes the coverage status of a drug in a health plan (e.g., preferred generic, specialty, etc.)", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-EmailPlanContact-extension" + }, + "name": "Email Plan Contact", + "description": "An email address for developers/public to report mistakes in the network and formulary data. FHIR URL type can be a web-url or an e-mail address.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-FormularyURL-extension" + }, + "name": "Formulary URL", + "description": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation. If the formulary brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-MailOrder-extension" + }, + "name": "Mail Order", + "description": "A Boolean indication of whether the formulary drug is available by mail order through the associated plan. The MailOrder value in FormularyDrug overrides the MailOrder value in DrugTierDefinition within the CoveragePlan.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-MarketingURL-extension" + }, + "name": "Marketing URL", + "description": "The URL that goes directly to the plan brochure for the specific standard plan or plan variation. If the plan brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-Network-extension" + }, + "name": "Network", + "description": "Array of Networks within a plan. If a network is not applicable for a plan, enter 'Not applicable' in the value string.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-PlanID-extension" + }, + "name": "Plan ID", + "description": "Unique, generated Plan ID number, such as HIOS ID for QHPs or Contract Number for Medicare Advantage Plans. Plan IDs must be unique within each organization that manages their formulary data.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-PlanIDType-extension" + }, + "name": "Plan ID Type", + "description": "Type of Plan ID. For all Marketplace plans this should be: HIOS-PLAN-ID. For all other plans this should be: OTHER-PLAN-ID.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-PriorAuthorization-extension" + }, + "name": "Prior Authorization", + "description": "A Boolean indication of whether the coverage plan imposes a prior authorization requirement on this drug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-QuantityLimit-extension" + }, + "name": "Quantity Limit", + "description": "A Boolean indication of whether the coverage plan imposes a quantity limit on this drug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-StepTherapyLimit-extension" + }, + "name": "Step Therapy Limit", + "description": "A Boolean indication of whether the coverage plan imposes a step therapy limit on this drug.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "StructureDefinition:extension" + } + ], + "reference": { + "reference": "StructureDefinition/usdf-SummaryURL-extension" + }, + "name": "Summary URL", + "description": "The URL that goes directly to the formulary brochure for the specific standard plan or plan variation. If the formulary brochure is available in multiple languages, this can also point to a page listing the links for the various different language versions of the document supported by the payer.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/CoinsuranceOptionVS" + }, + "name": "Qualifier for coinsurance rate", + "description": "Qualifier for coinsurance rate", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/CopayOptionVS" + }, + "name": "Qualifier of copay amount", + "description": "Qualifier of copay amount", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/DrugTierVS" + }, + "name": "Drug tier of medication in health plan", + "description": "The drug tier of a particular medication in a health plan. The base set are examples. Each plan may have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "ValueSet" + } + ], + "reference": { + "reference": "ValueSet/PharmacyTypeVS" + }, + "name": "Type of pharmacies", + "description": "Types of pharmacies. Each payer will have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-CoinsuranceOptionCS" + }, + "name": "Code for qualifier for coinsurance rate", + "description": "Code for qualifier for coinsurance rate", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-CopayOptionCS" + }, + "name": "Codes for qualifier of copay amount", + "description": "Codes for qualifier of copay amount", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-DrugTierCS" + }, + "name": "Codes for medication drug tiers in health plans", + "description": "Codes to represent the drug tier of a particular medication in a health plan. Base set are examples. Each plan may have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CodeSystem" + } + ], + "reference": { + "reference": "CodeSystem/usdf-PharmacyTypeCS" + }, + "name": "Codes for types of pharmacies", + "description": "Codes for types of Pharmacies. Each payer will have its own controlled vocabulary.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "CapabilityStatement" + } + ], + "reference": { + "reference": "CapabilityStatement/usdf-server" + }, + "name": "US Drug Formulary Server Capability Statement", + "description": "This Section describes the expected capabilities of the US Drug Formulary Server actor which is responsible for providing responses to the queries submitted by the US Drug Formulary Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by US Drug Formulary Server are defined.", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "SearchParameter" + } + ], + "reference": { + "reference": "SearchParameter/DrugName" + }, + "name": "DrugName", + "description": "Accesses the Descriptive Name of a FormularyDrug", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "SearchParameter" + } + ], + "reference": { + "reference": "SearchParameter/DrugPlan" + }, + "name": "DrugPlan", + "description": "Accesses the DrugPlan ID of a FormularyDrug", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "SearchParameter" + } + ], + "reference": { + "reference": "SearchParameter/DrugTier" + }, + "name": "DrugTier", + "description": "Accesses the DrugTier ID of a FormularyDrug", + "exampleBoolean": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/covplanV1002" + }, + "name": "Coverage Plan V1002", + "description": "Sample Gold Health Plan", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/CoveragePlanV3001" + }, + "name": "Coverage Plan V3001", + "description": "Sample Gold Health Plan", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/CoveragePlanV3002" + }, + "name": "Coverage Plan V3002", + "description": "Sample Gold Health Plan", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "List" + } + ], + "reference": { + "reference": "List/CoveragePlanV3004t" + }, + "name": "Coverage Plan V3004t", + "description": "BluePreferred PPO HSA Silver $3,000", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/cmsip9" + }, + "name": "Formulary Drug cmsip9", + "description": "Doxepin HCl 5 % Topical Cream", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/formularydrugV1002" + }, + "name": "Formulary Drug V1002", + "description": "Percocet 5 MG / 325 MG Oral Tablet", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/FormularyDrugV3001" + }, + "name": "Formulary Drug V3001", + "description": "Percocet 5 MG / 325 MG Oral Tablet", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/tools/StructureDefinition/resource-information", + "valueString": "MedicationKnowledge" + } + ], + "reference": { + "reference": "MedicationKnowledge/FormularyDrugV3002" + }, + "name": "Formulary Drug V3002", + "description": "Tylenol Extra Strength 500 MG Oral Tablet", + "exampleCanonical": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + } + ], + "page": { + "nameUrl": "toc.html", + "title": "Table of Contents", + "generation": "html", + "page": [ + { + "nameUrl": "index.html", + "title": "Home", + "generation": "markdown" + }, + { + "nameUrl": "credits.html", + "title": "Credits", + "generation": "markdown" + }, + { + "nameUrl": "use_cases_and_overview.html", + "title": "Use Cases and Overview", + "generation": "markdown" + }, + { + "nameUrl": "search_parameters.html", + "title": "Search Parameters", + "generation": "markdown" + }, + { + "nameUrl": "queries.html", + "title": "Queries", + "generation": "markdown" + }, + { + "nameUrl": "artifacts.html", + "title": "Artifacts Summary", + "generation": "html" + }, + { + "nameUrl": "downloads.html", + "title": "Downloads", + "generation": "markdown" + }, + { + "nameUrl": "change_notes.html", + "title": "Change Notes", + "generation": "markdown" + } + ] + }, + "parameter": [ + { + "code": "copyrightyear", + "value": "2021+" + }, + { + "code": "releaselabel", + "value": "STU 1.1" + }, + { + "code": "show-inherited-invariants", + "value": "false" + }, + { + "code": "apply-jurisdiction", + "value": "true" + }, + { + "code": "apply-publisher", + "value": "true" + }, + { + "code": "jira-code", + "value": "davinci-df" + }, + { + "code": "path-history", + "value": "http://hl7.org/fhir/us/davinci-drug-formulary/history.html" + }, + { + "code": "autoload-resources", + "value": "true" + }, + { + "code": "path-resource", + "value": "input/capabilities" + }, + { + "code": "path-resource", + "value": "input/examples" + }, + { + "code": "path-resource", + "value": "input/extensions" + }, + { + "code": "path-resource", + "value": "input/models" + }, + { + "code": "path-resource", + "value": "input/operations" + }, + { + "code": "path-resource", + "value": "input/profiles" + }, + { + "code": "path-resource", + "value": "input/resources" + }, + { + "code": "path-resource", + "value": "input/vocabulary" + }, + { + "code": "path-resource", + "value": "input/maps" + }, + { + "code": "path-resource", + "value": "input/testing" + }, + { + "code": "path-resource", + "value": "input/history" + }, + { + "code": "path-resource", + "value": "fsh-generated/resources" + }, + { + "code": "path-pages", + "value": "template/config" + }, + { + "code": "path-pages", + "value": "input/images" + }, + { + "code": "path-liquid", + "value": "template/liquid" + }, + { + "code": "path-liquid", + "value": "input/liquid" + }, + { + "code": "path-qa", + "value": "temp/qa" + }, + { + "code": "path-temp", + "value": "temp/pages" + }, + { + "code": "path-output", + "value": "output" + }, + { + "code": "path-tx-cache", + "value": "input-cache/txcache" + }, + { + "code": "path-suppressed-warnings", + "value": "input/ignoreWarnings.txt" + }, + { + "code": "template-html", + "value": "template-page.html" + }, + { + "code": "template-md", + "value": "template-page-md.html" + }, + { + "code": "apply-contact", + "value": "true" + }, + { + "code": "apply-context", + "value": "true" + }, + { + "code": "apply-copyright", + "value": "true" + }, + { + "code": "apply-license", + "value": "true" + }, + { + "code": "apply-version", + "value": "true" + }, + { + "code": "active-tables", + "value": "true" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/package.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/package.json new file mode 100644 index 00000000000..b9ff88c9e0d --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/110/package/package.json @@ -0,0 +1,32 @@ +{ + "name": "hl7.fhir.us.davinci-drug-formulary", + "version": "1.1.0", + "tools-version": 3, + "type": "fhir.ig", + "date": "20211015154752", + "license": "CC0-1.0", + "canonical": "http://hl7.org/fhir/us/davinci-drug-formulary", + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/STU1.1", + "title": "DaVinci Payer Data Exchange (PDex) US Drug Formulary", + "description": "Da Vinci Payer Data Exchange (PDex) US Drug Formulary STU 1.1.0 (built Fri, Oct 15, 2021 15:47+0000+00:00)", + "fhirVersions": [ + "4.0.1" + ], + "dependencies": { + "hl7.fhir.r4.core": "4.0.1", + "hl7.fhir.us.core": "3.1.1" + }, + "author": "HL7 Pharmacy Working Group", + "maintainers": [ + { + "name": "HL7 Pharmacy Working Group", + "email": "pharmacy@lists.HL7.org", + "url": "http://www.hl7.org/Special/committees/medication" + } + ], + "directories": { + "lib": "package", + "example": "example" + }, + "jurisdiction": "urn:iso:std:iso:3166#US" +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CapabilityStatement-usdf-server.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CapabilityStatement-usdf-server.json deleted file mode 100644 index 037db5f3a00..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CapabilityStatement-usdf-server.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"CapabilityStatement","id":"usdf-server","text":{"status":"generated","div":"

    usdf-server CapabilityStatement

    • Implementation Guide Version: 1.0.1
    • FHIR Version: 4.0.1
    • Supported formats: xml, json
    • Published: 2020-11-16
    • Published by: HL7 Pharmacy Working Group (Pharm WG)

    This Section describes the expected capabilities of the US Drug Formulary Server actor which is responsible for providing responses to the queries submitted by the US Drug Formulary Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by US Drug Formulary Server are defined.

    FHIR RESTful Capabilities

    US Drug Formulary Server SHALL:

    1. Support all profiles defined in this Implementation Guide..
    2. Implement the RESTful behavior according to the FHIR specification.
    3. Return the following response classes:\n
      • (Status 400): invalid parameter
      • (Status 401/4xx): unauthorized request
      • (Status 403): insufficient scope
      • (Status 404): unknown resource
      • (Status 410): deleted resource.
      \n
    4. Support json source formats for all US Drug Formulary interactions.
    5. Support the searchParameters on each profile individually and in combination.

    US Drug Formulary Server SHOULD:

    1. Support xml source formats for all US Drug Formulary interactions.

    RESTful Capabilities by Resource/Profile:

    Summary of Search Criteria

    Resource TypeSupported ProfilesSupported SearchesSupported _includesSupported _revincludesSupported Operations
    ListCoveragePlan\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t_id, identifier, item, status\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n \n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    MedicationKnowledgeFormularyDrug\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tDrugName, DrugTier, DrugPlan, code, _id\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n \n \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t

    List

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tCoveragePlan\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    • SHALL support \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsearch-type, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tread.
    • SHOULD support \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvread, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thistory-instance.
    • MAY support \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcreate, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdate, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpatch, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdelete, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thistory-type.

    Fetch and Search Criteria:

    • \n\t\t\t\t\tA Server SHALL be capable of returning a List resource using:\n\t\t\t\t\t
      \n\t\t\t\t\t\tGET [base]/List/[id]\n\t\t\t\t
    • \n\t\t\t\t\tA Server SHOULD be capable of returning a List resource using:\n\t\t\t\t\t
      \n\t\t\t\t\t\tGET [base]/List/[id]/_history/vid\n\t\t\t\t

    Search Parameter Summary:

    ConformanceParameterTypeExample
    SHALL_id\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/List?_id=[id]
    SHALLidentifier\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/List?identifier=[system]|[code]
    SHALLitem\n\t\t\t\t\t\t\treference\n\t\t\t\t\t\tGET [base]/List?item=[item]
    SHALLstatus\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/List?status=[status]

    MedicationKnowledge

    Conformance Expectation:\tSHALL

    Supported Profiles:\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tFormularyDrug\n\t\t\t\t\n\t\t\t\t

    Reference Policy: resolves

    Profile Interaction Summary:

    • SHALL support \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsearch-type, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tread.
    • SHOULD support \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvread, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thistory-instance.
    • MAY support \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcreate, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdate, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpatch, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdelete, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thistory-type.

    Fetch and Search Criteria:

    • \n\t\t\t\t\tA Server SHALL be capable of returning a MedicationKnowledge resource using:\n\t\t\t\t\t
      \n\t\t\t\t\t\tGET [base]/MedicationKnowledge/[id]\n\t\t\t\t
    • \n\t\t\t\t\tA Server SHOULD be capable of returning a MedicationKnowledge resource using:\n\t\t\t\t\t
      \n\t\t\t\t\t\tGET [base]/MedicationKnowledge/[id]/_history/vid\n\t\t\t\t

    Search Parameter Summary:

    ConformanceParameterTypeExample
    SHALLDrugName\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/MedicationKnowledge?DrugName=[DrugName]
    SHALLDrugTier\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/MedicationKnowledge?DrugTier=[system]|[code]
    SHALLDrugPlan\n\t\t\t\t\t\t\tstring\n\t\t\t\t\t\tGET [base]/MedicationKnowledge?DrugPlan=[DrugPlan]
    SHALLcode\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/MedicationKnowledge?code=[system]|[code]
    SHALL_id\n\t\t\t\t\t\t\ttoken\n\t\t\t\t\t\tGET [base]/MedicationKnowledge?_id=[id]


    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/CapabilityStatement/usdf-server","version":"1.0.1","name":"UsdfServerCapabilityStatement","title":"usdf-server CapabilityStatement","status":"active","experimental":false,"date":"2020-11-16","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"This Section describes the expected capabilities of the US Drug Formulary Server actor which is responsible for providing responses to the queries submitted by the US Drug Formulary Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by US Drug Formulary Server are defined.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"kind":"requirements","fhirVersion":"4.0.1","format":["xml","json"],"patchFormat":["application/json-patch+json"],"implementationGuide":["http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary"],"rest":[{"mode":"server","documentation":"US Drug Formulary Server **SHALL**:\n\n1. Support all profiles defined in this Implementation Guide..\n1. Implement the RESTful behavior according to the FHIR specification.\n1. Return the following response classes:\n - (Status 400): invalid parameter\n - (Status 401/4xx): unauthorized request\n - (Status 403): insufficient scope\n - (Status 404): unknown resource\n - (Status 410): deleted resource.\n1. Support json source formats for all US Drug Formulary interactions.\n1. Support the searchParameters on each profile individually and in combination.\n\nUS Drug Formulary Server **SHOULD**:\n\n1. Support xml source formats for all US Drug Formulary interactions.\n","resource":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"type":"List","supportedProfile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"],"interaction":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"MAY"}],"code":"create"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"code":"search-type"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"code":"read"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHOULD"}],"code":"vread"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"MAY"}],"code":"update"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"MAY"}],"code":"patch"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"MAY"}],"code":"delete"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHOULD"}],"code":"history-instance"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"MAY"}],"code":"history-type"}],"referencePolicy":["resolves"],"searchParam":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"name":"_id","definition":"http://hl7.org/fhir/SearchParameter/Resource-id","type":"token"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"name":"identifier","definition":"http://hl7.org/fhir/SearchParameter/clinical-identifier","type":"token"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"name":"item","definition":"http://hl7.org/fhir/SearchParameter/List-item","type":"reference"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"name":"status","definition":"http://hl7.org/fhir/SearchParameter/List-status","type":"token"}]},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"type":"MedicationKnowledge","supportedProfile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"],"interaction":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"MAY"}],"code":"create"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"code":"search-type"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"code":"read"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHOULD"}],"code":"vread"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"MAY"}],"code":"update"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"MAY"}],"code":"patch"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"MAY"}],"code":"delete"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHOULD"}],"code":"history-instance"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"MAY"}],"code":"history-type"}],"referencePolicy":["resolves"],"searchParam":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"name":"DrugName","definition":"http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugName","type":"string"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"name":"DrugTier","definition":"http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugTier","type":"token"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"name":"DrugPlan","definition":"http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugPlan","type":"string"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"name":"code","definition":"http://hl7.org/fhir/SearchParameter/MedicationKnowledge-code","type":"token"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation","valueCode":"SHALL"}],"name":"_id","definition":"http://hl7.org/fhir/SearchParameter/Resource-id","type":"token"}]}]}]} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CodeSystem-usdf-CoinsuranceOptionCS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CodeSystem-usdf-CoinsuranceOptionCS.json deleted file mode 100644 index e5ad3bb34e9..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CodeSystem-usdf-CoinsuranceOptionCS.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"CodeSystem","id":"usdf-CoinsuranceOptionCS","text":{"status":"generated","div":"

    This code system http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS defines the following codes:

    CodeDisplay
    after-deductible After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible).
    no-charge No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible).
    no-charge-after-deductible No Charge After Deductible: The consumer first pays the deductible, and after thedeductible is met, no coinsurance is charged (this indicates that this benefit is subject to the deductible)
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","version":"1.0.1","name":"CoInsuranceOptionCS","title":"Code for qualifier for coinsurance rate","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Code for qualifier for coinsurance rate","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"content":"complete","count":3,"concept":[{"code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."},{"code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."},{"code":"no-charge-after-deductible","display":"No Charge After Deductible: The consumer first pays the deductible, and after thedeductible is met, no coinsurance is charged (this indicates that this benefit is subject to the deductible)"}]} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CodeSystem-usdf-CopayOptionCS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CodeSystem-usdf-CopayOptionCS.json deleted file mode 100644 index 92cb69c4059..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CodeSystem-usdf-CopayOptionCS.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"CodeSystem","id":"usdf-CopayOptionCS","text":{"status":"generated","div":"

    This code system http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS defines the following codes:

    CodeDisplay
    after-deductible After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer is responsible only for the copay (this indicates that this benefit is subject to the deductible).
    before-deductible Before Deductible: The consumer first pays the copay, and any net remaining allowed charges accrue to the deductible (this indicates that this benefit is subject to the deductible).
    no-charge No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible).
    no-charge-after-deductible No Charge After Deductible: The consumer first pays the deductible, and after the deductible is met, no copayment is charged (this indicates that this benefit is subject to the deductible).
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","version":"1.0.1","name":"CopayOptionCS","title":"Codes for qualifier of copay amount","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Codes for qualifier of copay amount","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"content":"complete","count":4,"concept":[{"code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer is responsible only for the copay (this indicates that this benefit is subject to the deductible)."},{"code":"before-deductible","display":"Before Deductible: The consumer first pays the copay, and any net remaining allowed charges accrue to the deductible (this indicates that this benefit is subject to the deductible)."},{"code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."},{"code":"no-charge-after-deductible","display":"No Charge After Deductible: The consumer first pays the deductible, and after the deductible is met, no copayment is charged (this indicates that this benefit is subject to the deductible)."}]} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CodeSystem-usdf-DrugTierCS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CodeSystem-usdf-DrugTierCS.json deleted file mode 100644 index ad7a28b8128..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CodeSystem-usdf-DrugTierCS.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"CodeSystem","id":"usdf-DrugTierCS","text":{"status":"generated","div":"

    This code system http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS defines the following codes:

    CodeDisplay
    generic Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier.
    preferred-generic Preferred Generic: Commonly prescribed generic drugs.
    non-preferred-generic Non-preferred Generic: Generic drugs that cost more than drugs in ‘generic’ tier.
    specialty Specialty: Drugs used to treat complex conditions like cancer and multiple sclerosis. They can be generic or brand name, and are typically the most expensive drugs on the formulary.
    brand Brand: Brand name drugs that cost more than ‘preferred brand’ drugs.
    preferred-brand Preferred Brand: Brand name drugs
    non-preferred-brand Non-preferred Brand: Brand name drugs that cost more than ‘brand’ drugs.
    zero-cost-share-preventative Zero cost-share preventative: Preventive medications and products available at no cost.
    medical-service Medical Service: Drugs that must be administered by a clinician or in a facility and may be covered under a medical benefit.
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","version":"1.0.1","name":"DrugTierCS","title":"Codes for medication drug tiers in health plans","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Codes to represent the drug tier of a particular medication in a health plan. Base set are examples. Each plan may have its own controlled vocabulary.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"content":"complete","count":9,"concept":[{"code":"generic","display":"Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier."},{"code":"preferred-generic","display":"Preferred Generic: Commonly prescribed generic drugs."},{"code":"non-preferred-generic","display":"Non-preferred Generic: Generic drugs that cost more than drugs in ‘generic’ tier."},{"code":"specialty","display":"Specialty: Drugs used to treat complex conditions like cancer and multiple sclerosis. They can be generic or brand name, and are typically the most expensive drugs on the formulary."},{"code":"brand","display":"Brand: Brand name drugs that cost more than ‘preferred brand’ drugs."},{"code":"preferred-brand","display":"Preferred Brand: Brand name drugs"},{"code":"non-preferred-brand","display":"Non-preferred Brand: Brand name drugs that cost more than ‘brand’ drugs."},{"code":"zero-cost-share-preventative","display":"Zero cost-share preventative: Preventive medications and products available at no cost."},{"code":"medical-service","display":"Medical Service: Drugs that must be administered by a clinician or in a facility and may be covered under a medical benefit."}]} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CodeSystem-usdf-PharmacyTypeCS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CodeSystem-usdf-PharmacyTypeCS.json deleted file mode 100644 index 34b2099829c..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/CodeSystem-usdf-PharmacyTypeCS.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"CodeSystem","id":"usdf-PharmacyTypeCS","text":{"status":"generated","div":"

    This code system http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS defines the following codes:

    CodeDisplay
    1-month-in-retail 1 month in network retail: 1 Month Supply via in-network retail pharmacy.
    1-month-out-retail 1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy.
    1-month-in-mail 1 month in network mail order: 1 Month Supply via in-network mail order pharmacy.
    1-month-out-mail 1 month out of network mail order: 1 Month Supply via out-of-network mail order pharmacy.
    3-month-in-retail 3 month in network retail: 3 Month Supply via in-network retail pharmacy.
    3-month-out-retail 3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy.
    3-month-in-mail 3 month in network mail order: 3 Month Supply via in-network mail order pharmacy.
    3-month-out-mail 3 month out of network mail order: 3 Month Supply via out-of-network mail order pharmacy.
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","version":"1.0.1","name":"PharmacyTypeCS","title":"Codes for types of pharmacies","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Codes for types of Pharmacies. Each payer will have its own controlled vocabulary.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"content":"complete","count":8,"concept":[{"code":"1-month-in-retail","display":"1 month in network retail: 1 Month Supply via in-network retail pharmacy."},{"code":"1-month-out-retail","display":"1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy."},{"code":"1-month-in-mail","display":"1 month in network mail order: 1 Month Supply via in-network mail order pharmacy."},{"code":"1-month-out-mail","display":"1 month out of network mail order: 1 Month Supply via out-of-network mail order pharmacy."},{"code":"3-month-in-retail","display":"3 month in network retail: 3 Month Supply via in-network retail pharmacy."},{"code":"3-month-out-retail","display":"3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy."},{"code":"3-month-in-mail","display":"3 month in network mail order: 3 Month Supply via in-network mail order pharmacy."},{"code":"3-month-out-mail","display":"3 month out of network mail order: 3 Month Supply via out-of-network mail order pharmacy."}]} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ImplementationGuide-hl7.fhir.us.davinci-drug-formulary.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ImplementationGuide-hl7.fhir.us.davinci-drug-formulary.json deleted file mode 100644 index ac1faaaa76d..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ImplementationGuide-hl7.fhir.us.davinci-drug-formulary.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"ImplementationGuide","id":"hl7.fhir.us.davinci-drug-formulary","text":{"status":"extensions","div":"

    Formulary

    The official URL for this implementation guide is:

    http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary

    Da Vinci Payer Data Exchange (PDex) US Drug Formulary STU 1

    \n
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary","version":"1.0.1","name":"Formulary","status":"draft","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Da Vinci Payer Data Exchange (PDex) US Drug Formulary STU 1","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"packageId":"hl7.fhir.us.davinci-drug-formulary","license":"CC0-1.0","fhirVersion":["4.0.1"],"dependsOn":[{"id":"hl7_fhir_us_core","uri":"http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core","packageId":"hl7.fhir.us.core","version":"3.1.1"}],"definition":{"extension":[{"extension":[{"url":"code","valueString":"copyrightyear"},{"url":"value","valueString":"2020+"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"releaselabel"},{"url":"value","valueString":"ci-build"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"show-inherited-invariants"},{"url":"value","valueString":"false"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"apply-jurisdiction"},{"url":"value","valueString":"true"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"apply-publisher"},{"url":"value","valueString":"true"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"jira-code"},{"url":"value","valueString":"davinci-df"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"path-history"},{"url":"value","valueString":"http://hl7.org/fhir/us/davinci-drug-formulary/history.html"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"autoload-resources"},{"url":"value","valueString":"true"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"path-liquid"},{"url":"value","valueString":"template/liquid"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"path-liquid"},{"url":"value","valueString":"input/liquid"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"path-qa"},{"url":"value","valueString":"temp/qa"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"path-temp"},{"url":"value","valueString":"temp/pages"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"path-output"},{"url":"value","valueString":"output"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"path-suppressed-warnings"},{"url":"value","valueString":"input/ignoreWarnings.txt"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"template-html"},{"url":"value","valueString":"template-page.html"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"template-md"},{"url":"value","valueString":"template-page-md.html"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"apply-contact"},{"url":"value","valueString":"true"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"apply-context"},{"url":"value","valueString":"true"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"apply-copyright"},{"url":"value","valueString":"true"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"apply-license"},{"url":"value","valueString":"true"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"apply-version"},{"url":"value","valueString":"true"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"},{"extension":[{"url":"code","valueString":"active-tables"},{"url":"value","valueString":"true"}],"url":"http://hl7.org/fhir/tools/StructureDefinition/ig-parameter"}],"resource":[{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:resource"}],"reference":{"reference":"StructureDefinition/usdf-CoveragePlan"},"name":"Formulary Coverage Plan","description":"A health plan which contains links to administrative information, a list of formulary drugs covered under that plan, and a definition of drug tiers and their associated cost-sharing models.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:resource"}],"reference":{"reference":"StructureDefinition/usdf-FormularyDrug"},"name":"Formulary Drug","description":"Drug information which is part of a formulary.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-DrugAlternatives-extension"},"name":"Drug Alternatives","description":"Generic or Branded Drugs included within the CoveragePlan's formulary that could be prescribed as alternatives to the current FormularyDrug.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-DrugTierDefinition-extension"},"name":"Drug Tier Definition","description":"A description of the drug tiers used by the formulary and how those tiers implement copay and coinsurance amounts. Drug tiers do not have any inherent meaning that is consistent across all formularies. Rather, each tier is defined using this element.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-DrugTierID-extension"},"name":"Drug Tier ID","description":"A code that describes the coverage status of a drug in a health plan (e.g., preferred generic, specialty, etc.)","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-EmailPlanContact-extension"},"name":"Email Plan Contact","description":"An email address for developers/public to report mistakes in the network and formulary data.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-FormularyURL-extension"},"name":"Formulary URL","description":"The URL that goes directly to the formulary brochure for the specific standard plan or plan variation.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-MarketingURL-extension"},"name":"Marketing URL","description":"The URL that goes directly to the plan brochure for the specific standard plan or plan variation.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-Network-extension"},"name":"Network","description":"Array of Networks within a plan.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-PlanID-extension"},"name":"Plan ID","description":"Unique, 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.)","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-PlanIDType-extension"},"name":"Plan ID Type","description":"Type of Plan ID. For all Marketplace plans this should be: HIOS-PLAN-ID","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-PriorAuthorization-extension"},"name":"Prior Authorization","description":"A Boolean indication of whether the coverage plan imposes a prior authorization requirement on this drug.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-QuantityLimit-extension"},"name":"Quantity Limit","description":"A Boolean indication of whether the coverage plan imposes a quantity limit on this drug.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-StepTherapyLimit-extension"},"name":"Step Therapy Limit","description":"A Boolean indication of whether the coverage plan imposes a step therapy limit on this drug.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-SummaryURL-extension"},"name":"Summary URL","description":"The URL that goes directly to the formulary brochure for the specific standard plan or plan variation.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"ValueSet"}],"reference":{"reference":"ValueSet/CoinsuranceOptionVS"},"name":"Qualifier for coinsurance rate","description":"Qualifier for coinsurance rate","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"ValueSet"}],"reference":{"reference":"ValueSet/CopayOptionVS"},"name":"Qualifier of copay amount","description":"Qualifier of copay amount","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"ValueSet"}],"reference":{"reference":"ValueSet/DrugTierVS"},"name":"Drug tier of medication in health plan","description":"The drug tier of a particular medication in a health plan. The base set are examples. Each plan may have its own controlled vocabulary.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"ValueSet"}],"reference":{"reference":"ValueSet/PharmacyTypeVS"},"name":"Type of pharmacies","description":"Types of pharmacies. Each payer will have its own controlled vocabulary.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"CodeSystem"}],"reference":{"reference":"CodeSystem/usdf-CoinsuranceOptionCS"},"name":"Code for qualifier for coinsurance rate","description":"Code for qualifier for coinsurance rate","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"CodeSystem"}],"reference":{"reference":"CodeSystem/usdf-CopayOptionCS"},"name":"Codes for qualifier of copay amount","description":"Codes for qualifier of copay amount","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"CodeSystem"}],"reference":{"reference":"CodeSystem/usdf-DrugTierCS"},"name":"Codes for medication drug tiers in health plans","description":"Codes to represent the drug tier of a particular medication in a health plan. Base set are examples. Each plan may have its own controlled vocabulary.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"CodeSystem"}],"reference":{"reference":"CodeSystem/usdf-PharmacyTypeCS"},"name":"Codes for types of pharmacies","description":"Codes for types of Pharmacies. Each payer will have its own controlled vocabulary.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"CapabilityStatement"}],"reference":{"reference":"CapabilityStatement/usdf-server"},"name":"usdf-server CapabilityStatement","description":"This Section describes the expected capabilities of the US Drug Formulary Server actor which is responsible for providing responses to the queries submitted by the US Drug Formulary Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by US Drug Formulary Server are defined.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"SearchParameter"}],"reference":{"reference":"SearchParameter/DrugName"},"name":"DrugName","description":"Accesses the Descriptive Name of a FormularyDrug","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"SearchParameter"}],"reference":{"reference":"SearchParameter/DrugPlan"},"name":"DrugPlan","description":"Accesses the DrugPlan ID of a FormularyDrug","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"SearchParameter"}],"reference":{"reference":"SearchParameter/DrugTier"},"name":"DrugTier","description":"Accesses the DrugTier ID of a FormularyDrug","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"List"}],"reference":{"reference":"List/covplanV1002"},"name":"Coverage Plan V1002","description":"Sample Gold Health Plan","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"List"}],"reference":{"reference":"List/CoveragePlanV3001"},"name":"Coverage Plan V3001","description":"Sample Gold Health Plan","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"List"}],"reference":{"reference":"List/CoveragePlanV3002"},"name":"Coverage Plan V3002","description":"Sample Gold Health Plan","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"List"}],"reference":{"reference":"List/CoveragePlanV3004t"},"name":"Coverage Plan V3004t","description":"BluePreferred PPO HSA Silver $3,000","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"MedicationKnowledge"}],"reference":{"reference":"MedicationKnowledge/formularydrugV1002"},"name":"Formulary Drug V1002","description":"Percocet 5 MG / 325 MG Oral Tablet","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"MedicationKnowledge"}],"reference":{"reference":"MedicationKnowledge/FormularyDrugV3001"},"name":"Formulary Drug V3001","description":"Percocet 5 MG / 325 MG Oral Tablet","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"MedicationKnowledge"}],"reference":{"reference":"MedicationKnowledge/FormularyDrugV3002"},"name":"Formulary Drug V3002","description":"Tylenol Extra Strength 500 MG Oral Tablet","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"MedicationKnowledge"}],"reference":{"reference":"MedicationKnowledge/cmsip9"},"name":"Formulary Drug cmsip9","description":"Doxepin HCl 5 % Topical Cream","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"}],"page":{"nameUrl":"toc.html","title":"Table of Contents","generation":"html","page":[{"nameUrl":"index.html","title":"Home","generation":"markdown"},{"nameUrl":"profiles.html","title":"Profiles","generation":"markdown"},{"nameUrl":"examples.html","title":"Examples","generation":"html"},{"nameUrl":"4_downloads.html","title":"Downloads","generation":"markdown"},{"nameUrl":"1-implementation.html","title":"1 Implementation","generation":"markdown"},{"nameUrl":"downloads.html","title":"Downloads","generation":"markdown"}]},"parameter":[{"code":"path-resource","value":"input/capabilities"},{"code":"path-resource","value":"input/examples"},{"code":"path-resource","value":"input/extensions"},{"code":"path-resource","value":"input/models"},{"code":"path-resource","value":"input/operations"},{"code":"path-resource","value":"input/profiles"},{"code":"path-resource","value":"input/resources"},{"code":"path-resource","value":"input/vocabulary"},{"code":"path-resource","value":"input/maps"},{"code":"path-resource","value":"input/testing"},{"code":"path-resource","value":"input/history"},{"code":"path-resource","value":"fsh-generated/resources"},{"code":"path-pages","value":"template/config"},{"code":"path-pages","value":"input/images"},{"code":"path-tx-cache","value":"input-cache/txcache"}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/SearchParameter-DrugName.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/SearchParameter-DrugName.json deleted file mode 100644 index d463a143928..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/SearchParameter-DrugName.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"SearchParameter","id":"DrugName","text":{"status":"generated","div":"

    Generated Narrative

    url: http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugName

    version: 1.0.1

    name: DrugName

    status: active

    date: Nov 20, 2020, 7:06:24 PM

    publisher: HL7 Pharmacy Working Group

    contact: HL7 Pharmacy Working Group: http://www.hl7.org/Special/committees/medication/,pharmacy@lists.HL7.org

    description: Accesses the Descriptive Name of a FormularyDrug

    jurisdiction: United States of America

    code: DrugName

    base: MedicationKnowledge

    type: string

    expression: MedicationKnowledge.code.coding.display

    multipleOr: true

    multipleAnd: true

    comparator: eq

    modifier: missing, exact, contains

    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugName","version":"1.0.1","name":"DrugName","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Accesses the Descriptive Name of a FormularyDrug","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"code":"DrugName","base":["MedicationKnowledge"],"type":"string","expression":"MedicationKnowledge.code.coding.display","multipleOr":true,"multipleAnd":true,"comparator":["eq"],"modifier":["missing","exact","contains"]} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/SearchParameter-DrugPlan.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/SearchParameter-DrugPlan.json deleted file mode 100644 index c7154b92d76..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/SearchParameter-DrugPlan.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"SearchParameter","id":"DrugPlan","text":{"status":"generated","div":"

    Generated Narrative

    url: http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugPlan

    version: 1.0.1

    name: DrugPlan

    status: active

    date: Nov 20, 2020, 7:06:24 PM

    publisher: HL7 Pharmacy Working Group

    contact: HL7 Pharmacy Working Group: http://www.hl7.org/Special/committees/medication/,pharmacy@lists.HL7.org

    description: Accesses the DrugPlan ID of a FormularyDrug

    jurisdiction: United States of America

    code: DrugPlan

    base: MedicationKnowledge

    type: string

    expression: MedicationKnowledge.extension.where(url='http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension').value

    comparator: eq

    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugPlan","version":"1.0.1","name":"DrugPlan","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Accesses the DrugPlan ID of a FormularyDrug","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"code":"DrugPlan","base":["MedicationKnowledge"],"type":"string","expression":"MedicationKnowledge.extension.where(url='http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension').value","comparator":["eq"]} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/SearchParameter-DrugTier.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/SearchParameter-DrugTier.json deleted file mode 100644 index f1fcd1ccf12..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/SearchParameter-DrugTier.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"SearchParameter","id":"DrugTier","text":{"status":"generated","div":"

    Generated Narrative

    url: http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugTier

    version: 1.0.1

    name: DrugTier

    status: active

    date: Nov 20, 2020, 7:06:24 PM

    publisher: HL7 Pharmacy Working Group

    contact: HL7 Pharmacy Working Group: http://www.hl7.org/Special/committees/medication/,pharmacy@lists.HL7.org

    description: Accesses the DrugTier ID of a FormularyDrug

    jurisdiction: United States of America

    code: DrugTier

    base: MedicationKnowledge

    type: token

    expression: MedicationKnowledge.extension.where(url='http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension').value

    comparator: eq

    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/SearchParameter/DrugTier","version":"1.0.1","name":"DrugTier","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Accesses the DrugTier ID of a FormularyDrug","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"code":"DrugTier","base":["MedicationKnowledge"],"type":"token","expression":"MedicationKnowledge.extension.where(url='http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension').value","comparator":["eq"]} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-CoveragePlan.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-CoveragePlan.json deleted file mode 100644 index a2b090d27b7..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-CoveragePlan.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-CoveragePlan","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" List 0..*ListA list is a curated collection of resources
    \".\"\".\"\".\" extension 4..*ExtensionExtension
    Slice: Unordered, Open by value:url
    \".\"\".\"\".\" usdf-DrugTierDefinition-extension S1..*(Complex)Extension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension
    \".\"\".\"\".\" usdf-Network-extension S1..*stringExtension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension
    \".\"\".\"\".\" usdf-SummaryURL-extension S1..1stringExtension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension
    \".\"\".\"\".\" usdf-FormularyURL-extension S0..1stringExtension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension
    \".\"\".\"\".\" usdf-EmailPlanContact-extension S0..1stringExtension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension
    \".\"\".\"\".\" usdf-MarketingURL-extension S0..1stringExtension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension
    \".\"\".\"\".\" usdf-PlanIDType-extension S1..1stringExtension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension

    \"doco\" Documentation for this format
    "},"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-category","valueString":"Base.Management"},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category","valueCode":"not-classified"}],"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan","version":"1.0.1","name":"CoveragePlan","title":"Formulary Coverage Plan","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"A health plan which contains links to administrative information, a list of formulary drugs covered under that plan, and a definition of drug tiers and their associated cost-sharing models.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"}],"kind":"resource","abstract":false,"type":"List","baseDefinition":"http://hl7.org/fhir/StructureDefinition/List","derivation":"constraint","snapshot":{"element":[{"id":"List","path":"List","short":"A list is a curated collection of resources","definition":"A list is a curated collection of resources.","alias":["Collection","WorkingList","Organizer"],"min":0,"max":"*","base":{"path":"List","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"lst-1","severity":"error","human":"A list can only have an emptyReason if it is empty","expression":"emptyReason.empty() or entry.empty()","xpath":"not(exists(f:emptyReason) and exists(f:entry))","source":"http://hl7.org/fhir/StructureDefinition/List"},{"key":"lst-2","severity":"error","human":"The deleted flag can only be used if the mode of the list is \"changes\"","expression":"mode = 'changes' or entry.deleted.empty()","xpath":"(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))","source":"http://hl7.org/fhir/StructureDefinition/List"},{"key":"lst-3","severity":"error","human":"An entry date can only be used if the mode of the list is \"working\"","expression":"mode = 'working' or entry.date.empty()","xpath":"(f:mode/@value = 'working') or not(exists(f:entry/f:date))","source":"http://hl7.org/fhir/StructureDefinition/List"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"rim","map":"Act[classCode id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"List.implicitRules","path":"List.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"List.language","path":"List.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding","valueBoolean":true}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages"}},{"id":"List.text","path":"List.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"List.contained","path":"List.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"List.extension","path":"List.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"ordered":false,"rules":"open"},"short":"Extension","definition":"An Extension","min":4,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"List.extension:usdf-DrugTierDefinition-extension","path":"List.extension","sliceName":"usdf-DrugTierDefinition-extension","short":"Extension","definition":"An Extension","min":1,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"mustSupport":true,"isModifier":false},{"id":"List.extension:usdf-Network-extension","path":"List.extension","sliceName":"usdf-Network-extension","short":"Extension","definition":"An Extension","min":1,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"mustSupport":true,"isModifier":false},{"id":"List.extension:usdf-SummaryURL-extension","path":"List.extension","sliceName":"usdf-SummaryURL-extension","short":"Extension","definition":"An Extension","min":1,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"mustSupport":true,"isModifier":false},{"id":"List.extension:usdf-FormularyURL-extension","path":"List.extension","sliceName":"usdf-FormularyURL-extension","short":"Extension","definition":"An Extension","min":0,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"mustSupport":true,"isModifier":false},{"id":"List.extension:usdf-EmailPlanContact-extension","path":"List.extension","sliceName":"usdf-EmailPlanContact-extension","short":"Extension","definition":"An Extension","min":0,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"mustSupport":true,"isModifier":false},{"id":"List.extension:usdf-MarketingURL-extension","path":"List.extension","sliceName":"usdf-MarketingURL-extension","short":"Extension","definition":"An Extension","min":0,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"mustSupport":true,"isModifier":false},{"id":"List.extension:usdf-PlanIDType-extension","path":"List.extension","sliceName":"usdf-PlanIDType-extension","short":"Extension","definition":"An Extension","min":1,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"mustSupport":true,"isModifier":false},{"id":"List.modifierExtension","path":"List.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"List.identifier","path":"List.identifier","short":"Business identifier","definition":"Identifier for the List assigned for business purposes outside the context of FHIR.","min":0,"max":"*","base":{"path":"List.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"w5","map":"FiveWs.identifier"},{"identity":"rim","map":".id"}]},{"id":"List.status","path":"List.status","short":"current | retired | entered-in-error","definition":"Indicates the current state of this list.","comment":"This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.","min":1,"max":"1","base":{"path":"List.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ListStatus"}],"strength":"required","description":"The current state of the list.","valueSet":"http://hl7.org/fhir/ValueSet/list-status|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.status"},{"identity":"rim","map":".status[current=active;retired=obsolete;entered-in-error=nullified]"}]},{"id":"List.mode","path":"List.mode","short":"working | snapshot | changes","definition":"How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.","comment":"This element is labeled as a modifier because a change list must not be misunderstood as a complete list.","requirements":"Lists are used in various ways, and it must be known in what way it is safe to use them.","min":1,"max":"1","base":{"path":"List.mode","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"If set to \"changes\", the list is considered incomplete, while the other two codes indicate the list is complete, which changes the understanding of the elements listed","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ListMode"}],"strength":"required","description":"The processing mode that applies to this list.","valueSet":"http://hl7.org/fhir/ValueSet/list-mode|4.0.1"},"mapping":[{"identity":"w5","map":"FiveWs.class"},{"identity":"rim","map":".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"}]},{"id":"List.title","path":"List.title","short":"Descriptive name for the list","definition":"A label for the list assigned by the author.","requirements":"Allows customization beyond just the code identifying the kind of list.","min":0,"max":"1","base":{"path":"List.title","min":0,"max":"1"},"type":[{"code":"string"}],"example":[{"label":"General","valueString":"Dr. Jane's Patients"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":".title"}]},{"id":"List.code","path":"List.code","short":"What the purpose of this list is","definition":"This code defines the purpose of the list - why it was created.","comment":"If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code.","requirements":"Lists often contain subsets of resources rather than an exhaustive list. The code identifies what type of subset is included.","min":0,"max":"1","base":{"path":"List.code","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ListPurpose"}],"strength":"example","description":"What the purpose of a list is.","valueSet":"http://hl7.org/fhir/ValueSet/list-example-codes"},"mapping":[{"identity":"w5","map":"FiveWs.what[x]"},{"identity":"rim","map":".code"}]},{"id":"List.subject","path":"List.subject","short":"If all resources have the same subject","definition":"The common subject (or patient) of the resources that are in the list if there is one.","comment":"Some purely arbitrary lists do not have a common subject, so this is optional.","requirements":"The primary purpose of listing the subject explicitly is to help with finding the right list.","min":0,"max":"1","base":{"path":"List.subject","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Patient","http://hl7.org/fhir/StructureDefinition/Group","http://hl7.org/fhir/StructureDefinition/Device","http://hl7.org/fhir/StructureDefinition/Location"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.subject[x]"},{"identity":"rim","map":".participation[typeCode id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"w5","map":"FiveWs.context"},{"identity":"rim","map":"inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"}]},{"id":"List.date","path":"List.date","short":"When the list was prepared","definition":"The date that the list was prepared.","comment":"The actual important date is the date of currency of the resources that were summarized, but it is usually assumed that these are current when the preparation occurs.","requirements":"Identifies how current the list is which affects relevance.","min":0,"max":"1","base":{"path":"List.date","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.recorded"},{"identity":"rim","map":".participation[typeCode id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.author"},{"identity":"rim","map":".participation[typeCode id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ListOrder"}],"strength":"preferred","description":"What order applies to the items in a list.","valueSet":"http://hl7.org/fhir/ValueSet/list-order"},"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=COMP].sequenceNumber > 1"}]},{"id":"List.note","path":"List.note","short":"Comments about the list","definition":"Comments that apply to the overall list.","min":0,"max":"*","base":{"path":"List.note","min":0,"max":"*"},"type":[{"code":"Annotation"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ].act.text"}]},{"id":"List.entry","path":"List.entry","short":"Entries in the list","definition":"Entries in this list.","comment":"If there are no entries in the list, an emptyReason SHOULD be provided.","min":0,"max":"*","base":{"path":"List.entry","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"condition":["lst-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]"}]},{"id":"List.entry.id","path":"List.entry.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"List.entry.extension","path":"List.entry.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"List.entry.modifierExtension","path":"List.entry.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"List.entry.flag","path":"List.entry.flag","short":"Status/Workflow information about this item","definition":"The flag allows the system constructing the list to indicate the role and significance of the item in the list.","comment":"The flag can only be understood in the context of the List.code. If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Deleted can only be used if the List.mode is \"changes\".","requirements":"This field is present to support various clinical uses of lists, such as a discharge summary medication list, where flags specify whether the medication was added, modified, or deleted from the list.","min":0,"max":"1","base":{"path":"List.entry.flag","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ListItemFlag"}],"strength":"example","description":"Codes that provide further information about the reason and meaning of the item in the list.","valueSet":"http://hl7.org/fhir/ValueSet/list-item-flag"},"mapping":[{"identity":"rim","map":".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"}]},{"id":"List.entry.deleted","path":"List.entry.deleted","short":"If this item is actually marked as deleted","definition":"True if this item is marked as deleted in the list.","comment":"If the flag means that the entry has actually been deleted from the list, the deleted element SHALL be true. Both flag and deleted can only be used if the List.mode is \"changes\". A deleted entry should be displayed in narrative as deleted. This element is labeled as a modifier because it indicates that an item is (to be) no longer in the list.","requirements":"The flag element may contain codes that an application processing the list does not understand. However there can be no ambiguity if a list item is actually marked as \"deleted\".","min":0,"max":"1","base":{"path":"List.entry.deleted","min":0,"max":"1"},"type":[{"code":"boolean"}],"meaningWhenMissing":"List items are generally only treated as deleted when this element explicitly carries a value of true. Systems SHOULD always populate this value when mode is 'changes'","condition":["lst-2"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"If deleted is true, then the item included in the list isn't actually part of the list anymore","isSummary":false,"mapping":[{"identity":"rim","map":"added: .updateMode=(\"A\",\"AR\") retained: .updateMode=\"NC\" updated: .updateMode=\"R\" deleted: .updateMode=\"D\""}]},{"id":"List.entry.date","path":"List.entry.date","short":"When item added to list","definition":"When this item was added to the list.","requirements":"The date may be significant for understanding the meaning of items in a working list.","min":0,"max":"1","base":{"path":"List.entry.date","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".availabilityTime"}]},{"id":"List.entry.item","path":"List.entry.item","short":"Actual entry","definition":"A reference to the actual resource from which data was derived.","min":1,"max":"1","base":{"path":"List.entry.item","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Resource"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":".target or .role or .role.entity"}]},{"id":"List.emptyReason","path":"List.emptyReason","short":"Why list is empty","definition":"If the list is empty, why the list is empty.","comment":"The various reasons for an empty list make a significant interpretation to its interpretation. Note that this code is for use when the entire list has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases.","requirements":"Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.","min":0,"max":"1","base":{"path":"List.emptyReason","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"condition":["lst-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ListEmptyReason"}],"strength":"preferred","description":"If a list is empty, why it is empty.","valueSet":"http://hl7.org/fhir/ValueSet/list-empty-reason"},"mapping":[{"identity":"rim","map":".inboundRelationship[typeCode=SUBJ,code\r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension"
    \".\"\".\"\".\" value[x] 1..1Reference(Formulary Drug)Value of extension

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension","version":"1.0.1","name":"DrugAlternatives","title":"Drug Alternatives","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Generic or Branded Drugs included within the CoveragePlan's formulary that could be prescribed as alternatives to the current FormularyDrug.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","min":1,"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"]}]}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-DrugTierDefinition-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-DrugTierDefinition-extension.json deleted file mode 100644 index 421dc0b8f37..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-DrugTierDefinition-extension.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-DrugTierDefinition-extension","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 2..*ExtensionExtension
    \".\"\".\"\".\" extension:drugTierID 1..1ExtensionDrug Tier ID
    \".\"\".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\"\".\" url 1..1uri"drugTierID"
    \".\"\".\"\".\"\".\" value[x] 1..1CodeableConceptValue of extension
    Binding: Drug tier of medication in health plan (extensible)
    \".\"\".\"\".\" extension:mailOrder 1..1ExtensionMail Order
    \".\"\".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\"\".\" url 1..1uri"mailOrder"
    \".\"\".\"\".\"\".\" value[x] 1..1booleanValue of extension
    \".\"\".\"\".\" extension:costSharing 0..*ExtensionExtension
    \".\"\".\"\".\"\".\" extension 5..*ExtensionExtension
    \".\"\".\"\".\"\".\" extension:pharmacyType 1..1ExtensionPharmacy Type
    \".\"\".\"\".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\"\".\"\".\" url 1..1uri"pharmacyType"
    \".\"\".\"\".\"\".\"\".\" value[x] 1..1CodeableConceptValue of extension
    Binding: Type of pharmacies (extensible)
    \".\"\".\"\".\"\".\" extension:copayAmount 1..1ExtensionCopay Amount
    \".\"\".\"\".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\"\".\"\".\" url 1..1uri"copayAmount"
    \".\"\".\"\".\"\".\"\".\" value[x] 1..1MoneyValue of extension
    \".\"\".\"\".\"\".\" extension:copayOption 1..1ExtensionCopay Options
    \".\"\".\"\".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\"\".\"\".\" url 1..1uri"copayOption"
    \".\"\".\"\".\"\".\"\".\" value[x] 1..1CodeableConceptValue of extension
    Binding: Qualifier of copay amount (required)
    \".\"\".\"\".\"\".\" extension:coinsuranceRate 1..1ExtensionCo-Insurance Rate
    \".\"\".\"\".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\"\".\"\".\" url 1..1uri"coinsuranceRate"
    \".\"\".\"\".\"\".\"\".\" value[x] 1..1decimalValue of extension
    \".\"\".\"\".\"\".\" extension:coinsuranceOption 1..1ExtensionCo-Insurance Option
    \".\"\".\"\".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\"\".\"\".\" url 1..1uri"coinsuranceOption"
    \".\"\".\"\".\"\".\"\".\" value[x] 1..1CodeableConceptValue of extension
    Binding: Qualifier for coinsurance rate (required)
    \".\"\".\"\".\"\".\" url 1..1uri"costSharing"
    \".\"\".\"\".\"\".\" value[x] 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension"
    \".\"\".\"\".\" value[x] 0..0

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension","version":"1.0.1","name":"DrugTierDefinition","title":"Drug Tier Definition","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"A description of the drug tiers used by the formulary and how those tiers implement copay and coinsurance amounts. Drug tiers do not have any inherent meaning that is consistent across all formularies. Rather, each tier is defined using this element.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":2,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:drugTierID","path":"Extension.extension","sliceName":"drugTierID","short":"Drug Tier ID","definition":"An Extension","min":1,"max":"1","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:drugTierID.id","path":"Extension.extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension:drugTierID.extension","path":"Extension.extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:drugTierID.url","path":"Extension.extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"drugTierID","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:drugTierID.value[x]","path":"Extension.extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"strength":"extensible","valueSet":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS"},"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:mailOrder","path":"Extension.extension","sliceName":"mailOrder","short":"Mail Order","definition":"An Extension","min":1,"max":"1","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:mailOrder.id","path":"Extension.extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension:mailOrder.extension","path":"Extension.extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:mailOrder.url","path":"Extension.extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"mailOrder","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:mailOrder.value[x]","path":"Extension.extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:costSharing","path":"Extension.extension","sliceName":"costSharing","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:costSharing.id","path":"Extension.extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension:costSharing.extension","path":"Extension.extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":5,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:costSharing.extension:pharmacyType","path":"Extension.extension.extension","sliceName":"pharmacyType","short":"Pharmacy Type","definition":"An Extension","min":1,"max":"1","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:costSharing.extension:pharmacyType.id","path":"Extension.extension.extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension:costSharing.extension:pharmacyType.extension","path":"Extension.extension.extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:costSharing.extension:pharmacyType.url","path":"Extension.extension.extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"pharmacyType","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:costSharing.extension:pharmacyType.value[x]","path":"Extension.extension.extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"strength":"extensible","valueSet":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/PharmacyTypeVS"},"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:costSharing.extension:copayAmount","path":"Extension.extension.extension","sliceName":"copayAmount","short":"Copay Amount","definition":"An Extension","min":1,"max":"1","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:costSharing.extension:copayAmount.id","path":"Extension.extension.extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension:costSharing.extension:copayAmount.extension","path":"Extension.extension.extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:costSharing.extension:copayAmount.url","path":"Extension.extension.extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"copayAmount","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:costSharing.extension:copayAmount.value[x]","path":"Extension.extension.extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"Money"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:costSharing.extension:copayOption","path":"Extension.extension.extension","sliceName":"copayOption","short":"Copay Options","definition":"An Extension","min":1,"max":"1","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:costSharing.extension:copayOption.id","path":"Extension.extension.extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension:costSharing.extension:copayOption.extension","path":"Extension.extension.extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:costSharing.extension:copayOption.url","path":"Extension.extension.extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"copayOption","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:costSharing.extension:copayOption.value[x]","path":"Extension.extension.extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"strength":"required","valueSet":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CopayOptionVS"},"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:costSharing.extension:coinsuranceRate","path":"Extension.extension.extension","sliceName":"coinsuranceRate","short":"Co-Insurance Rate","definition":"An Extension","min":1,"max":"1","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:costSharing.extension:coinsuranceRate.id","path":"Extension.extension.extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension:costSharing.extension:coinsuranceRate.extension","path":"Extension.extension.extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:costSharing.extension:coinsuranceRate.url","path":"Extension.extension.extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"coinsuranceRate","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:costSharing.extension:coinsuranceRate.value[x]","path":"Extension.extension.extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"decimal"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:costSharing.extension:coinsuranceOption","path":"Extension.extension.extension","sliceName":"coinsuranceOption","short":"Co-Insurance Option","definition":"An Extension","min":1,"max":"1","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:costSharing.extension:coinsuranceOption.id","path":"Extension.extension.extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension:costSharing.extension:coinsuranceOption.extension","path":"Extension.extension.extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.extension:costSharing.extension:coinsuranceOption.url","path":"Extension.extension.extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"coinsuranceOption","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:costSharing.extension:coinsuranceOption.value[x]","path":"Extension.extension.extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"strength":"required","valueSet":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CoinsuranceOptionVS"},"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:costSharing.url","path":"Extension.extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"costSharing","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.extension:costSharing.value[x]","path":"Extension.extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":0,"max":"0","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"base64Binary"},{"code":"boolean"},{"code":"canonical"},{"code":"code"},{"code":"date"},{"code":"dateTime"},{"code":"decimal"},{"code":"id"},{"code":"instant"},{"code":"integer"},{"code":"markdown"},{"code":"oid"},{"code":"positiveInt"},{"code":"string"},{"code":"time"},{"code":"unsignedInt"},{"code":"uri"},{"code":"url"},{"code":"uuid"},{"code":"Address"},{"code":"Age"},{"code":"Annotation"},{"code":"Attachment"},{"code":"CodeableConcept"},{"code":"Coding"},{"code":"ContactPoint"},{"code":"Count"},{"code":"Distance"},{"code":"Duration"},{"code":"HumanName"},{"code":"Identifier"},{"code":"Money"},{"code":"Period"},{"code":"Quantity"},{"code":"Range"},{"code":"Ratio"},{"code":"Reference"},{"code":"SampledData"},{"code":"Signature"},{"code":"Timing"},{"code":"ContactDetail"},{"code":"Contributor"},{"code":"DataRequirement"},{"code":"Expression"},{"code":"ParameterDefinition"},{"code":"RelatedArtifact"},{"code":"TriggerDefinition"},{"code":"UsageContext"},{"code":"Dosage"},{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":0,"max":"0","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"base64Binary"},{"code":"boolean"},{"code":"canonical"},{"code":"code"},{"code":"date"},{"code":"dateTime"},{"code":"decimal"},{"code":"id"},{"code":"instant"},{"code":"integer"},{"code":"markdown"},{"code":"oid"},{"code":"positiveInt"},{"code":"string"},{"code":"time"},{"code":"unsignedInt"},{"code":"uri"},{"code":"url"},{"code":"uuid"},{"code":"Address"},{"code":"Age"},{"code":"Annotation"},{"code":"Attachment"},{"code":"CodeableConcept"},{"code":"Coding"},{"code":"ContactPoint"},{"code":"Count"},{"code":"Distance"},{"code":"Duration"},{"code":"HumanName"},{"code":"Identifier"},{"code":"Money"},{"code":"Period"},{"code":"Quantity"},{"code":"Range"},{"code":"Ratio"},{"code":"Reference"},{"code":"SampledData"},{"code":"Signature"},{"code":"Timing"},{"code":"ContactDetail"},{"code":"Contributor"},{"code":"DataRequirement"},{"code":"Expression"},{"code":"ParameterDefinition"},{"code":"RelatedArtifact"},{"code":"TriggerDefinition"},{"code":"UsageContext"},{"code":"Dosage"},{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","min":2},{"id":"Extension.extension:drugTierID","path":"Extension.extension","sliceName":"drugTierID","short":"Drug Tier ID","min":1,"max":"1"},{"id":"Extension.extension:drugTierID.extension","path":"Extension.extension.extension","max":"0"},{"id":"Extension.extension:drugTierID.url","path":"Extension.extension.url","fixedUri":"drugTierID"},{"id":"Extension.extension:drugTierID.value[x]","path":"Extension.extension.value[x]","min":1,"type":[{"code":"CodeableConcept"}],"binding":{"strength":"extensible","valueSet":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS"}},{"id":"Extension.extension:mailOrder","path":"Extension.extension","sliceName":"mailOrder","short":"Mail Order","min":1,"max":"1"},{"id":"Extension.extension:mailOrder.extension","path":"Extension.extension.extension","max":"0"},{"id":"Extension.extension:mailOrder.url","path":"Extension.extension.url","fixedUri":"mailOrder"},{"id":"Extension.extension:mailOrder.value[x]","path":"Extension.extension.value[x]","min":1,"type":[{"code":"boolean"}]},{"id":"Extension.extension:costSharing","path":"Extension.extension","sliceName":"costSharing","min":0,"max":"*"},{"id":"Extension.extension:costSharing.extension","path":"Extension.extension.extension","min":5},{"id":"Extension.extension:costSharing.extension:pharmacyType","path":"Extension.extension.extension","sliceName":"pharmacyType","short":"Pharmacy Type","min":1,"max":"1"},{"id":"Extension.extension:costSharing.extension:pharmacyType.extension","path":"Extension.extension.extension.extension","max":"0"},{"id":"Extension.extension:costSharing.extension:pharmacyType.url","path":"Extension.extension.extension.url","fixedUri":"pharmacyType"},{"id":"Extension.extension:costSharing.extension:pharmacyType.value[x]","path":"Extension.extension.extension.value[x]","min":1,"type":[{"code":"CodeableConcept"}],"binding":{"strength":"extensible","valueSet":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/PharmacyTypeVS"}},{"id":"Extension.extension:costSharing.extension:copayAmount","path":"Extension.extension.extension","sliceName":"copayAmount","short":"Copay Amount","min":1,"max":"1"},{"id":"Extension.extension:costSharing.extension:copayAmount.extension","path":"Extension.extension.extension.extension","max":"0"},{"id":"Extension.extension:costSharing.extension:copayAmount.url","path":"Extension.extension.extension.url","fixedUri":"copayAmount"},{"id":"Extension.extension:costSharing.extension:copayAmount.value[x]","path":"Extension.extension.extension.value[x]","min":1,"type":[{"code":"Money"}]},{"id":"Extension.extension:costSharing.extension:copayOption","path":"Extension.extension.extension","sliceName":"copayOption","short":"Copay Options","min":1,"max":"1"},{"id":"Extension.extension:costSharing.extension:copayOption.extension","path":"Extension.extension.extension.extension","max":"0"},{"id":"Extension.extension:costSharing.extension:copayOption.url","path":"Extension.extension.extension.url","fixedUri":"copayOption"},{"id":"Extension.extension:costSharing.extension:copayOption.value[x]","path":"Extension.extension.extension.value[x]","min":1,"type":[{"code":"CodeableConcept"}],"binding":{"strength":"required","valueSet":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CopayOptionVS"}},{"id":"Extension.extension:costSharing.extension:coinsuranceRate","path":"Extension.extension.extension","sliceName":"coinsuranceRate","short":"Co-Insurance Rate","min":1,"max":"1"},{"id":"Extension.extension:costSharing.extension:coinsuranceRate.extension","path":"Extension.extension.extension.extension","max":"0"},{"id":"Extension.extension:costSharing.extension:coinsuranceRate.url","path":"Extension.extension.extension.url","fixedUri":"coinsuranceRate"},{"id":"Extension.extension:costSharing.extension:coinsuranceRate.value[x]","path":"Extension.extension.extension.value[x]","min":1,"type":[{"code":"decimal"}]},{"id":"Extension.extension:costSharing.extension:coinsuranceOption","path":"Extension.extension.extension","sliceName":"coinsuranceOption","short":"Co-Insurance Option","min":1,"max":"1"},{"id":"Extension.extension:costSharing.extension:coinsuranceOption.extension","path":"Extension.extension.extension.extension","max":"0"},{"id":"Extension.extension:costSharing.extension:coinsuranceOption.url","path":"Extension.extension.extension.url","fixedUri":"coinsuranceOption"},{"id":"Extension.extension:costSharing.extension:coinsuranceOption.value[x]","path":"Extension.extension.extension.value[x]","min":1,"type":[{"code":"CodeableConcept"}],"binding":{"strength":"required","valueSet":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CoinsuranceOptionVS"}},{"id":"Extension.extension:costSharing.url","path":"Extension.extension.url","fixedUri":"costSharing"},{"id":"Extension.extension:costSharing.value[x]","path":"Extension.extension.value[x]","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","max":"0"}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-DrugTierID-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-DrugTierID-extension.json deleted file mode 100644 index 38cc41a08dc..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-DrugTierID-extension.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-DrugTierID-extension","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension"
    \".\"\".\"\".\" value[x] 1..1(Slice Definition)Value of extension
    Slice: Unordered, Open by type:$this
    \".\"\".\"\".\" valueCodeableConcept 1..1CodeableConceptValue of extension
    Binding: Drug tier of medication in health plan (extensible)

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension","version":"1.0.1","name":"DrugTierID","title":"Drug Tier ID","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"A code that describes the coverage status of a drug in a health plan (e.g., preferred generic, specialty, etc.)","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"closed"},"short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]:valueCodeableConcept","path":"Extension.value[x]","sliceName":"valueCodeableConcept","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"strength":"extensible","valueSet":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS"},"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","slicing":{"discriminator":[{"type":"type","path":"$this"}],"ordered":false,"rules":"open"},"min":1,"type":[{"code":"CodeableConcept"}]},{"id":"Extension.valueCodeableConcept","path":"Extension.valueCodeableConcept","min":1,"max":"1","binding":{"strength":"extensible","valueSet":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS"}}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-EmailPlanContact-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-EmailPlanContact-extension.json deleted file mode 100644 index 2878b59e656..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-EmailPlanContact-extension.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-EmailPlanContact-extension","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension"
    \".\"\".\"\".\" value[x] 1..1stringValue of extension

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension","version":"1.0.1","name":"EmailPlanContact","title":"Email Plan Contact","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"An email address for developers/public to report mistakes in the network and formulary data.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","min":1,"type":[{"code":"string"}]}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-FormularyDrug.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-FormularyDrug.json deleted file mode 100644 index 558dfc66667..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-FormularyDrug.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-FormularyDrug","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" MedicationKnowledge 0..*MedicationKnowledgeDefinition of Medication Knowledge
    \".\"\".\"\".\" extension 2..*ExtensionExtension
    Slice: Unordered, Open by value:url
    \".\"\".\"\".\" usdf-DrugAlternatives-extension 0..*Reference(Formulary Drug)Extension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension
    \".\"\".\"\".\" usdf-PriorAuthorization-extension S0..1booleanExtension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension
    \".\"\".\"\".\" usdf-StepTherapyLimit-extension S0..1booleanExtension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension
    \".\"\".\"\".\" usdf-QuantityLimit-extension S0..1booleanExtension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension
    \".\"\".\"\".\" usdf-PlanID-extension S1..1stringExtension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension
    \".\"\".\"\".\" usdf-DrugTierID-extension S1..1CodeableConceptExtension
    URL: http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension
    Binding: Drug tier of medication in health plan (extensible)
    \".\"\".\"\".\" code 1..1CodeableConceptCode that identifies this medication
    Binding: US Core Medication Codes (RxNorm) (required)

    \"doco\" Documentation for this format
    "},"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-category","valueString":"Clinical.Medications"},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category","valueCode":"business"}],"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug","version":"1.0.1","name":"FormularyDrug","title":"Formulary Drug","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Drug information which is part of a formulary.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"script10.6","uri":"http://ncpdp.org/SCRIPT10_6","name":"Mapping to NCPDP SCRIPT 10.6"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"v2","uri":"http://hl7.org/v2","name":"HL7 v2 Mapping"}],"kind":"resource","abstract":false,"type":"MedicationKnowledge","baseDefinition":"http://hl7.org/fhir/StructureDefinition/MedicationKnowledge","derivation":"constraint","snapshot":{"element":[{"id":"MedicationKnowledge","path":"MedicationKnowledge","short":"Definition of Medication Knowledge","definition":"Information about a medication that is used to support knowledge.","min":0,"max":"*","base":{"path":"MedicationKnowledge","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"rim","map":"Todo"}]},{"id":"MedicationKnowledge.id","path":"MedicationKnowledge.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":0,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"MedicationKnowledge.meta","path":"MedicationKnowledge.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"MedicationKnowledge.implicitRules","path":"MedicationKnowledge.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"MedicationKnowledge.language","path":"MedicationKnowledge.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding","valueBoolean":true}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages"}},{"id":"MedicationKnowledge.text","path":"MedicationKnowledge.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"MedicationKnowledge.contained","path":"MedicationKnowledge.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.extension","path":"MedicationKnowledge.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"ordered":false,"rules":"open"},"short":"Extension","definition":"An Extension","min":2,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.extension:usdf-DrugAlternatives-extension","path":"MedicationKnowledge.extension","sliceName":"usdf-DrugAlternatives-extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"MedicationKnowledge.extension:usdf-PriorAuthorization-extension","path":"MedicationKnowledge.extension","sliceName":"usdf-PriorAuthorization-extension","short":"Extension","definition":"An Extension","min":0,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"mustSupport":true,"isModifier":false},{"id":"MedicationKnowledge.extension:usdf-StepTherapyLimit-extension","path":"MedicationKnowledge.extension","sliceName":"usdf-StepTherapyLimit-extension","short":"Extension","definition":"An Extension","min":0,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"mustSupport":true,"isModifier":false},{"id":"MedicationKnowledge.extension:usdf-QuantityLimit-extension","path":"MedicationKnowledge.extension","sliceName":"usdf-QuantityLimit-extension","short":"Extension","definition":"An Extension","min":0,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"mustSupport":true,"isModifier":false},{"id":"MedicationKnowledge.extension:usdf-PlanID-extension","path":"MedicationKnowledge.extension","sliceName":"usdf-PlanID-extension","short":"Extension","definition":"An Extension","min":1,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"mustSupport":true,"isModifier":false},{"id":"MedicationKnowledge.extension:usdf-DrugTierID-extension","path":"MedicationKnowledge.extension","sliceName":"usdf-DrugTierID-extension","short":"Extension","definition":"An Extension","min":1,"max":"1","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension"]}],"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"mustSupport":true,"isModifier":false},{"id":"MedicationKnowledge.modifierExtension","path":"MedicationKnowledge.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.code","path":"MedicationKnowledge.code","short":"Code that identifies this medication","definition":"A code that specifies this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.","comment":"Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) will have the coding.userSelected set to true. As described in the coding datatype: \"A coding may be marked as a \"userSelected\" if a user selected the particular coded value in a user interface (e.g. the user selects an item in a pick-list). If a user selected coding exists, it is the preferred choice for performing translations etc. Other codes can only be literal translations to alternative code systems, or codes at a lower level of granularity (e.g. a generic code for a vendor-specific primary one).","min":1,"max":"1","base":{"path":"MedicationKnowledge.code","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"strength":"required","valueSet":"http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes"},"mapping":[{"identity":"script10.6","map":"coding.code = //element(*,MedicationType)/DrugCoded/ProductCode\r\rcoding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier\r\rcoding.display = //element(*,MedicationType)/DrugDescription"},{"identity":"w5","map":"FiveWs.class"},{"identity":"v2","map":"RXO-1.1-Requested Give Code.code / RXE-2.1-Give Code.code / RXD-2.1-Dispense/Give Code.code / RXG-4.1-Give Code.code /RXA-5.1-Administered Code.code / RXC-2.1 Component Code"},{"identity":"rim","map":".code"}]},{"id":"MedicationKnowledge.status","path":"MedicationKnowledge.status","short":"active | inactive | entered-in-error","definition":"A code to indicate if the medication is in active use. The status refers to the validity about the information of the medication and not to its medicinal properties.","comment":"This status is intended to identify if the medication in a local system is in active use within a drug database or inventory. For example, a pharmacy system may create a new drug file record for a compounded product \"ABC Hospital Special Cream\" with an active status. At some point in the future, it may be determined that the drug record was created with an error and the status is changed to \"entered in error\". This status is not intended to specify if a medication is part of a particular formulary. It is possible that the drug record may be referenced by multiple formularies or catalogues and each of those entries would have a separate status.","min":0,"max":"1","base":{"path":"MedicationKnowledge.status","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element changes the interpretation of all descriptive attributes.","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationKnowledgeStatus"}],"strength":"required","description":"A coded concept defining if the medication is in active use.","valueSet":"http://hl7.org/fhir/ValueSet/medicationknowledge-status|4.0.1"},"mapping":[{"identity":"rim","map":".statusCode"}]},{"id":"MedicationKnowledge.manufacturer","path":"MedicationKnowledge.manufacturer","short":"Manufacturer of the item","definition":"Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.","min":0,"max":"1","base":{"path":"MedicationKnowledge.manufacturer","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"script10.6","map":"no mapping"},{"identity":"w5","map":"FiveWs.actor"},{"identity":"v2","map":"RXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name"},{"identity":"rim","map":".player.scopingRole[typeCode=MANU].scoper"}]},{"id":"MedicationKnowledge.doseForm","path":"MedicationKnowledge.doseForm","short":"powder | tablets | capsule +","definition":"Describes the form of the item. Powder; tablets; capsule.","comment":"When Medication is referenced from MedicationRequest, this is the ordered form. When Medication is referenced within MedicationDispense, this is the dispensed form. When Medication is referenced within MedicationAdministration, this is administered form.","min":0,"max":"1","base":{"path":"MedicationKnowledge.doseForm","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationForm"}],"strength":"example","description":"A coded concept defining the form of a medication.","valueSet":"http://hl7.org/fhir/ValueSet/medication-form-codes"},"mapping":[{"identity":"script10.6","map":"coding.code = //element(*,DrugCodedType)/FormCode\r\rcoding.system = //element(*,DrugCodedType)/FormSourceCode"},{"identity":"v2","map":"RXO-5-Requested Dosage Form / RXE-6-Give Dosage Form / RXD-6-Actual Dosage Form / RXG-8-Give Dosage Form / RXA-8-Administered Dosage Form"},{"identity":"rim","map":".formCode"}]},{"id":"MedicationKnowledge.amount","path":"MedicationKnowledge.amount","short":"Amount of drug in package","definition":"Specific amount of the drug in the packaged product. For example, when specifying a product that has the same strength (For example, Insulin glargine 100 unit per mL solution for injection), this attribute provides additional clarification of the package amount (For example, 3 mL, 10mL, etc.).","comment":"This is the quantity of medication in a package. To specify the strength of the medication, the Ingredient.strength attribute is used.","min":0,"max":"1","base":{"path":"MedicationKnowledge.amount","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":".quantity"}]},{"id":"MedicationKnowledge.synonym","path":"MedicationKnowledge.synonym","short":"Additional names for a medication","definition":"Additional names for a medication, for example, the name(s) given to a medication in different countries. For example, acetaminophen and paracetamol or salbutamol and albuterol.","min":0,"max":"*","base":{"path":"MedicationKnowledge.synonym","min":0,"max":"*"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"MedicationKnowledge.relatedMedicationKnowledge","path":"MedicationKnowledge.relatedMedicationKnowledge","short":"Associated or related medication information","definition":"Associated or related knowledge about a medication.","min":0,"max":"*","base":{"path":"MedicationKnowledge.relatedMedicationKnowledge","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.relatedMedicationKnowledge.id","path":"MedicationKnowledge.relatedMedicationKnowledge.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.relatedMedicationKnowledge.extension","path":"MedicationKnowledge.relatedMedicationKnowledge.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.relatedMedicationKnowledge.modifierExtension","path":"MedicationKnowledge.relatedMedicationKnowledge.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.relatedMedicationKnowledge.type","path":"MedicationKnowledge.relatedMedicationKnowledge.type","short":"Category of medicationKnowledge","definition":"The category of the associated medication knowledge reference.","min":1,"max":"1","base":{"path":"MedicationKnowledge.relatedMedicationKnowledge.type","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.relatedMedicationKnowledge.reference","path":"MedicationKnowledge.relatedMedicationKnowledge.reference","short":"Associated documentation about the associated medication knowledge","definition":"Associated documentation about the associated medication knowledge.","min":1,"max":"*","base":{"path":"MedicationKnowledge.relatedMedicationKnowledge.reference","min":1,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/MedicationKnowledge"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.associatedMedication","path":"MedicationKnowledge.associatedMedication","short":"A medication resource that is associated with this medication","definition":"Associated or related medications. For example, if the medication is a branded product (e.g. Crestor), this is the Therapeutic Moeity (e.g. Rosuvastatin) or if this is a generic medication (e.g. Rosuvastatin), this would link to a branded product (e.g. Crestor).","min":0,"max":"*","base":{"path":"MedicationKnowledge.associatedMedication","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Medication"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.productType","path":"MedicationKnowledge.productType","short":"Category of the medication or product","definition":"Category of the medication or product (e.g. branded product, therapeutic moeity, generic product, innovator product, etc.).","min":0,"max":"*","base":{"path":"MedicationKnowledge.productType","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.monograph","path":"MedicationKnowledge.monograph","short":"Associated documentation about the medication","definition":"Associated documentation about the medication.","min":0,"max":"*","base":{"path":"MedicationKnowledge.monograph","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.monograph.id","path":"MedicationKnowledge.monograph.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.monograph.extension","path":"MedicationKnowledge.monograph.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.monograph.modifierExtension","path":"MedicationKnowledge.monograph.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.monograph.type","path":"MedicationKnowledge.monograph.type","short":"The category of medication document","definition":"The category of documentation about the medication. (e.g. professional monograph, patient education monograph).","min":0,"max":"1","base":{"path":"MedicationKnowledge.monograph.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.monograph.source","path":"MedicationKnowledge.monograph.source","short":"Associated documentation about the medication","definition":"Associated documentation about the medication.","min":0,"max":"1","base":{"path":"MedicationKnowledge.monograph.source","min":0,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/DocumentReference","http://hl7.org/fhir/StructureDefinition/Media"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.ingredient","path":"MedicationKnowledge.ingredient","short":"Active or inactive ingredient","definition":"Identifies a particular constituent of interest in the product.","min":0,"max":"*","base":{"path":"MedicationKnowledge.ingredient","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.ingredient.id","path":"MedicationKnowledge.ingredient.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.ingredient.extension","path":"MedicationKnowledge.ingredient.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.ingredient.modifierExtension","path":"MedicationKnowledge.ingredient.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.ingredient.item[x]","path":"MedicationKnowledge.ingredient.item[x]","short":"Medication(s) or substance(s) contained in the medication","definition":"The actual ingredient - either a substance (simple ingredient) or another medication.","min":1,"max":"1","base":{"path":"MedicationKnowledge.ingredient.item[x]","min":1,"max":"1"},"type":[{"code":"CodeableConcept"},{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Substance"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"coding.code = //element(*,MedicationType)/DrugCoded/ProductCode\r\rcoding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier\r\rcoding.display = //element(*,MedicationType)/DrugDescription"},{"identity":"v2","map":"RXC-2-Component Code if medication: RXO-1-Requested Give Code / RXE-2-Give Code / RXD-2-Dispense/Give Code / RXG-4-Give Code / RXA-5-Administered Code"},{"identity":"rim","map":".player"}]},{"id":"MedicationKnowledge.ingredient.isActive","path":"MedicationKnowledge.ingredient.isActive","short":"Active ingredient indicator","definition":"Indication of whether this ingredient affects the therapeutic action of the drug.","requirements":"True indicates that the ingredient affects the therapeutic action of the drug (i.e. active). \rFalse indicates that the ingredient does not affect the therapeutic action of the drug (i.e. inactive).","min":0,"max":"1","base":{"path":"MedicationKnowledge.ingredient.isActive","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"NA"}]},{"id":"MedicationKnowledge.ingredient.strength","path":"MedicationKnowledge.ingredient.strength","short":"Quantity of ingredient present","definition":"Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet. This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet.","min":0,"max":"1","base":{"path":"MedicationKnowledge.ingredient.strength","min":0,"max":"1"},"type":[{"code":"Ratio"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"script10.6","map":"//element(*,DrugCodedType)/Strength"},{"identity":"v2","map":"RXC-3-Component Amount & RXC-4-Component Units if medication: RXO-2-Requested Give Amount - Minimum & RXO-4-Requested Give Units / RXO-3-Requested Give Amount - Maximum & RXO-4-Requested Give Units / RXO-11-Requested Dispense Amount & RXO-12-Requested Dispense Units / RXE-3-Give Amount - Minimum & RXE-5-Give Units / RXE-4-Give Amount - Maximum & RXE-5-Give Units / RXE-10-Dispense Amount & RXE-10-Dispense Units"},{"identity":"rim","map":".quantity"}]},{"id":"MedicationKnowledge.preparationInstruction","path":"MedicationKnowledge.preparationInstruction","short":"The instructions for preparing the medication","definition":"The instructions for preparing the medication.","min":0,"max":"1","base":{"path":"MedicationKnowledge.preparationInstruction","min":0,"max":"1"},"type":[{"code":"markdown"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.intendedRoute","path":"MedicationKnowledge.intendedRoute","short":"The intended or approved route of administration","definition":"The intended or approved route of administration.","min":0,"max":"*","base":{"path":"MedicationKnowledge.intendedRoute","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationRoute"}],"strength":"example","description":"A coded concept defining the intended route of administration.","valueSet":"http://hl7.org/fhir/ValueSet/route-codes"}},{"id":"MedicationKnowledge.cost","path":"MedicationKnowledge.cost","short":"The pricing of the medication","definition":"The price of the medication.","min":0,"max":"*","base":{"path":"MedicationKnowledge.cost","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.cost.id","path":"MedicationKnowledge.cost.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.cost.extension","path":"MedicationKnowledge.cost.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.cost.modifierExtension","path":"MedicationKnowledge.cost.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.cost.type","path":"MedicationKnowledge.cost.type","short":"The category of the cost information","definition":"The category of the cost information. For example, manufacturers' cost, patient cost, claim reimbursement cost, actual acquisition cost.","min":1,"max":"1","base":{"path":"MedicationKnowledge.cost.type","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.cost.source","path":"MedicationKnowledge.cost.source","short":"The source or owner for the price information","definition":"The source or owner that assigns the price to the medication.","min":0,"max":"1","base":{"path":"MedicationKnowledge.cost.source","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.cost.cost","path":"MedicationKnowledge.cost.cost","short":"The price of the medication","definition":"The price of the medication.","min":1,"max":"1","base":{"path":"MedicationKnowledge.cost.cost","min":1,"max":"1"},"type":[{"code":"Money"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.monitoringProgram","path":"MedicationKnowledge.monitoringProgram","short":"Program under which a medication is reviewed","definition":"The program under which the medication is reviewed.","min":0,"max":"*","base":{"path":"MedicationKnowledge.monitoringProgram","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.monitoringProgram.id","path":"MedicationKnowledge.monitoringProgram.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.monitoringProgram.extension","path":"MedicationKnowledge.monitoringProgram.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.monitoringProgram.modifierExtension","path":"MedicationKnowledge.monitoringProgram.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.monitoringProgram.type","path":"MedicationKnowledge.monitoringProgram.type","short":"Type of program under which the medication is monitored","definition":"Type of program under which the medication is monitored.","min":0,"max":"1","base":{"path":"MedicationKnowledge.monitoringProgram.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.monitoringProgram.name","path":"MedicationKnowledge.monitoringProgram.name","short":"Name of the reviewing program","definition":"Name of the reviewing program.","min":0,"max":"1","base":{"path":"MedicationKnowledge.monitoringProgram.name","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.administrationGuidelines","path":"MedicationKnowledge.administrationGuidelines","short":"Guidelines for administration of the medication","definition":"Guidelines for the administration of the medication.","min":0,"max":"*","base":{"path":"MedicationKnowledge.administrationGuidelines","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.administrationGuidelines.id","path":"MedicationKnowledge.administrationGuidelines.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.administrationGuidelines.extension","path":"MedicationKnowledge.administrationGuidelines.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.administrationGuidelines.modifierExtension","path":"MedicationKnowledge.administrationGuidelines.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.administrationGuidelines.dosage","path":"MedicationKnowledge.administrationGuidelines.dosage","short":"Dosage for the medication for the specific guidelines","definition":"Dosage for the medication for the specific guidelines.","min":0,"max":"*","base":{"path":"MedicationKnowledge.administrationGuidelines.dosage","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.administrationGuidelines.dosage.id","path":"MedicationKnowledge.administrationGuidelines.dosage.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.administrationGuidelines.dosage.extension","path":"MedicationKnowledge.administrationGuidelines.dosage.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.administrationGuidelines.dosage.modifierExtension","path":"MedicationKnowledge.administrationGuidelines.dosage.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.administrationGuidelines.dosage.type","path":"MedicationKnowledge.administrationGuidelines.dosage.type","short":"Type of dosage","definition":"The type of dosage (for example, prophylaxis, maintenance, therapeutic, etc.).","min":1,"max":"1","base":{"path":"MedicationKnowledge.administrationGuidelines.dosage.type","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.administrationGuidelines.dosage.dosage","path":"MedicationKnowledge.administrationGuidelines.dosage.dosage","short":"Dosage for the medication for the specific guidelines","definition":"Dosage for the medication for the specific guidelines.","min":1,"max":"*","base":{"path":"MedicationKnowledge.administrationGuidelines.dosage.dosage","min":1,"max":"*"},"type":[{"code":"Dosage"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.administrationGuidelines.indication[x]","path":"MedicationKnowledge.administrationGuidelines.indication[x]","short":"Indication for use that apply to the specific administration guidelines","definition":"Indication for use that apply to the specific administration guidelines.","min":0,"max":"1","base":{"path":"MedicationKnowledge.administrationGuidelines.indication[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"},{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/ObservationDefinition"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.administrationGuidelines.patientCharacteristics","path":"MedicationKnowledge.administrationGuidelines.patientCharacteristics","short":"Characteristics of the patient that are relevant to the administration guidelines","definition":"Characteristics of the patient that are relevant to the administration guidelines (for example, height, weight, gender, etc.).","min":0,"max":"*","base":{"path":"MedicationKnowledge.administrationGuidelines.patientCharacteristics","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.administrationGuidelines.patientCharacteristics.id","path":"MedicationKnowledge.administrationGuidelines.patientCharacteristics.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.administrationGuidelines.patientCharacteristics.extension","path":"MedicationKnowledge.administrationGuidelines.patientCharacteristics.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.administrationGuidelines.patientCharacteristics.modifierExtension","path":"MedicationKnowledge.administrationGuidelines.patientCharacteristics.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]","path":"MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]","short":"Specific characteristic that is relevant to the administration guideline","definition":"Specific characteristic that is relevant to the administration guideline (e.g. height, weight, gender).","min":1,"max":"1","base":{"path":"MedicationKnowledge.administrationGuidelines.patientCharacteristics.characteristic[x]","min":1,"max":"1"},"type":[{"code":"CodeableConcept"},{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.administrationGuidelines.patientCharacteristics.value","path":"MedicationKnowledge.administrationGuidelines.patientCharacteristics.value","short":"The specific characteristic","definition":"The specific characteristic (e.g. height, weight, gender, etc.).","min":0,"max":"*","base":{"path":"MedicationKnowledge.administrationGuidelines.patientCharacteristics.value","min":0,"max":"*"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.medicineClassification","path":"MedicationKnowledge.medicineClassification","short":"Categorization of the medication within a formulary or classification system","definition":"Categorization of the medication within a formulary or classification system.","min":0,"max":"*","base":{"path":"MedicationKnowledge.medicineClassification","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.medicineClassification.id","path":"MedicationKnowledge.medicineClassification.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.medicineClassification.extension","path":"MedicationKnowledge.medicineClassification.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.medicineClassification.modifierExtension","path":"MedicationKnowledge.medicineClassification.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.medicineClassification.type","path":"MedicationKnowledge.medicineClassification.type","short":"The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification)","definition":"The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification).","min":1,"max":"1","base":{"path":"MedicationKnowledge.medicineClassification.type","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.medicineClassification.classification","path":"MedicationKnowledge.medicineClassification.classification","short":"Specific category assigned to the medication","definition":"Specific category assigned to the medication (e.g. anti-infective, anti-hypertensive, antibiotic, etc.).","min":0,"max":"*","base":{"path":"MedicationKnowledge.medicineClassification.classification","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.packaging","path":"MedicationKnowledge.packaging","short":"Details about packaged medications","definition":"Information that only applies to packages (not products).","min":0,"max":"1","base":{"path":"MedicationKnowledge.packaging","min":0,"max":"1"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.packaging.id","path":"MedicationKnowledge.packaging.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.packaging.extension","path":"MedicationKnowledge.packaging.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.packaging.modifierExtension","path":"MedicationKnowledge.packaging.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.packaging.type","path":"MedicationKnowledge.packaging.type","short":"A code that defines the specific type of packaging that the medication can be found in","definition":"A code that defines the specific type of packaging that the medication can be found in (e.g. blister sleeve, tube, bottle).","min":0,"max":"1","base":{"path":"MedicationKnowledge.packaging.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationPackageType"}],"strength":"example","description":"A coded concept defining the type of packaging of a medication.","valueSet":"http://hl7.org/fhir/ValueSet/medicationknowledge-package-type"}},{"id":"MedicationKnowledge.packaging.quantity","path":"MedicationKnowledge.packaging.quantity","short":"The number of product units the package would contain if fully loaded","definition":"The number of product units the package would contain if fully loaded.","min":0,"max":"1","base":{"path":"MedicationKnowledge.packaging.quantity","min":0,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.drugCharacteristic","path":"MedicationKnowledge.drugCharacteristic","short":"Specifies descriptive properties of the medicine","definition":"Specifies descriptive properties of the medicine, such as color, shape, imprints, etc.","min":0,"max":"*","base":{"path":"MedicationKnowledge.drugCharacteristic","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.drugCharacteristic.id","path":"MedicationKnowledge.drugCharacteristic.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.drugCharacteristic.extension","path":"MedicationKnowledge.drugCharacteristic.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.drugCharacteristic.modifierExtension","path":"MedicationKnowledge.drugCharacteristic.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.drugCharacteristic.type","path":"MedicationKnowledge.drugCharacteristic.type","short":"Code specifying the type of characteristic of medication","definition":"A code specifying which characteristic of the medicine is being described (for example, colour, shape, imprint).","min":0,"max":"1","base":{"path":"MedicationKnowledge.drugCharacteristic.type","min":0,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"MedicationCharacteristic"}],"strength":"example","description":"A coded concept defining the characteristic types of a medication.","valueSet":"http://hl7.org/fhir/ValueSet/medicationknowledge-characteristic"}},{"id":"MedicationKnowledge.drugCharacteristic.value[x]","path":"MedicationKnowledge.drugCharacteristic.value[x]","short":"Description of the characteristic","definition":"Description of the characteristic.","comment":"The description should be provided as a CodeableConcept, SimpleQuantity or an image. The description can be a string only when these others are not available.","min":0,"max":"1","base":{"path":"MedicationKnowledge.drugCharacteristic.value[x]","min":0,"max":"1"},"type":[{"code":"CodeableConcept"},{"code":"string"},{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]},{"code":"base64Binary"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.contraindication","path":"MedicationKnowledge.contraindication","short":"Potential clinical issue with or between medication(s)","definition":"Potential clinical issue with or between medication(s) (for example, drug-drug interaction, drug-disease contraindication, drug-allergy interaction, etc.).","min":0,"max":"*","base":{"path":"MedicationKnowledge.contraindication","min":0,"max":"*"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/DetectedIssue"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.regulatory","path":"MedicationKnowledge.regulatory","short":"Regulatory information about a medication","definition":"Regulatory information about a medication.","min":0,"max":"*","base":{"path":"MedicationKnowledge.regulatory","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.regulatory.id","path":"MedicationKnowledge.regulatory.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.regulatory.extension","path":"MedicationKnowledge.regulatory.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.regulatory.modifierExtension","path":"MedicationKnowledge.regulatory.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.regulatory.regulatoryAuthority","path":"MedicationKnowledge.regulatory.regulatoryAuthority","short":"Specifies the authority of the regulation","definition":"The authority that is specifying the regulations.","min":1,"max":"1","base":{"path":"MedicationKnowledge.regulatory.regulatoryAuthority","min":1,"max":"1"},"type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Organization"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.regulatory.substitution","path":"MedicationKnowledge.regulatory.substitution","short":"Specifies if changes are allowed when dispensing a medication from a regulatory perspective","definition":"Specifies if changes are allowed when dispensing a medication from a regulatory perspective.","min":0,"max":"*","base":{"path":"MedicationKnowledge.regulatory.substitution","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.regulatory.substitution.id","path":"MedicationKnowledge.regulatory.substitution.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.regulatory.substitution.extension","path":"MedicationKnowledge.regulatory.substitution.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.regulatory.substitution.modifierExtension","path":"MedicationKnowledge.regulatory.substitution.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.regulatory.substitution.type","path":"MedicationKnowledge.regulatory.substitution.type","short":"Specifies the type of substitution allowed","definition":"Specifies the type of substitution allowed.","min":1,"max":"1","base":{"path":"MedicationKnowledge.regulatory.substitution.type","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.regulatory.substitution.allowed","path":"MedicationKnowledge.regulatory.substitution.allowed","short":"Specifies if regulation allows for changes in the medication when dispensing","definition":"Specifies if regulation allows for changes in the medication when dispensing.","min":1,"max":"1","base":{"path":"MedicationKnowledge.regulatory.substitution.allowed","min":1,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.regulatory.schedule","path":"MedicationKnowledge.regulatory.schedule","short":"Specifies the schedule of a medication in jurisdiction","definition":"Specifies the schedule of a medication in jurisdiction.","min":0,"max":"*","base":{"path":"MedicationKnowledge.regulatory.schedule","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.regulatory.schedule.id","path":"MedicationKnowledge.regulatory.schedule.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.regulatory.schedule.extension","path":"MedicationKnowledge.regulatory.schedule.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.regulatory.schedule.modifierExtension","path":"MedicationKnowledge.regulatory.schedule.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.regulatory.schedule.schedule","path":"MedicationKnowledge.regulatory.schedule.schedule","short":"Specifies the specific drug schedule","definition":"Specifies the specific drug schedule.","min":1,"max":"1","base":{"path":"MedicationKnowledge.regulatory.schedule.schedule","min":1,"max":"1"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.regulatory.maxDispense","path":"MedicationKnowledge.regulatory.maxDispense","short":"The maximum number of units of the medication that can be dispensed in a period","definition":"The maximum number of units of the medication that can be dispensed in a period.","min":0,"max":"1","base":{"path":"MedicationKnowledge.regulatory.maxDispense","min":0,"max":"1"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.regulatory.maxDispense.id","path":"MedicationKnowledge.regulatory.maxDispense.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.regulatory.maxDispense.extension","path":"MedicationKnowledge.regulatory.maxDispense.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.regulatory.maxDispense.modifierExtension","path":"MedicationKnowledge.regulatory.maxDispense.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.regulatory.maxDispense.quantity","path":"MedicationKnowledge.regulatory.maxDispense.quantity","short":"The maximum number of units of the medication that can be dispensed","definition":"The maximum number of units of the medication that can be dispensed.","min":1,"max":"1","base":{"path":"MedicationKnowledge.regulatory.maxDispense.quantity","min":1,"max":"1"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.regulatory.maxDispense.period","path":"MedicationKnowledge.regulatory.maxDispense.period","short":"The period that applies to the maximum number of units","definition":"The period that applies to the maximum number of units.","min":0,"max":"1","base":{"path":"MedicationKnowledge.regulatory.maxDispense.period","min":0,"max":"1"},"type":[{"code":"Duration"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.kinetics","path":"MedicationKnowledge.kinetics","short":"The time course of drug absorption, distribution, metabolism and excretion of a medication from the body","definition":"The time course of drug absorption, distribution, metabolism and excretion of a medication from the body.","min":0,"max":"*","base":{"path":"MedicationKnowledge.kinetics","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.kinetics.id","path":"MedicationKnowledge.kinetics.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.kinetics.extension","path":"MedicationKnowledge.kinetics.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"MedicationKnowledge.kinetics.modifierExtension","path":"MedicationKnowledge.kinetics.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"MedicationKnowledge.kinetics.areaUnderCurve","path":"MedicationKnowledge.kinetics.areaUnderCurve","short":"The drug concentration measured at certain discrete points in time","definition":"The drug concentration measured at certain discrete points in time.","min":0,"max":"*","base":{"path":"MedicationKnowledge.kinetics.areaUnderCurve","min":0,"max":"*"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.kinetics.lethalDose50","path":"MedicationKnowledge.kinetics.lethalDose50","short":"The median lethal dose of a drug","definition":"The median lethal dose of a drug.","min":0,"max":"*","base":{"path":"MedicationKnowledge.kinetics.lethalDose50","min":0,"max":"*"},"type":[{"code":"Quantity","profile":["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"]}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"MedicationKnowledge.kinetics.halfLifePeriod","path":"MedicationKnowledge.kinetics.halfLifePeriod","short":"Time required for concentration in the body to decrease by half","definition":"The time required for any specified property (e.g., the concentration of a substance in the body) to decrease by half.","min":0,"max":"1","base":{"path":"MedicationKnowledge.kinetics.halfLifePeriod","min":0,"max":"1"},"type":[{"code":"Duration"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false}]},"differential":{"element":[{"id":"MedicationKnowledge","path":"MedicationKnowledge"},{"id":"MedicationKnowledge.extension","path":"MedicationKnowledge.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"ordered":false,"rules":"open"},"min":2},{"id":"MedicationKnowledge.extension:usdf-DrugAlternatives-extension","path":"MedicationKnowledge.extension","sliceName":"usdf-DrugAlternatives-extension","min":0,"max":"*","type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension"]}]},{"id":"MedicationKnowledge.extension:usdf-PriorAuthorization-extension","path":"MedicationKnowledge.extension","sliceName":"usdf-PriorAuthorization-extension","min":0,"max":"1","type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension"]}],"mustSupport":true},{"id":"MedicationKnowledge.extension:usdf-StepTherapyLimit-extension","path":"MedicationKnowledge.extension","sliceName":"usdf-StepTherapyLimit-extension","min":0,"max":"1","type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension"]}],"mustSupport":true},{"id":"MedicationKnowledge.extension:usdf-QuantityLimit-extension","path":"MedicationKnowledge.extension","sliceName":"usdf-QuantityLimit-extension","min":0,"max":"1","type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension"]}],"mustSupport":true},{"id":"MedicationKnowledge.extension:usdf-PlanID-extension","path":"MedicationKnowledge.extension","sliceName":"usdf-PlanID-extension","min":1,"max":"1","type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension"]}],"mustSupport":true},{"id":"MedicationKnowledge.extension:usdf-DrugTierID-extension","path":"MedicationKnowledge.extension","sliceName":"usdf-DrugTierID-extension","min":1,"max":"1","type":[{"code":"Extension","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension"]}],"mustSupport":true},{"id":"MedicationKnowledge.code","path":"MedicationKnowledge.code","min":1,"binding":{"strength":"required","valueSet":"http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes"}}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-FormularyURL-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-FormularyURL-extension.json deleted file mode 100644 index 4393ef4b18a..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-FormularyURL-extension.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-FormularyURL-extension","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension"
    \".\"\".\"\".\" value[x] 1..1stringValue of extension

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension","version":"1.0.1","name":"FormularyURL","title":"Formulary URL","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"The URL that goes directly to the formulary brochure for the specific standard plan or plan variation.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","min":1,"type":[{"code":"string"}]}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-MarketingURL-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-MarketingURL-extension.json deleted file mode 100644 index be1b421d948..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-MarketingURL-extension.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-MarketingURL-extension","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension"
    \".\"\".\"\".\" value[x] 1..1stringValue of extension

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension","version":"1.0.1","name":"MarketingURL","title":"Marketing URL","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"The URL that goes directly to the plan brochure for the specific standard plan or plan variation.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","min":1,"type":[{"code":"string"}]}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-Network-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-Network-extension.json deleted file mode 100644 index d62ef2b885e..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-Network-extension.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-Network-extension","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension"
    \".\"\".\"\".\" value[x] 1..1stringValue of extension

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension","version":"1.0.1","name":"Network","title":"Network","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Array of Networks within a plan.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","min":1,"type":[{"code":"string"}]}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-PlanID-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-PlanID-extension.json deleted file mode 100644 index ca0804f4ad2..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-PlanID-extension.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-PlanID-extension","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension"
    \".\"\".\"\".\" value[x] 1..1stringValue of extension

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension","version":"1.0.1","name":"PlanID","title":"Plan ID","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Unique, 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.)","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","min":1,"type":[{"code":"string"}]}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-PlanIDType-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-PlanIDType-extension.json deleted file mode 100644 index 509f556f0b0..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-PlanIDType-extension.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-PlanIDType-extension","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension"
    \".\"\".\"\".\" value[x] 1..1stringValue of extension

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension","version":"1.0.1","name":"PlanIDType","title":"Plan ID Type","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Type of Plan ID. For all Marketplace plans this should be: HIOS-PLAN-ID","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","min":1,"type":[{"code":"string"}]}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-PriorAuthorization-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-PriorAuthorization-extension.json deleted file mode 100644 index d7c123976ad..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-PriorAuthorization-extension.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-PriorAuthorization-extension","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension"
    \".\"\".\"\".\" value[x] 1..1booleanValue of extension

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension","version":"1.0.1","name":"PriorAuthorization","title":"Prior Authorization","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"A Boolean indication of whether the coverage plan imposes a prior authorization requirement on this drug.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","min":1,"type":[{"code":"boolean"}]}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-QuantityLimit-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-QuantityLimit-extension.json deleted file mode 100644 index 81752149614..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-QuantityLimit-extension.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-QuantityLimit-extension","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension"
    \".\"\".\"\".\" value[x] 1..1booleanValue of extension

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension","version":"1.0.1","name":"QuantityLimit","title":"Quantity Limit","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"A Boolean indication of whether the coverage plan imposes a quantity limit on this drug.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","min":1,"type":[{"code":"boolean"}]}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-StepTherapyLimit-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-StepTherapyLimit-extension.json deleted file mode 100644 index 713102b1e81..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-StepTherapyLimit-extension.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-StepTherapyLimit-extension","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension"
    \".\"\".\"\".\" value[x] 1..1booleanValue of extension

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension","version":"1.0.1","name":"StepTherapyLimit","title":"Step Therapy Limit","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"A Boolean indication of whether the coverage plan imposes a step therapy limit on this drug.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","min":1,"type":[{"code":"boolean"}]}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-SummaryURL-extension.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-SummaryURL-extension.json deleted file mode 100644 index a89cae7e380..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/StructureDefinition-usdf-SummaryURL-extension.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"StructureDefinition","id":"usdf-SummaryURL-extension","text":{"status":"extensions","div":"
    \r\n\r\n\r\n\r\n
    NameFlagsCard.TypeDescription & Constraints\"doco\"
    \".\"\".\" Extension 0..*ExtensionExtension
    \".\"\".\"\".\" extension 0..0
    \".\"\".\"\".\" url 1..1uri"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension"
    \".\"\".\"\".\" value[x] 1..1stringValue of extension

    \"doco\" Documentation for this format
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension","version":"1.0.1","name":"SummaryURL","title":"Summary URL","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"The URL that goes directly to the formulary brochure for the specific standard plan or plan variation.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"}],"kind":"complex-type","abstract":false,"context":[{"type":"element","expression":"Element"}],"type":"Extension","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","derivation":"constraint","snapshot":{"element":[{"id":"Extension","path":"Extension","short":"Extension","definition":"An Extension","min":0,"max":"*","base":{"path":"Extension","min":0,"max":"*"},"condition":["ele-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false},{"id":"Extension.id","path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"Extension.extension","path":"Extension.extension","slicing":{"discriminator":[{"type":"value","path":"url"}],"description":"Extensions are always sliced by (at least) url","rules":"open"},"short":"Extension","definition":"An Extension","min":0,"max":"0","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false},{"id":"Extension.url","path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","definition":"Source of the definition for the extension code - a logical name or a URL.","comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","min":1,"max":"1","base":{"path":"Extension.url","min":1,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}],"code":"http://hl7.org/fhirpath/System.String"}],"fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"Extension.value[x]","path":"Extension.value[x]","short":"Value of extension","definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).","min":1,"max":"1","base":{"path":"Extension.value[x]","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]}]},"differential":{"element":[{"id":"Extension","path":"Extension"},{"id":"Extension.extension","path":"Extension.extension","max":"0"},{"id":"Extension.url","path":"Extension.url","fixedUri":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension"},{"id":"Extension.value[x]","path":"Extension.value[x]","min":1,"type":[{"code":"string"}]}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ValueSet-CoinsuranceOptionVS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ValueSet-CoinsuranceOptionVS.json deleted file mode 100644 index 15a8ab344df..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ValueSet-CoinsuranceOptionVS.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"ValueSet","id":"CoinsuranceOptionVS","text":{"status":"generated","div":""},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CoinsuranceOptionVS","version":"1.0.1","name":"CoinsuranceOptionVS","title":"Qualifier for coinsurance rate","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Qualifier for coinsurance rate","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"compose":{"include":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS"}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ValueSet-CopayOptionVS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ValueSet-CopayOptionVS.json deleted file mode 100644 index 9dd571efc57..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ValueSet-CopayOptionVS.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"ValueSet","id":"CopayOptionVS","text":{"status":"generated","div":""},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/CopayOptionVS","version":"1.0.1","name":"CopayOptionVS","title":"Qualifier of copay amount","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Qualifier of copay amount","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"compose":{"include":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS"}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ValueSet-DrugTierVS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ValueSet-DrugTierVS.json deleted file mode 100644 index c6dfdbd5cde..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ValueSet-DrugTierVS.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"ValueSet","id":"DrugTierVS","text":{"status":"generated","div":""},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/DrugTierVS","version":"1.0.1","name":"DrugTierVS","title":"Drug tier of medication in health plan","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"The drug tier of a particular medication in a health plan. The base set are examples. Each plan may have its own controlled vocabulary.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"compose":{"include":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS"}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ValueSet-PharmacyTypeVS.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ValueSet-PharmacyTypeVS.json deleted file mode 100644 index c77e6400234..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ValueSet-PharmacyTypeVS.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"ValueSet","id":"PharmacyTypeVS","text":{"status":"generated","div":""},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/ValueSet/PharmacyTypeVS","version":"1.0.1","name":"PharmacyTypeVS","title":"Type of pharmacies","status":"active","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Types of pharmacies. Each payer will have its own controlled vocabulary.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"compose":{"include":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS"}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ig-r4.json b/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ig-r4.json deleted file mode 100644 index 5fa606f92be..00000000000 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/ig-r4.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"ImplementationGuide","id":"hl7.fhir.us.davinci-drug-formulary","text":{"status":"extensions","div":"

    Formulary

    The official URL for this implementation guide is:

    http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary

    Da Vinci Payer Data Exchange (PDex) US Drug Formulary STU 1

    \n
    "},"url":"http://hl7.org/fhir/us/davinci-drug-formulary/ImplementationGuide/hl7.fhir.us.davinci-drug-formulary","version":"1.0.1","name":"Formulary","status":"draft","date":"2020-11-20T19:06:24+00:00","publisher":"HL7 Pharmacy Working Group","contact":[{"name":"HL7 Pharmacy Working Group","telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/medication/"},{"system":"email","value":"pharmacy@lists.HL7.org"}]}],"description":"Da Vinci Payer Data Exchange (PDex) US Drug Formulary STU 1","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US"}]}],"packageId":"hl7.fhir.us.davinci-drug-formulary","license":"CC0-1.0","fhirVersion":["4.0.1"],"dependsOn":[{"id":"hl7_fhir_us_core","uri":"http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core","packageId":"hl7.fhir.us.core","version":"3.1.1"}],"definition":{"resource":[{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:resource"}],"reference":{"reference":"StructureDefinition/usdf-CoveragePlan"},"name":"Formulary Coverage Plan","description":"A health plan which contains links to administrative information, a list of formulary drugs covered under that plan, and a definition of drug tiers and their associated cost-sharing models.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:resource"}],"reference":{"reference":"StructureDefinition/usdf-FormularyDrug"},"name":"Formulary Drug","description":"Drug information which is part of a formulary.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-DrugAlternatives-extension"},"name":"Drug Alternatives","description":"Generic or Branded Drugs included within the CoveragePlan's formulary that could be prescribed as alternatives to the current FormularyDrug.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-DrugTierDefinition-extension"},"name":"Drug Tier Definition","description":"A description of the drug tiers used by the formulary and how those tiers implement copay and coinsurance amounts. Drug tiers do not have any inherent meaning that is consistent across all formularies. Rather, each tier is defined using this element.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-DrugTierID-extension"},"name":"Drug Tier ID","description":"A code that describes the coverage status of a drug in a health plan (e.g., preferred generic, specialty, etc.)","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-EmailPlanContact-extension"},"name":"Email Plan Contact","description":"An email address for developers/public to report mistakes in the network and formulary data.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-FormularyURL-extension"},"name":"Formulary URL","description":"The URL that goes directly to the formulary brochure for the specific standard plan or plan variation.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-MarketingURL-extension"},"name":"Marketing URL","description":"The URL that goes directly to the plan brochure for the specific standard plan or plan variation.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-Network-extension"},"name":"Network","description":"Array of Networks within a plan.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-PlanID-extension"},"name":"Plan ID","description":"Unique, 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.)","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-PlanIDType-extension"},"name":"Plan ID Type","description":"Type of Plan ID. For all Marketplace plans this should be: HIOS-PLAN-ID","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-PriorAuthorization-extension"},"name":"Prior Authorization","description":"A Boolean indication of whether the coverage plan imposes a prior authorization requirement on this drug.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-QuantityLimit-extension"},"name":"Quantity Limit","description":"A Boolean indication of whether the coverage plan imposes a quantity limit on this drug.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-StepTherapyLimit-extension"},"name":"Step Therapy Limit","description":"A Boolean indication of whether the coverage plan imposes a step therapy limit on this drug.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"StructureDefinition:extension"}],"reference":{"reference":"StructureDefinition/usdf-SummaryURL-extension"},"name":"Summary URL","description":"The URL that goes directly to the formulary brochure for the specific standard plan or plan variation.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"ValueSet"}],"reference":{"reference":"ValueSet/CoinsuranceOptionVS"},"name":"Qualifier for coinsurance rate","description":"Qualifier for coinsurance rate","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"ValueSet"}],"reference":{"reference":"ValueSet/CopayOptionVS"},"name":"Qualifier of copay amount","description":"Qualifier of copay amount","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"ValueSet"}],"reference":{"reference":"ValueSet/DrugTierVS"},"name":"Drug tier of medication in health plan","description":"The drug tier of a particular medication in a health plan. The base set are examples. Each plan may have its own controlled vocabulary.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"ValueSet"}],"reference":{"reference":"ValueSet/PharmacyTypeVS"},"name":"Type of pharmacies","description":"Types of pharmacies. Each payer will have its own controlled vocabulary.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"CodeSystem"}],"reference":{"reference":"CodeSystem/usdf-CoinsuranceOptionCS"},"name":"Code for qualifier for coinsurance rate","description":"Code for qualifier for coinsurance rate","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"CodeSystem"}],"reference":{"reference":"CodeSystem/usdf-CopayOptionCS"},"name":"Codes for qualifier of copay amount","description":"Codes for qualifier of copay amount","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"CodeSystem"}],"reference":{"reference":"CodeSystem/usdf-DrugTierCS"},"name":"Codes for medication drug tiers in health plans","description":"Codes to represent the drug tier of a particular medication in a health plan. Base set are examples. Each plan may have its own controlled vocabulary.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"CodeSystem"}],"reference":{"reference":"CodeSystem/usdf-PharmacyTypeCS"},"name":"Codes for types of pharmacies","description":"Codes for types of Pharmacies. Each payer will have its own controlled vocabulary.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"CapabilityStatement"}],"reference":{"reference":"CapabilityStatement/usdf-server"},"name":"usdf-server CapabilityStatement","description":"This Section describes the expected capabilities of the US Drug Formulary Server actor which is responsible for providing responses to the queries submitted by the US Drug Formulary Requestors. The complete list of FHIR profiles, RESTful operations, and search parameters supported by US Drug Formulary Server are defined.","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"SearchParameter"}],"reference":{"reference":"SearchParameter/DrugName"},"name":"DrugName","description":"Accesses the Descriptive Name of a FormularyDrug","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"SearchParameter"}],"reference":{"reference":"SearchParameter/DrugPlan"},"name":"DrugPlan","description":"Accesses the DrugPlan ID of a FormularyDrug","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"SearchParameter"}],"reference":{"reference":"SearchParameter/DrugTier"},"name":"DrugTier","description":"Accesses the DrugTier ID of a FormularyDrug","exampleBoolean":false},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"List"}],"reference":{"reference":"List/covplanV1002"},"name":"Coverage Plan V1002","description":"Sample Gold Health Plan","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"List"}],"reference":{"reference":"List/CoveragePlanV3001"},"name":"Coverage Plan V3001","description":"Sample Gold Health Plan","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"List"}],"reference":{"reference":"List/CoveragePlanV3002"},"name":"Coverage Plan V3002","description":"Sample Gold Health Plan","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"List"}],"reference":{"reference":"List/CoveragePlanV3004t"},"name":"Coverage Plan V3004t","description":"BluePreferred PPO HSA Silver $3,000","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"MedicationKnowledge"}],"reference":{"reference":"MedicationKnowledge/formularydrugV1002"},"name":"Formulary Drug V1002","description":"Percocet 5 MG / 325 MG Oral Tablet","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"MedicationKnowledge"}],"reference":{"reference":"MedicationKnowledge/FormularyDrugV3001"},"name":"Formulary Drug V3001","description":"Percocet 5 MG / 325 MG Oral Tablet","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"MedicationKnowledge"}],"reference":{"reference":"MedicationKnowledge/FormularyDrugV3002"},"name":"Formulary Drug V3002","description":"Tylenol Extra Strength 500 MG Oral Tablet","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"},{"extension":[{"url":"http://hl7.org/fhir/tools/StructureDefinition/resource-information","valueString":"MedicationKnowledge"}],"reference":{"reference":"MedicationKnowledge/cmsip9"},"name":"Formulary Drug cmsip9","description":"Doxepin HCl 5 % Topical Cream","exampleCanonical":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"}],"page":{"nameUrl":"toc.html","title":"Table of Contents","generation":"html","page":[{"nameUrl":"index.html","title":"Home","generation":"markdown"},{"nameUrl":"profiles.html","title":"Profiles","generation":"markdown"},{"nameUrl":"examples.html","title":"Examples","generation":"html"},{"nameUrl":"4_downloads.html","title":"Downloads","generation":"markdown"},{"nameUrl":"1-implementation.html","title":"1 Implementation","generation":"markdown"},{"nameUrl":"downloads.html","title":"Downloads","generation":"markdown"}]},"parameter":[{"code":"path-resource","value":"input/capabilities"},{"code":"path-resource","value":"input/examples"},{"code":"path-resource","value":"input/extensions"},{"code":"path-resource","value":"input/models"},{"code":"path-resource","value":"input/operations"},{"code":"path-resource","value":"input/profiles"},{"code":"path-resource","value":"input/resources"},{"code":"path-resource","value":"input/vocabulary"},{"code":"path-resource","value":"input/maps"},{"code":"path-resource","value":"input/testing"},{"code":"path-resource","value":"input/history"},{"code":"path-resource","value":"fsh-generated/resources"},{"code":"path-pages","value":"template/config"},{"code":"path-pages","value":"input/images"},{"code":"path-tx-cache","value":"input-cache/txcache"}]}} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/test/ConstraintGeneratorTest.java b/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/test/ConstraintGeneratorTest.java index 9680f39077b..9ea24c626d0 100644 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/test/ConstraintGeneratorTest.java +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/test/ConstraintGeneratorTest.java @@ -10,7 +10,7 @@ import org.testng.annotations.Test; -import com.ibm.fhir.ig.davinci.pdex.formulary.FormularyResourceProvider; +import com.ibm.fhir.ig.davinci.pdex.formulary.Formulary101ResourceProvider; import com.ibm.fhir.model.annotation.Constraint; import com.ibm.fhir.model.resource.StructureDefinition; import com.ibm.fhir.model.type.Extension; @@ -21,11 +21,11 @@ public class ConstraintGeneratorTest { @Test - public static void testConstraintGenerator() throws Exception { - FHIRRegistryResourceProvider provider = new FormularyResourceProvider(); + public static void test101ConstraintGenerator() throws Exception { + FHIRRegistryResourceProvider provider = new Formulary101ResourceProvider(); for (FHIRRegistryResource registryResource : provider.getRegistryResources()) { if (StructureDefinition.class.equals(registryResource.getResourceType())) { - String url = registryResource.getUrl(); + String url = registryResource.getUrl() + "|" + registryResource.getVersion(); System.out.println(url); Class type = ModelSupport.isResourceType(registryResource.getType()) ? ModelSupport.getResourceType(registryResource.getType()) : Extension.class; for (Constraint constraint : ProfileSupport.getConstraints(url, type)) { @@ -38,4 +38,35 @@ public static void testConstraintGenerator() throws Exception { } } } + + @Test + public static void test110ConstraintGenerator() throws Exception { + FHIRRegistryResourceProvider provider = new Formulary101ResourceProvider(); + for (FHIRRegistryResource registryResource : provider.getRegistryResources()) { + if (StructureDefinition.class.equals(registryResource.getResourceType())) { + String url = registryResource.getUrl() + "|" + registryResource.getVersion(); + System.out.println(url); + Class type = ModelSupport.isResourceType(registryResource.getType()) ? ModelSupport.getResourceType(registryResource.getType()) : Extension.class; + for (Constraint constraint : ProfileSupport.getConstraints(url, type)) { + System.out.println(" " + constraint); + if (!Constraint.LOCATION_BASE.equals(constraint.location())) { + compile(constraint.location()); + } + compile(constraint.expression()); + } + } + } + } + + public static void main(String[] args) { + String url = "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension|1.0.1"; + for (Constraint constraint : ProfileSupport.getConstraints(url, Extension.class)) { + System.out.println(" " + constraint); + if (!Constraint.LOCATION_BASE.equals(constraint.location())) { + compile(constraint.location()); + } + compile(constraint.expression()); + } + + } } \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/test/ExamplesValidationTest.java b/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/test/ExamplesValidationTest.java index 6c61f378b34..951ce289965 100644 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/test/ExamplesValidationTest.java +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/test/ExamplesValidationTest.java @@ -1,39 +1,84 @@ /* - * (C) Copyright IBM Corp. 2020 + * (C) Copyright IBM Corp. 2020, 2022 * * SPDX-License-Identifier: Apache-2.0 */ package com.ibm.fhir.ig.davinci.pdex.formulary.test; +import static com.ibm.fhir.validation.util.FHIRValidationUtil.countErrors; +import static org.testng.Assert.assertEquals; +import static org.testng.Assert.fail; + +import java.io.File; +import java.io.Reader; +import java.nio.file.Files; +import java.nio.file.Paths; +import java.util.ArrayList; import java.util.List; +import org.testng.ITest; +import org.testng.annotations.Factory; import org.testng.annotations.Test; -import com.ibm.fhir.examples.Index; +import com.ibm.fhir.model.format.Format; +import com.ibm.fhir.model.parser.FHIRParser; import com.ibm.fhir.model.resource.OperationOutcome.Issue; import com.ibm.fhir.model.resource.Resource; -import com.ibm.fhir.model.spec.test.R4ExamplesDriver; -import com.ibm.fhir.model.spec.test.SerializationProcessor; -import com.ibm.fhir.model.test.TestUtil; +import com.ibm.fhir.registry.test.ExampleIndex; import com.ibm.fhir.validation.FHIRValidator; -import com.ibm.fhir.validation.test.ValidationProcessor; -public class ExamplesValidationTest { +public class ExamplesValidationTest implements ITest { + private static final String EXAMPLES_PATH = "src/test/resources/examples/"; + private static final String INDEX_FILE_NAME = ".index.json"; + + private final String path; + + public ExamplesValidationTest(String path) { + this.path = path; + } + + @Override + public String getTestName() { + if (!path.startsWith(EXAMPLES_PATH)) { + throw new IllegalArgumentException("unexpected test path"); + } + return path.substring(EXAMPLES_PATH.length()); + } + @Test - public void testPlanNetValidation() throws Exception { - R4ExamplesDriver driver = new R4ExamplesDriver(); - SerializationProcessor processor = new SerializationProcessor(); - driver.setProcessor(processor); - driver.setValidator(new ValidationProcessor()); - driver.processIndex(Index.PROFILES_PDEX_FORMULARY_JSON); + public void testDaVinciFormularyValidation() throws Exception { + try (Reader r = Files.newBufferedReader(Paths.get(path))) { + Resource resource = FHIRParser.parser(Format.JSON).parse(r); + List issues = FHIRValidator.validator().validate(resource); + issues.forEach(item -> { + if (item.getSeverity().getValue().equals("error")) { + System.out.println(path + " " + item); + } + }); + assertEquals(countErrors(issues), 0); + } catch (Exception e) { + fail("Exception with " + path, e); + } } - public static void main(String[] args) throws Exception { - Resource r = TestUtil.readExampleResource("json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-cmsip9.json"); - List validate = FHIRValidator.validator().validate(r); - for (Issue issue : validate) { - System.out.println(issue); + @Factory + public Object[] createInstances() { + List result = new ArrayList<>(); + + File[] directories = new File(EXAMPLES_PATH).listFiles(File::isDirectory); + for (File versionDir : directories) { + String versionPath = EXAMPLES_PATH + versionDir.getName() + "/"; + for (ExampleIndex.Entry entry : ExampleIndex.readIndex(Paths.get(versionPath, INDEX_FILE_NAME))) { + result.add(new ExamplesValidationTest(versionPath + entry.getFileName())); + } } + + return result.toArray(); + } + + public static void main(String[] args) throws Exception { + new ExamplesValidationTest(EXAMPLES_PATH + "101/List-covplanV1002.json") + .testDaVinciFormularyValidation(); } } \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/test/FormularyResourceProviderTest.java b/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/test/FormularyResourceProviderTest.java index 8137c9f4ccf..7928f16aed8 100644 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/test/FormularyResourceProviderTest.java +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/test/FormularyResourceProviderTest.java @@ -13,14 +13,25 @@ import org.testng.annotations.Test; -import com.ibm.fhir.ig.davinci.pdex.formulary.FormularyResourceProvider; +import com.ibm.fhir.ig.davinci.pdex.formulary.Formulary101ResourceProvider; import com.ibm.fhir.registry.resource.FHIRRegistryResource; import com.ibm.fhir.registry.spi.FHIRRegistryResourceProvider; public class FormularyResourceProviderTest { @Test - public void testGetResources() { - FHIRRegistryResourceProvider provider = new FormularyResourceProvider(); + public void testGetFormulary101Resources() { + FHIRRegistryResourceProvider provider = new Formulary101ResourceProvider(); + Collection registryResources = provider.getRegistryResources(); + assertNotNull(registryResources); + assertTrue(!registryResources.isEmpty()); + for (FHIRRegistryResource fhirRegistryResource : registryResources) { + assertNotNull(fhirRegistryResource.getResource()); + } + } + + @Test + public void testGetFormulary110Resources() { + FHIRRegistryResourceProvider provider = new Formulary101ResourceProvider(); Collection registryResources = provider.getRegistryResources(); assertNotNull(registryResources); assertTrue(!registryResources.isEmpty()); diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/tool/ResourceProcessor.java b/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/tool/ResourceProcessor.java index c0c3d40303f..153c383ea2e 100644 --- a/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/tool/ResourceProcessor.java +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/tool/ResourceProcessor.java @@ -1,15 +1,17 @@ /* - * (C) Copyright IBM Corp. 2020, 2021 + * (C) Copyright IBM Corp. 2020, 2022 * * SPDX-License-Identifier: Apache-2.0 */ - package com.ibm.fhir.ig.davinci.pdex.formulary.tool; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileWriter; +import java.util.Collections; +import java.util.List; +import java.util.Map; import jakarta.json.Json; import jakarta.json.JsonBuilderFactory; @@ -19,46 +21,65 @@ import jakarta.json.JsonReaderFactory; import jakarta.json.JsonWriter; import jakarta.json.JsonWriterFactory; +import jakarta.json.stream.JsonGenerator; /** - * This class fixes the following issues with the packaged DaVinci PDEX Formulary artifacts: + * This class fixes the following issues with the packaged DaVinci PDEX US Drug Formulary artifacts: *
      *
    1. The provided CapabilityStatement contains invalid XHTML
    2. *
    */ public class ResourceProcessor { public static void main(String[] args) throws Exception { + if (args.length < 1) { + throw new IllegalArgumentException("Please specify one or more version qualifiers (e.g. '1.0.1 1.1.0')"); + } + + for (String version : args) { + String packageVersion = version.replace(".", ""); + updateInPlace(packageVersion); + } + } + + public static void updateInPlace(String packageVersion) throws Exception { + Map writerConfig = Collections.singletonMap(JsonGenerator.PRETTY_PRINTING, true); JsonReaderFactory jsonReaderFactory = Json.createReaderFactory(null); - JsonWriterFactory jsonWriterFactory = Json.createWriterFactory(null); + JsonWriterFactory jsonWriterFactory = Json.createWriterFactory(writerConfig); JsonBuilderFactory jsonBuilderFactory = Json.createBuilderFactory(null); - File dir = new File("src/main/resources/hl7/fhir/us/davinci-pdex-formulary/package/"); - for (File file : dir.listFiles()) { - String fileName = file.getName(); - if (!fileName.endsWith(".json") || file.isDirectory()) { - continue; - } - JsonObject jsonObject = null; - try (BufferedReader reader = new BufferedReader(new FileReader(file))) { - JsonReader jsonReader = jsonReaderFactory.createReader(reader); - jsonObject = jsonReader.readObject(); + File mainDir = new File("src/main/resources/hl7/fhir/us/davinci-pdex-formulary/" + packageVersion + "/package/"); + File examplesDir = new File("src/test/resources/examples/" + packageVersion); + for (File dir : List.of(mainDir, examplesDir)) { + for (File file : dir.listFiles()) { + String fileName = file.getName(); + if (!fileName.endsWith(".json") || file.isDirectory() + || fileName.startsWith(".index.json") + || fileName.startsWith("package.json") + ) { + continue; + } + JsonObject jsonObject = null; + try (BufferedReader reader = new BufferedReader(new FileReader(file))) { + JsonReader jsonReader = jsonReaderFactory.createReader(reader); + jsonObject = jsonReader.readObject(); - JsonObjectBuilder jsonObjectBuilder = jsonBuilderFactory.createObjectBuilder(jsonObject); + JsonObjectBuilder jsonObjectBuilder = jsonBuilderFactory.createObjectBuilder(jsonObject); - JsonObject text = jsonObject.getJsonObject("text"); - if (text != null) { - JsonObjectBuilder textBuilder = jsonBuilderFactory.createObjectBuilder(text); - String div = text.getString("div"); - div = div.replace("
    ", ""); - textBuilder.add("div", div); - jsonObjectBuilder.add("text", textBuilder); - } + JsonObject text = jsonObject.getJsonObject("text"); + if (text != null) { + // Replace the generated text with some [much smaller] generic placeholder + JsonObjectBuilder textBuilder = jsonBuilderFactory.createObjectBuilder(); + textBuilder.add("status", "empty"); + textBuilder.add("div", "
    Redacted for size
    "); + jsonObjectBuilder.add("text", textBuilder); + } - jsonObject = jsonObjectBuilder.build(); - } - try (FileWriter writer = new FileWriter(file)) { - JsonWriter jsonWriter = jsonWriterFactory.createWriter(writer); - jsonWriter.write(jsonObject); + jsonObject = jsonObjectBuilder.build(); + } + try (FileWriter writer = new FileWriter(file)) { + JsonWriter jsonWriter = jsonWriterFactory.createWriter(writer); + jsonWriter.write(jsonObject); + } } } } diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/tool/SearchParameterAugmenter.java b/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/tool/SearchParameterAugmenter.java new file mode 100644 index 00000000000..1bd8987f921 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/java/com/ibm/fhir/ig/davinci/pdex/formulary/tool/SearchParameterAugmenter.java @@ -0,0 +1,139 @@ +/* + * (C) Copyright IBM Corp. 2021, 2022 + * + * SPDX-License-Identifier: Apache-2.0 + */ +package com.ibm.fhir.ig.davinci.pdex.formulary.tool; + +import java.io.BufferedWriter; +import java.nio.charset.Charset; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Collection; +import java.util.List; +import java.util.Set; +import java.util.stream.Collectors; + +import com.ibm.fhir.core.FHIRConstants; +import com.ibm.fhir.core.ResourceType; +import com.ibm.fhir.model.format.Format; +import com.ibm.fhir.model.generator.FHIRGenerator; +import com.ibm.fhir.model.resource.SearchParameter; +import com.ibm.fhir.model.resource.ValueSet; +import com.ibm.fhir.model.resource.ValueSet.Compose.Include; +import com.ibm.fhir.model.type.Canonical; +import com.ibm.fhir.model.type.ElementDefinition; +import com.ibm.fhir.model.type.Extension; +import com.ibm.fhir.model.type.Uri; +import com.ibm.fhir.model.type.code.BindingStrength; +import com.ibm.fhir.model.type.code.FHIRDefinedType; +import com.ibm.fhir.model.type.code.ResourceTypeCode; +import com.ibm.fhir.profile.ProfileSupport; +import com.ibm.fhir.registry.FHIRRegistry; + +/** + * A utility for adding the http://ibm.com/fhir/extension/implicit-system extension + * to search parameters which always reference code values with a particular system + */ +public class SearchParameterAugmenter { + private static final String IMPLICIT_SYSTEM_EXT_URL = FHIRConstants.EXT_BASE + "implicit-system"; + private static final FHIRGenerator generator = FHIRGenerator.generator(Format.JSON, true); + + public static void main(String[] args) throws Exception { + if (args.length < 1) { + throw new IllegalArgumentException("Please specify one or more version qualifiers (e.g. '1.0.1 1.1.0')"); + } + + for (String packageVersion : args) { + updateInPlace(packageVersion); + } + } + + public static void updateInPlace(String version) throws Exception { + Collection tokenParams = FHIRRegistry.getInstance().getSearchParameters("token"); + + for (SearchParameter searchParameter : tokenParams) { + if (searchParameter.getUrl() != null && searchParameter.getUrl().hasValue() + && searchParameter.getUrl().getValue().startsWith("http://hl7.org/fhir/SearchParameter")) { + continue; // skip the parameters defined in the base spec + } + + if (searchParameter.getVersion() == null || !searchParameter.getVersion().hasValue()) { + System.err.println("Found a SearchParameter that has no version string: " + searchParameter); + } else if (!version.equals(searchParameter.getVersion().getValue())) { + continue; // handle a single version at a time + } + + List base = searchParameter.getBase(); + if (base.size() != 1 || base.get(0).getValueAsEnum() == ResourceType.RESOURCE) { + continue; // too complicated to handle this case right now + } + + String implicitSystem = getImplicitSystem(searchParameter); + + if (implicitSystem != null) { + System.out.println(searchParameter.getId() + ": " + implicitSystem); + + String currentValue = searchParameter.getExtension().stream() + .filter(e -> IMPLICIT_SYSTEM_EXT_URL.equals(e.getUrl()) && e.getValue() != null) + .reduce((a, b) -> { + throw new IllegalStateException("Multiple existing extension values: " + a + ", " + b); + }) + .map(e -> e.getValue().as(Uri.class).getValue()) + .orElse(null); + + if (currentValue == null) { + searchParameter = searchParameter.toBuilder() + .extension(buildImplicitSystemExtension(implicitSystem)) + .build(); + } else if (currentValue.equals(implicitSystem)){ + continue; + } else { + throw new IllegalStateException("Existing SearchParameter '" + searchParameter.getId() + + "' already has an implicity system extension and it doesn't match '" + implicitSystem + "'"); + } + + String packageVersion = version.replace(".", ""); + Path path = Paths.get("src/main/resources/hl7/fhir/us/davinci-pdex-formulary/" + packageVersion + "/package/SearchParameter-" + + searchParameter.getId() + ".json"); + BufferedWriter writer = Files.newBufferedWriter(path, Charset.forName("UTF-8")); + generator.generate(searchParameter, writer); + } + } + } + + private static String getImplicitSystem(SearchParameter searchParameter) { + String system = null; + ElementDefinition def = ProfileSupport.getElementDefinition(searchParameter.getExpression().getValue()); + + if (def != null && + def.getBinding() != null && + def.getType().size() == 1 && + FHIRDefinedType.CODE.getValue().equals(def.getType().get(0).getCode().getValue()) && + BindingStrength.Value.REQUIRED == def.getBinding().getStrength().getValueAsEnum()) { + Canonical valueSetRef = def.getBinding().getValueSet(); + ValueSet valueSet = FHIRRegistry.getInstance().getResource(valueSetRef.getValue(), ValueSet.class); + + if (valueSet.getCompose() != null) { + Set systems = valueSet.getCompose().getInclude().stream().collect(Collectors.toSet()); + if (systems.size() == 1) { + Uri systemUri = systems.iterator().next().getSystem(); + if (systemUri != null) { + system = systemUri.getValue(); + } + } + } + } + return system; + } + + public static Extension buildImplicitSystemExtension(String implicitSystemValue) { + if (implicitSystemValue == null) return null; + + return Extension.builder() + .url(IMPLICIT_SYSTEM_EXT_URL) + .value(Uri.of(implicitSystemValue)) + .build(); + } +} diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/.index.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/.index.json new file mode 100644 index 00000000000..32922fa5dd6 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/.index.json @@ -0,0 +1,45 @@ +{ + "index-version": 1, + "files": [ + { + "filename": "MedicationKnowledge-FormularyDrugV3002.json", + "resourceType": "MedicationKnowledge", + "id": "FormularyDrugV3002" + }, + { + "filename": "MedicationKnowledge-cmsip9.json", + "resourceType": "MedicationKnowledge", + "id": "cmsip9" + }, + { + "filename": "List-CoveragePlanV3002.json", + "resourceType": "List", + "id": "CoveragePlanV3002" + }, + { + "filename": "MedicationKnowledge-formularydrugV1002.json", + "resourceType": "MedicationKnowledge", + "id": "formularydrugV1002" + }, + { + "filename": "List-covplanV1002.json", + "resourceType": "List", + "id": "covplanV1002" + }, + { + "filename": "MedicationKnowledge-FormularyDrugV3001.json", + "resourceType": "MedicationKnowledge", + "id": "FormularyDrugV3001" + }, + { + "filename": "List-CoveragePlanV3001.json", + "resourceType": "List", + "id": "CoveragePlanV3001" + }, + { + "filename": "List-CoveragePlanV3004t.json", + "resourceType": "List", + "id": "CoveragePlanV3004t" + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/List-CoveragePlanV3001.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/List-CoveragePlanV3001.json new file mode 100644 index 00000000000..298404df977 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/List-CoveragePlanV3001.json @@ -0,0 +1,282 @@ +{ + "resourceType": "List", + "id": "CoveragePlanV3001", + "meta": { + "versionId": "1", + "lastUpdated": "2019-05-22T18:36:03.000+00:00", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan|1.0.1" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "generic", + "display": "Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier." + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail: 1 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail: 3 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "valueString": "https://content.carefirst.com/sbc/D,$0/ D,$0/ D,$0/ D,$0/ D,$0B+" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "valueString": "http://url/to/formulary/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "valueString": "http://url/to/health/plan/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "valueString": "Patrick.Breen@carefirst.com" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "valueString": "PREFERRED" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "valueString": "HIOS-PLAN-ID" + } + ], + "identifier": [ + { + "value": "test" + } + ], + "status": "current", + "mode": "snapshot", + "title": "Sample Gold Health Plan", + "date": "2015-06-12", + "entry": [ + { + "item": { + "reference": "MedicationKnowledge/FormularyDrugV3001" + } + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/List-CoveragePlanV3002.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/List-CoveragePlanV3002.json new file mode 100644 index 00000000000..13fccd95ff6 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/List-CoveragePlanV3002.json @@ -0,0 +1,282 @@ +{ + "resourceType": "List", + "id": "CoveragePlanV3002", + "meta": { + "versionId": "1", + "lastUpdated": "2019-05-22T18:36:03.000+00:00", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan|1.0.1" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "generic", + "display": "Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier." + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail: 1 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 10 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "before-deductible", + "display": "Before Deductible: The consumer first pays the copay, and any net remaining allowed charges accrue to the deductible (this indicates that this benefit is subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 1 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail: 3 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "valueString": "https://content.carefirst.com/sbc/D,$0/ D,$0/ D,$0/ D,$0/ D,$0B+" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "valueString": "http://url/to/formulary/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "valueString": "http://url/to/formulary/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "valueString": "Patrick.Breen@carefirst.com" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "valueString": "PREFERRED" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "valueString": "HIOS-PLAN-ID" + } + ], + "identifier": [ + { + "value": "test1" + } + ], + "status": "current", + "mode": "snapshot", + "title": "Sample Gold Health Plan", + "date": "2015-06-12", + "entry": [ + { + "item": { + "reference": "MedicationKnowledge/FormularyDrugV3001" + } + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/List-CoveragePlanV3004t.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/List-CoveragePlanV3004t.json new file mode 100644 index 00000000000..24f99770c6e --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/List-CoveragePlanV3004t.json @@ -0,0 +1,1182 @@ +{ + "resourceType": "List", + "id": "CoveragePlanV3004t", + "meta": { + "versionId": "1", + "lastUpdated": "2019-05-22T18:36:03.000+00:00", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan|1.0.1" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "generic", + "display": "Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier." + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail: 1 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 10 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 10 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail: 3 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 20 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 20 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "zero-cost-share-preventative", + "display": "Zero cost-share preventative: Preventive medications and products available at no cost." + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail: 1 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail: 3 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "preferred-brand", + "display": "Preferred Brand: Brand name drugs" + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail: 1 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 50 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 50 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail: 3 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 100 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 100 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "non-preferred-brand", + "display": "Non-preferred Brand: Brand name drugs that cost more than ‘brand’ drugs." + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail: 1 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 70 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 70 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail: 3 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 140 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 140 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "specialty", + "display": "Specialty: Drugs used to treat complex conditions like cancer and multiple sclerosis. They can be generic or brand name, and are typically the most expensive drugs on the formulary." + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail: 1 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 100 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 100 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail: 3 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 200 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 200 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "valueString": "https://content.carefirst.com/sbc/D,$0/ D,$0/ D,$0/ D,$0/ D,$0B+" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "valueString": "http://url/to/formulary/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "valueString": "http://url/to/formulary/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "valueString": "Patrick.Breen@carefirst.com" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "valueString": "PREFERRED" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "valueString": "HIOS-PLAN-ID" + } + ], + "identifier": [ + { + "value": "40308VA0240008" + } + ], + "status": "current", + "mode": "snapshot", + "title": "BluePreferred PPO HSA Silver $3,000", + "date": "2015-06-12", + "entry": [ + { + "item": { + "reference": "MedicationKnowledge/cmsip9" + } + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/List-covplanV1002.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/List-covplanV1002.json new file mode 100644 index 00000000000..2cbccf54621 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/List-covplanV1002.json @@ -0,0 +1,127 @@ +{ + "resourceType": "List", + "id": "covplanV1002", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan|1.0.1" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "brand", + "display": "Brand: Brand name drugs that cost more than ‘preferred brand’ drugs." + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": false + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail: 1 Month Supply via in-network retail pharmacy." + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 20 + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0.2 + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer is responsible only for the copay (this indicates that this benefit is subject to the deductible)." + } + ] + } + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)." + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "valueString": "http://url/to/health/plan/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "valueString": "http://url/to/health/plan/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "valueString": "http://url/to/formulary/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "valueString": "email@address.com" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "valueString": "PREFERRED" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "valueString": "HIOS-PLAN-ID" + } + ], + "identifier": [ + { + "value": "HIOS-PLAN-ID" + } + ], + "status": "current", + "mode": "snapshot", + "title": "Sample Gold Health Plan", + "date": "2015-06-12", + "entry": [ + { + "item": { + "reference": "MedicationKnowledge/formularydrugV1002" + } + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/MedicationKnowledge-FormularyDrugV3001.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/MedicationKnowledge-FormularyDrugV3001.json new file mode 100644 index 00000000000..05be7fb68e0 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/MedicationKnowledge-FormularyDrugV3001.json @@ -0,0 +1,59 @@ +{ + "resourceType": "MedicationKnowledge", + "id": "FormularyDrugV3001", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug|1.0.1" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "brand", + "display": "Brand: Brand name drugs that cost more than ‘preferred brand’ drugs." + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "valueString": "40308VA0240008" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension", + "valueReference": { + "reference": "MedicationKnowledge/FormularyDrugV3002", + "display": "Tylenol Extra Strength 500 MG Oral Tablet" + } + } + ], + "code": { + "coding": [ + { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm", + "code": "1049640", + "display": "Percocet 5 MG / 325 MG Oral Tablet" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/MedicationKnowledge-FormularyDrugV3002.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/MedicationKnowledge-FormularyDrugV3002.json new file mode 100644 index 00000000000..94b44468284 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/MedicationKnowledge-FormularyDrugV3002.json @@ -0,0 +1,52 @@ +{ + "resourceType": "MedicationKnowledge", + "id": "FormularyDrugV3002", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug|1.0.1" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "brand", + "display": "Brand: Brand name drugs that cost more than ‘preferred brand’ drugs." + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "valueString": "40308VA0240008" + } + ], + "code": { + "coding": [ + { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm", + "code": "209459", + "display": "Tylenol Extra Strength 500 MG Oral Tablet" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/MedicationKnowledge-cmsip9.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/MedicationKnowledge-cmsip9.json new file mode 100644 index 00000000000..6e6cf0efc49 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/MedicationKnowledge-cmsip9.json @@ -0,0 +1,52 @@ +{ + "resourceType": "MedicationKnowledge", + "id": "cmsip9", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug|1.0.1" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "generic", + "display": "Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier." + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "valueString": "40308VA0240008" + } + ], + "code": { + "coding": [ + { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm", + "code": "1000091", + "display": "doxepin HCl 5 % Topical Cream" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/MedicationKnowledge-formularydrugV1002.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/MedicationKnowledge-formularydrugV1002.json new file mode 100644 index 00000000000..af97b8bf97a --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/101/MedicationKnowledge-formularydrugV1002.json @@ -0,0 +1,52 @@ +{ + "resourceType": "MedicationKnowledge", + "id": "formularydrugV1002", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug|1.0.1" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "brand", + "display": "Brand: Brand name drugs that cost more than ‘preferred brand’ drugs." + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "valueString": "40308VA0240008" + } + ], + "code": { + "coding": [ + { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm", + "code": "1049640", + "display": "Percocet 5 MG / 325 MG Oral Tablet" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/.index.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/.index.json new file mode 100644 index 00000000000..32922fa5dd6 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/.index.json @@ -0,0 +1,45 @@ +{ + "index-version": 1, + "files": [ + { + "filename": "MedicationKnowledge-FormularyDrugV3002.json", + "resourceType": "MedicationKnowledge", + "id": "FormularyDrugV3002" + }, + { + "filename": "MedicationKnowledge-cmsip9.json", + "resourceType": "MedicationKnowledge", + "id": "cmsip9" + }, + { + "filename": "List-CoveragePlanV3002.json", + "resourceType": "List", + "id": "CoveragePlanV3002" + }, + { + "filename": "MedicationKnowledge-formularydrugV1002.json", + "resourceType": "MedicationKnowledge", + "id": "formularydrugV1002" + }, + { + "filename": "List-covplanV1002.json", + "resourceType": "List", + "id": "covplanV1002" + }, + { + "filename": "MedicationKnowledge-FormularyDrugV3001.json", + "resourceType": "MedicationKnowledge", + "id": "FormularyDrugV3001" + }, + { + "filename": "List-CoveragePlanV3001.json", + "resourceType": "List", + "id": "CoveragePlanV3001" + }, + { + "filename": "List-CoveragePlanV3004t.json", + "resourceType": "List", + "id": "CoveragePlanV3004t" + } + ] +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/List-CoveragePlanV3001.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/List-CoveragePlanV3001.json new file mode 100644 index 00000000000..cf12f17b824 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/List-CoveragePlanV3001.json @@ -0,0 +1,284 @@ +{ + "resourceType": "List", + "id": "CoveragePlanV3001", + "meta": { + "versionId": "1", + "lastUpdated": "2021-08-04T18:36:03.000+00:00", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "generic", + "display": "Generic" + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "valueUrl": "https://content.carefirst.com/sbc/D,$0/%20D,$0/%20D,$0/%20D,$0/%20D,$0B+" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "valueUrl": "http://url/to/formulary/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "valueUrl": "http://url/to/health/plan/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "valueUrl": "mailto:Patrick.Breen@carefirst.com" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "valueString": "PREFERRED" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "valueString": "HIOS-PLAN-ID" + } + ], + "identifier": [ + { + "value": "test" + } + ], + "status": "current", + "mode": "snapshot", + "title": "Sample Gold Health Plan", + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "DRUGPOL", + "display": "drug policy" + } + ] + }, + "date": "2015-06-12" +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/List-CoveragePlanV3002.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/List-CoveragePlanV3002.json new file mode 100644 index 00000000000..c3e78f9be68 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/List-CoveragePlanV3002.json @@ -0,0 +1,284 @@ +{ + "resourceType": "List", + "id": "CoveragePlanV3002", + "meta": { + "versionId": "1", + "lastUpdated": "2021-08-04T18:36:03.000+00:00", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "generic", + "display": "Generic" + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 10 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "before-deductible", + "display": "Before Deductible" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 1 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "valueUrl": "https://content.carefirst.com/sbc/D,$0/%20D,$0/%20D,$0/%20D,$0/%20D,$0B+" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "valueUrl": "http://url/to/formulary/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "valueUrl": "http://url/to/formulary/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "valueUrl": "mailto:Patrick.Breen@carefirst.com" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "valueString": "PREFERRED" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "valueString": "HIOS-PLAN-ID" + } + ], + "identifier": [ + { + "value": "test1" + } + ], + "status": "current", + "mode": "snapshot", + "title": "Sample Gold Health Plan", + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "DRUGPOL", + "display": "drug policy" + } + ] + }, + "date": "2015-06-12" +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/List-CoveragePlanV3004t.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/List-CoveragePlanV3004t.json new file mode 100644 index 00000000000..a2981b1df70 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/List-CoveragePlanV3004t.json @@ -0,0 +1,1184 @@ +{ + "resourceType": "List", + "id": "CoveragePlanV3004t", + "meta": { + "versionId": "1", + "lastUpdated": "2021-08-04T18:36:03.000+00:00", + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "generic", + "display": "Generic" + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 10 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 10 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 20 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 20 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "zero-cost-share-preventative", + "display": "Zero cost-share preventative" + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 0 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "preferred-brand", + "display": "Preferred Brand" + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 50 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 50 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 100 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 100 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "non-preferred-brand", + "display": "Non-preferred Brand" + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 70 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 70 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 140 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 140 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "specialty", + "display": "Specialty" + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": true + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 100 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-out-retail", + "display": "1 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 100 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-in-retail", + "display": "3 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 200 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "3-month-out-retail", + "display": "3 month out of network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 200 + } + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "no-charge", + "display": "No Charge" + } + ] + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0 + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "valueUrl": "https://content.carefirst.com/sbc/D,$0/%20D,$0/%20D,$0/%20D,$0/%20D,$0B+" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "valueUrl": "http://url/to/formulary/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "valueUrl": "http://url/to/formulary/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "valueUrl": "mailto:Patrick.Breen@carefirst.com" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "valueString": "PREFERRED" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "valueString": "HIOS-PLAN-ID" + } + ], + "identifier": [ + { + "value": "40308VA0240008" + } + ], + "status": "current", + "mode": "snapshot", + "title": "BluePreferred PPO HSA Silver $3,000", + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "DRUGPOL", + "display": "drug policy" + } + ] + }, + "date": "2015-06-12" +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/List-covplanV1002.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/List-covplanV1002.json new file mode 100644 index 00000000000..90955d93a20 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/List-covplanV1002.json @@ -0,0 +1,129 @@ +{ + "resourceType": "List", + "id": "covplanV1002", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "extension": [ + { + "url": "drugTierID", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "brand", + "display": "Brand" + } + ] + } + }, + { + "url": "mailOrder", + "valueBoolean": false + }, + { + "extension": [ + { + "url": "pharmacyType", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS", + "code": "1-month-in-retail", + "display": "1 month in network retail" + } + ] + } + }, + { + "url": "copayAmount", + "valueMoney": { + "value": 20 + } + }, + { + "url": "coinsuranceRate", + "valueDecimal": 0.2 + }, + { + "url": "copayOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + }, + { + "url": "coinsuranceOption", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS", + "code": "after-deductible", + "display": "After Deductible" + } + ] + } + } + ], + "url": "costSharing" + } + ], + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension", + "valueUrl": "http://url/to/health/plan/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension", + "valueUrl": "http://url/to/health/plan/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension", + "valueUrl": "http://url/to/formulary/information" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension", + "valueUrl": "mailto:email@address.com" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension", + "valueString": "PREFERRED" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension", + "valueString": "HIOS-PLAN-ID" + } + ], + "identifier": [ + { + "value": "HIOS-PLAN-ID" + } + ], + "status": "current", + "mode": "snapshot", + "title": "Sample Gold Health Plan", + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "DRUGPOL", + "display": "drug policy" + } + ] + }, + "date": "2015-06-12" +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/MedicationKnowledge-FormularyDrugV3001.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/MedicationKnowledge-FormularyDrugV3001.json new file mode 100644 index 00000000000..f74213e53d5 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/MedicationKnowledge-FormularyDrugV3001.json @@ -0,0 +1,59 @@ +{ + "resourceType": "MedicationKnowledge", + "id": "FormularyDrugV3001", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "brand", + "display": "Brand" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "valueString": "40308VA0240008" + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension", + "valueReference": { + "reference": "MedicationKnowledge/FormularyDrugV3002", + "display": "Tylenol Extra Strength 500 MG Oral Tablet" + } + } + ], + "code": { + "coding": [ + { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm", + "code": "1049640", + "display": "acetaminophen 325 MG / oxycodone hydrochloride 5 MG Oral Tablet [Percocet]" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/MedicationKnowledge-FormularyDrugV3002.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/MedicationKnowledge-FormularyDrugV3002.json new file mode 100644 index 00000000000..64c52ecc839 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/MedicationKnowledge-FormularyDrugV3002.json @@ -0,0 +1,56 @@ +{ + "resourceType": "MedicationKnowledge", + "id": "FormularyDrugV3002", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "brand", + "display": "Brand" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MailOrder-extension", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "valueString": "40308VA0240008" + } + ], + "code": { + "coding": [ + { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm", + "code": "209459", + "display": "acetaminophen 500 MG Oral Tablet [Tylenol]" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/MedicationKnowledge-cmsip9.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/MedicationKnowledge-cmsip9.json new file mode 100644 index 00000000000..2d14b6f5eb2 --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/MedicationKnowledge-cmsip9.json @@ -0,0 +1,52 @@ +{ + "resourceType": "MedicationKnowledge", + "id": "cmsip9", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "generic", + "display": "Generic" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "valueString": "40308VA0240008" + } + ], + "code": { + "coding": [ + { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm", + "code": "1000091", + "display": "doxepin hydrochloride 50 MG/ML Topical Cream" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/MedicationKnowledge-formularydrugV1002.json b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/MedicationKnowledge-formularydrugV1002.json new file mode 100644 index 00000000000..d5d770e954a --- /dev/null +++ b/conformance/fhir-ig-davinci-pdex-formulary/src/test/resources/examples/110/MedicationKnowledge-formularydrugV1002.json @@ -0,0 +1,52 @@ +{ + "resourceType": "MedicationKnowledge", + "id": "formularydrugV1002", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" + ] + }, + "text": { + "status": "empty", + "div": "
    Redacted for size
    " + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", + "code": "brand", + "display": "Brand" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", + "valueBoolean": false + }, + { + "url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", + "valueString": "40308VA0240008" + } + ], + "code": { + "coding": [ + { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm", + "code": "1049640", + "display": "acetaminophen 325 MG / oxycodone hydrochloride 5 MG Oral Tablet [Percocet]" + } + ] + } +} \ No newline at end of file diff --git a/conformance/fhir-ig-davinci-pdex-plan-net/CHANGELOG.md b/conformance/fhir-ig-davinci-pdex-plan-net/CHANGELOG.md index 6ab442766bc..951402940e7 100644 --- a/conformance/fhir-ig-davinci-pdex-plan-net/CHANGELOG.md +++ b/conformance/fhir-ig-davinci-pdex-plan-net/CHANGELOG.md @@ -10,6 +10,7 @@ Corresponding to https://github.com/HL7/davinci-pdex-plan-net/commit/2c561128f86 - Added version id to each valueSet binding target (e.g. `http://hl7.org/fhir/us/davinci-pdex-plan-net/ValueSet/InsuranceProductTypeVS` -> `http://hl7.org/fhir/us/davinci-pdex-plan-net/ValueSet/InsuranceProductTypeVS|1.0.0`) Note: the examples were subsequently retrieved from http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1/package.tgz on May 19, 2022. +- Added version id to the Meta.profile entry for each example ## PDEX PlanNet 1.1.0 Source - http://hl7.org/fhir/us/davinci-pdex-plan-net/STU1.1/package.tgz retrieved on May 19, 2022. diff --git a/conformance/fhir-ig-davinci-pdex-plan-net/src/test/java/com/ibm/fhir/ig/davinci/plannet/tool/ResourceProcessor.java b/conformance/fhir-ig-davinci-pdex-plan-net/src/test/java/com/ibm/fhir/ig/davinci/plannet/tool/ResourceProcessor.java index 43cafa12bef..b0c0ccab70b 100644 --- a/conformance/fhir-ig-davinci-pdex-plan-net/src/test/java/com/ibm/fhir/ig/davinci/plannet/tool/ResourceProcessor.java +++ b/conformance/fhir-ig-davinci-pdex-plan-net/src/test/java/com/ibm/fhir/ig/davinci/plannet/tool/ResourceProcessor.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2021 + * (C) Copyright IBM Corp. 2020, 2022 * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/conformance/fhir-ig-us-core/src/test/java/com/ibm/fhir/ig/us/core/test/v311/ConformanceTest.java b/conformance/fhir-ig-us-core/src/test/java/com/ibm/fhir/ig/us/core/test/v311/ConformanceTest.java index 95bcdc9811f..7f07de902b3 100644 --- a/conformance/fhir-ig-us-core/src/test/java/com/ibm/fhir/ig/us/core/test/v311/ConformanceTest.java +++ b/conformance/fhir-ig-us-core/src/test/java/com/ibm/fhir/ig/us/core/test/v311/ConformanceTest.java @@ -20,6 +20,7 @@ import java.util.Collection; import java.util.List; +import org.testng.Assert; import org.testng.annotations.Test; import com.ibm.fhir.model.format.Format; @@ -340,9 +341,12 @@ public void testUSCoreEthnicityExtension4() throws Exception { issues.forEach(System.out::println); - assertEquals(countWarnings(issues), 0); - assertEquals(countErrors(issues), 2); - assertEquals(countInformation(issues), 1); + // one for generated-ext-1: Extension must conform to definition 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race' + // and one for each version of the extension due to the generated constraint "conformsTo('a'|1) or conformsTo('a'|2) or conformsTo('a'|3)..." + Assert.assertEquals(countErrors(issues), 4); + Assert.assertEquals(countWarnings(issues), 0); + // one for each version of the extension due to the generated constraint "conformsTo('a'|1) or conformsTo('a'|2) or conformsTo('a'|3)..." + Assert.assertEquals(countInformation(issues), 3); } /** @@ -523,9 +527,12 @@ public void testUSCoreRaceExtension4() throws Exception { issues.forEach(System.out::println); - assertEquals(countWarnings(issues), 1); - assertEquals(countErrors(issues), 2); - assertEquals(countInformation(issues), 1); + // one for generated-ext-1: Extension must conform to definition 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race' + // and one for each version of the extension due to the generated constraint "conformsTo('a'|1) or conformsTo('a'|2) or conformsTo('a'|3)..." + Assert.assertEquals(countErrors(issues), 4); + Assert.assertEquals(countWarnings(issues), 1); + // one for each version of the extension due to the generated constraint "conformsTo('a'|1) or conformsTo('a'|2) or conformsTo('a'|3)..." + Assert.assertEquals(countInformation(issues), 3); } } \ No newline at end of file diff --git a/conformance/fhir-ig-us-core/src/test/java/com/ibm/fhir/ig/us/core/test/v400/ConformanceTest.java b/conformance/fhir-ig-us-core/src/test/java/com/ibm/fhir/ig/us/core/test/v400/ConformanceTest.java index f3f4b1942e1..09d670decd6 100644 --- a/conformance/fhir-ig-us-core/src/test/java/com/ibm/fhir/ig/us/core/test/v400/ConformanceTest.java +++ b/conformance/fhir-ig-us-core/src/test/java/com/ibm/fhir/ig/us/core/test/v400/ConformanceTest.java @@ -333,9 +333,12 @@ public void testUSCoreEthnicityExtension4() throws Exception { issues.forEach(System.out::println); + // one for generated-ext-1: Extension must conform to definition 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race' + // and one for each version of the extension due to the generated constraint "conformsTo('a'|1) or conformsTo('a'|2) or conformsTo('a'|3)..." + Assert.assertEquals(countErrors(issues), 4); Assert.assertEquals(countWarnings(issues), 1); - Assert.assertEquals(countErrors(issues), 2); - Assert.assertEquals(countInformation(issues), 1); + // one for each version of the extension due to the generated constraint "conformsTo('a'|1) or conformsTo('a'|2) or conformsTo('a'|3)..." + Assert.assertEquals(countInformation(issues), 3); } /** @@ -516,9 +519,12 @@ public void testUSCoreRaceExtension4() throws Exception { issues.forEach(System.out::println); + // one for generated-ext-1: Extension must conform to definition 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race' + // and one for each version of the extension due to the generated constraint "conformsTo('a'|1) or conformsTo('a'|2) or conformsTo('a'|3)..." + Assert.assertEquals(countErrors(issues), 4); Assert.assertEquals(countWarnings(issues), 1); - Assert.assertEquals(countErrors(issues), 2); - Assert.assertEquals(countInformation(issues), 1); + // one for each version of the extension due to the generated constraint "conformsTo('a'|1) or conformsTo('a'|2) or conformsTo('a'|3)..." + Assert.assertEquals(countInformation(issues), 3); } @Test diff --git a/conformance/fhir-ig-us-core/src/test/java/com/ibm/fhir/ig/us/core/test/v500/ConformanceTest.java b/conformance/fhir-ig-us-core/src/test/java/com/ibm/fhir/ig/us/core/test/v500/ConformanceTest.java index d5748d13ec9..52b543ccc19 100644 --- a/conformance/fhir-ig-us-core/src/test/java/com/ibm/fhir/ig/us/core/test/v500/ConformanceTest.java +++ b/conformance/fhir-ig-us-core/src/test/java/com/ibm/fhir/ig/us/core/test/v500/ConformanceTest.java @@ -333,9 +333,12 @@ public void testUSCoreEthnicityExtension4() throws Exception { issues.forEach(System.out::println); + // one for generated-ext-1: Extension must conform to definition 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race' + // and one for each version of the extension due to the generated constraint "conformsTo('a'|1) or conformsTo('a'|2) or conformsTo('a'|3)..." + Assert.assertEquals(countErrors(issues), 4); Assert.assertEquals(countWarnings(issues), 1); - Assert.assertEquals(countErrors(issues), 2); - Assert.assertEquals(countInformation(issues), 1); + // one for each version of the extension due to the generated constraint "conformsTo('a'|1) or conformsTo('a'|2) or conformsTo('a'|3)..." + Assert.assertEquals(countInformation(issues), 3); } /** @@ -516,9 +519,12 @@ public void testUSCoreRaceExtension4() throws Exception { issues.forEach(System.out::println); + // one for generated-ext-1: Extension must conform to definition 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race' + // and one for each version of the extension due to the generated constraint "conformsTo('a'|1) or conformsTo('a'|2) or conformsTo('a'|3)..." + Assert.assertEquals(countErrors(issues), 4); Assert.assertEquals(countWarnings(issues), 1); - Assert.assertEquals(countErrors(issues), 2); - Assert.assertEquals(countInformation(issues), 1); + // one for each version of the extension due to the generated constraint "conformsTo('a'|1) or conformsTo('a'|2) or conformsTo('a'|3)..." + Assert.assertEquals(countInformation(issues), 3); } @Test diff --git a/fhir-examples/src/main/java/com/ibm/fhir/examples/Index.java b/fhir-examples/src/main/java/com/ibm/fhir/examples/Index.java index 1ac39226d8c..be122bd9a6c 100644 --- a/fhir-examples/src/main/java/com/ibm/fhir/examples/Index.java +++ b/fhir-examples/src/main/java/com/ibm/fhir/examples/Index.java @@ -65,11 +65,6 @@ public enum Index { */ IBM_XML("/ibm-xml.txt"), - /** - * Implementation Guides examples in JSON - */ - PROFILES_PDEX_FORMULARY_JSON("/profiles-pdex-formulary-json.txt"), - /** * Bulk Data Location examples in JSON */ @@ -87,7 +82,7 @@ private Index(String... path) { } /** - * @return the String path for this index file + * @return the String path for each index file in this conceptual index */ public List paths() { return paths; diff --git a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3001.json b/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3001.json deleted file mode 100644 index 8a334f84421..00000000000 --- a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3001.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"List","id":"CoveragePlanV3001","meta":{"versionId":"1","lastUpdated":"2019-05-22T18:36:03.000+00:00","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"]},"text":{"status":"generated","div":"

    Sample Gold Health Plan

    Date: 2015-06-12Mode: snapshotStatus: current
    Items
    Generated Summary: Percocet 5 MG / 325 MG Oral Tablet
    "},"extension":[{"extension":[{"url":"drugTierID","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","code":"generic","display":"Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier."}]}},{"url":"mailOrder","valueBoolean":true},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-in-retail","display":"1 month in network retail: 1 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":0}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-out-retail","display":"1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":0}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-in-retail","display":"3 month in network retail: 3 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":0}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-out-retail","display":"3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":0}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"}],"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension","valueString":"https://content.carefirst.com/sbc/D,$0/ D,$0/ D,$0/ D,$0/ D,$0B+"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension","valueString":"http://url/to/formulary/information"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension","valueString":"http://url/to/health/plan/information"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension","valueString":"Patrick.Breen@carefirst.com"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension","valueString":"PREFERRED"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension","valueString":"HIOS-PLAN-ID"}],"identifier":[{"value":"test"}],"status":"current","mode":"snapshot","title":"Sample Gold Health Plan","date":"2015-06-12","entry":[{"item":{"reference":"MedicationKnowledge/FormularyDrugV3001"}}]} \ No newline at end of file diff --git a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3002.json b/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3002.json deleted file mode 100644 index b94067cf65c..00000000000 --- a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3002.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"List","id":"CoveragePlanV3002","meta":{"versionId":"1","lastUpdated":"2019-05-22T18:36:03.000+00:00","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"]},"text":{"status":"generated","div":"

    Sample Gold Health Plan

    Date: 2015-06-12Mode: snapshotStatus: current
    Items
    Generated Summary: Percocet 5 MG / 325 MG Oral Tablet
    "},"extension":[{"extension":[{"url":"drugTierID","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","code":"generic","display":"Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier."}]}},{"url":"mailOrder","valueBoolean":true},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-in-retail","display":"1 month in network retail: 1 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":10}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"before-deductible","display":"Before Deductible: The consumer first pays the copay, and any net remaining allowed charges accrue to the deductible (this indicates that this benefit is subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":1},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-out-retail","display":"1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":0}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-in-retail","display":"3 month in network retail: 3 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":0}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-out-retail","display":"3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":0}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"}],"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension","valueString":"https://content.carefirst.com/sbc/D,$0/ D,$0/ D,$0/ D,$0/ D,$0B+"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension","valueString":"http://url/to/formulary/information"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension","valueString":"http://url/to/formulary/information"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension","valueString":"Patrick.Breen@carefirst.com"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension","valueString":"PREFERRED"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension","valueString":"HIOS-PLAN-ID"}],"identifier":[{"value":"test1"}],"status":"current","mode":"snapshot","title":"Sample Gold Health Plan","date":"2015-06-12","entry":[{"item":{"reference":"MedicationKnowledge/FormularyDrugV3001"}}]} \ No newline at end of file diff --git a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3004t.json b/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3004t.json deleted file mode 100644 index 0d72533b1da..00000000000 --- a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3004t.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"List","id":"CoveragePlanV3004t","meta":{"versionId":"1","lastUpdated":"2019-05-22T18:36:03.000+00:00","profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"]},"text":{"status":"generated","div":"

    BluePreferred PPO HSA Silver $3,000

    Date: 2015-06-12Mode: snapshotStatus: current
    Items
    Generated Summary: doxepin HCl 5 % Topical Cream
    "},"extension":[{"extension":[{"url":"drugTierID","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","code":"generic","display":"Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier."}]}},{"url":"mailOrder","valueBoolean":true},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-in-retail","display":"1 month in network retail: 1 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":10}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-out-retail","display":"1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":10}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-in-retail","display":"3 month in network retail: 3 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":20}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-out-retail","display":"3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":20}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"}],"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension"},{"extension":[{"url":"drugTierID","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","code":"zero-cost-share-preventative","display":"Zero cost-share preventative: Preventive medications and products available at no cost."}]}},{"url":"mailOrder","valueBoolean":true},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-in-retail","display":"1 month in network retail: 1 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":0}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-out-retail","display":"1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":0}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-in-retail","display":"3 month in network retail: 3 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":0}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-out-retail","display":"3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":0}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}}],"url":"costSharing"}],"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension"},{"extension":[{"url":"drugTierID","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","code":"preferred-brand","display":"Preferred Brand: Brand name drugs"}]}},{"url":"mailOrder","valueBoolean":true},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-in-retail","display":"1 month in network retail: 1 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":50}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-out-retail","display":"1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":50}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-in-retail","display":"3 month in network retail: 3 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":100}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-out-retail","display":"3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":100}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"}],"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension"},{"extension":[{"url":"drugTierID","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","code":"non-preferred-brand","display":"Non-preferred Brand: Brand name drugs that cost more than ‘brand’ drugs."}]}},{"url":"mailOrder","valueBoolean":true},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-in-retail","display":"1 month in network retail: 1 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":70}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-out-retail","display":"1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":70}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-in-retail","display":"3 month in network retail: 3 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":140}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-out-retail","display":"3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":140}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"}],"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension"},{"extension":[{"url":"drugTierID","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","code":"specialty","display":"Specialty: Drugs used to treat complex conditions like cancer and multiple sclerosis. They can be generic or brand name, and are typically the most expensive drugs on the formulary."}]}},{"url":"mailOrder","valueBoolean":true},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-in-retail","display":"1 month in network retail: 1 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":100}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-out-retail","display":"1 month out of network retail: 1 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":100}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-in-retail","display":"3 month in network retail: 3 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":200}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"3-month-out-retail","display":"3 month out of network retail: 3 Month Supply via out-of-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":200}},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"no-charge","display":"No Charge: No cost sharing is charged (this indicates that this benefit is not subject to the deductible)."}]}},{"url":"coinsuranceRate","valueDecimal":0},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"}],"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension","valueString":"https://content.carefirst.com/sbc/D,$0/ D,$0/ D,$0/ D,$0/ D,$0B+"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension","valueString":"http://url/to/formulary/information"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension","valueString":"http://url/to/formulary/information"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension","valueString":"Patrick.Breen@carefirst.com"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension","valueString":"PREFERRED"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension","valueString":"HIOS-PLAN-ID"}],"identifier":[{"value":"40308VA0240008"}],"status":"current","mode":"snapshot","title":"BluePreferred PPO HSA Silver $3,000","date":"2015-06-12","entry":[{"item":{"reference":"MedicationKnowledge/cmsip9"}}]} \ No newline at end of file diff --git a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/List-covplanV1002.json b/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/List-covplanV1002.json deleted file mode 100644 index 5745ee846d0..00000000000 --- a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/List-covplanV1002.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"List","id":"covplanV1002","meta":{"profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan"]},"text":{"status":"generated","div":"

    Sample Gold Health Plan

    Date: 2015-06-12Mode: snapshotStatus: current
    Items
    Generated Summary: Percocet 5 MG / 325 MG Oral Tablet
    "},"extension":[{"extension":[{"url":"drugTierID","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","code":"brand","display":"Brand: Brand name drugs that cost more than ‘preferred brand’ drugs."}]}},{"url":"mailOrder","valueBoolean":false},{"extension":[{"url":"pharmacyType","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyTypeCS","code":"1-month-in-retail","display":"1 month in network retail: 1 Month Supply via in-network retail pharmacy."}]}},{"url":"copayAmount","valueMoney":{"value":20}},{"url":"coinsuranceRate","valueDecimal":0.2},{"url":"copayOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CopayOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer is responsible only for the copay (this indicates that this benefit is subject to the deductible)."}]}},{"url":"coinsuranceOption","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-CoinsuranceOptionCS","code":"after-deductible","display":"After Deductible: The consumer first pays the deductible, and after the deductible is met, the consumer pays the coinsurance portion of allowed charges (this indicates that this benefit is subject to the deductible)."}]}}],"url":"costSharing"}],"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierDefinition-extension"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-MarketingURL-extension","valueString":"http://url/to/health/plan/information"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-SummaryURL-extension","valueString":"http://url/to/health/plan/information"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyURL-extension","valueString":"http://url/to/formulary/information"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-EmailPlanContact-extension","valueString":"email@address.com"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Network-extension","valueString":"PREFERRED"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanIDType-extension","valueString":"HIOS-PLAN-ID"}],"identifier":[{"value":"HIOS-PLAN-ID"}],"status":"current","mode":"snapshot","title":"Sample Gold Health Plan","date":"2015-06-12","entry":[{"item":{"reference":"MedicationKnowledge/formularydrugV1002"}}]} \ No newline at end of file diff --git a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-FormularyDrugV3001.json b/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-FormularyDrugV3001.json deleted file mode 100644 index ef125d6de3e..00000000000 --- a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-FormularyDrugV3001.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"MedicationKnowledge","id":"FormularyDrugV3001","meta":{"profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"]},"text":{"status":"extensions","div":"

    Generated Narrative

    Drug Tier ID: Brand: Brand name drugs that cost more than ‘preferred brand’ drugs.

    Prior Authorization: false

    Step Therapy Limit: false

    Quantity Limit: false

    Plan ID: 40308VA0240008

    Drug Alternatives: Tylenol Extra Strength 500 MG Oral Tablet. Generated Summary: Tylenol Extra Strength 500 MG Oral Tablet

    code: Percocet 5 MG / 325 MG Oral Tablet

    "},"extension":[{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","code":"brand","display":"Brand: Brand name drugs that cost more than ‘preferred brand’ drugs."}]}},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension","valueBoolean":false},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension","valueBoolean":false},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension","valueBoolean":false},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension","valueString":"40308VA0240008"},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugAlternatives-extension","valueReference":{"reference":"MedicationKnowledge/FormularyDrugV3002","display":"Tylenol Extra Strength 500 MG Oral Tablet"}}],"code":{"coding":[{"system":"http://www.nlm.nih.gov/research/umls/rxnorm","code":"1049640","display":"Percocet 5 MG / 325 MG Oral Tablet"}]}} \ No newline at end of file diff --git a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-FormularyDrugV3002.json b/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-FormularyDrugV3002.json deleted file mode 100644 index c9cc3fd4434..00000000000 --- a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-FormularyDrugV3002.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"MedicationKnowledge","id":"FormularyDrugV3002","meta":{"profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"]},"text":{"status":"extensions","div":"

    Generated Narrative

    Drug Tier ID: Brand: Brand name drugs that cost more than ‘preferred brand’ drugs.

    Prior Authorization: false

    Step Therapy Limit: false

    Quantity Limit: false

    Plan ID: 40308VA0240008

    code: Tylenol Extra Strength 500 MG Oral Tablet

    "},"extension":[{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","code":"brand","display":"Brand: Brand name drugs that cost more than ‘preferred brand’ drugs."}]}},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension","valueBoolean":false},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension","valueBoolean":false},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension","valueBoolean":false},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension","valueString":"40308VA0240008"}],"code":{"coding":[{"system":"http://www.nlm.nih.gov/research/umls/rxnorm","code":"209459","display":"Tylenol Extra Strength 500 MG Oral Tablet"}]}} \ No newline at end of file diff --git a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-cmsip9.json b/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-cmsip9.json deleted file mode 100644 index 94003ee6a17..00000000000 --- a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-cmsip9.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"MedicationKnowledge","id":"cmsip9","meta":{"profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"]},"text":{"status":"extensions","div":"

    Generated Narrative

    Drug Tier ID: Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier.

    Prior Authorization: false

    Step Therapy Limit: true

    Quantity Limit: true

    Plan ID: 40308VA0240008

    code: doxepin HCl 5 % Topical Cream

    "},"extension":[{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","code":"generic","display":"Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier."}]}},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension","valueBoolean":false},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension","valueBoolean":true},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension","valueBoolean":true},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension","valueString":"40308VA0240008"}],"code":{"coding":[{"system":"http://www.nlm.nih.gov/research/umls/rxnorm","code":"1000091","display":"doxepin HCl 5 % Topical Cream"}]}} \ No newline at end of file diff --git a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-formularydrugV1002.json b/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-formularydrugV1002.json deleted file mode 100644 index 710a5736501..00000000000 --- a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-formularydrugV1002.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"MedicationKnowledge","id":"formularydrugV1002","meta":{"profile":["http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"]},"text":{"status":"extensions","div":"

    Generated Narrative

    Drug Tier ID: Brand: Brand name drugs that cost more than ‘preferred brand’ drugs.

    Prior Authorization: false

    Step Therapy Limit: false

    Quantity Limit: false

    Plan ID: 40308VA0240008

    code: Percocet 5 MG / 325 MG Oral Tablet

    "},"extension":[{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension","valueCodeableConcept":{"coding":[{"system":"http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS","code":"brand","display":"Brand: Brand name drugs that cost more than ‘preferred brand’ drugs."}]}},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension","valueBoolean":false},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension","valueBoolean":false},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension","valueBoolean":false},{"url":"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension","valueString":"40308VA0240008"}],"code":{"coding":[{"system":"http://www.nlm.nih.gov/research/umls/rxnorm","code":"1049640","display":"Percocet 5 MG / 325 MG Oral Tablet"}]}} \ No newline at end of file diff --git a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/README.md b/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/README.md deleted file mode 100644 index e1b79404546..00000000000 --- a/fhir-examples/src/main/resources/json/profiles/fhir-ig-davinci-pdex-formulary/README.md +++ /dev/null @@ -1,3 +0,0 @@ -These examples are for DaVinci Payer Data Exchange (PDex) US Drug Formulary STU 1 - -Retrieved 30 NOV 2020 diff --git a/fhir-examples/src/main/resources/profiles-pdex-formulary-json.txt b/fhir-examples/src/main/resources/profiles-pdex-formulary-json.txt deleted file mode 100644 index cf37ff2b8e0..00000000000 --- a/fhir-examples/src/main/resources/profiles-pdex-formulary-json.txt +++ /dev/null @@ -1,8 +0,0 @@ -OK json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3004t.json -OK json/profiles/fhir-ig-davinci-pdex-formulary/List-covplanV1002.json -OK json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3002.json -OK json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3001.json -OK json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-cmsip9.json -OK json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-formularydrugV1002.json -OK json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-FormularyDrugV3001.json -OK json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-FormularyDrugV3002.json \ No newline at end of file diff --git a/fhir-model/src/main/java/com/ibm/fhir/model/type/Xhtml.java b/fhir-model/src/main/java/com/ibm/fhir/model/type/Xhtml.java index 98b3ee0c13a..3a471c99c1e 100644 --- a/fhir-model/src/main/java/com/ibm/fhir/model/type/Xhtml.java +++ b/fhir-model/src/main/java/com/ibm/fhir/model/type/Xhtml.java @@ -11,19 +11,19 @@ import javax.annotation.Generated; +import org.owasp.encoder.Encode; + import com.ibm.fhir.model.annotation.Required; import com.ibm.fhir.model.util.ValidationSupport; import com.ibm.fhir.model.visitor.Visitor; -import org.owasp.encoder.Encode; /** * XHTML */ @Generated("com.ibm.fhir.tools.CodeGenerator") public class Xhtml extends Element { - private static final java.lang.String DIV_OPEN = "
    "; - - private static final java.lang.String DIV_CLOSE = "
    "; + public static final java.lang.String DIV_OPEN = "
    "; + public static final java.lang.String DIV_CLOSE = "
    "; @Required private final java.lang.String value; @@ -35,7 +35,7 @@ private Xhtml(Builder builder) { /** * Actual xhtml - * + * * @return * An immutable object of type {@link java.lang.String} that is non-null. */ @@ -55,7 +55,7 @@ public boolean hasChildren() { /** * Factory method for creating Xhtml objects from an XHTML java.lang.String - * + * * @param value * A java.lang.String with valid XHTML content, not null */ @@ -66,7 +66,7 @@ public static Xhtml of(java.lang.String value) { /** * Factory method for creating Xhtml objects from an XHTML java.lang.String - * + * * @param value * A java.lang.String with valid XHTML content, not null */ @@ -77,10 +77,10 @@ public static Xhtml xhtml(java.lang.String value) { /** * Factory method for creating Xhtml objects from a plain text string - * + * *

    This method will automatically encode the passed string for use within XHTML, * then wrap it in an XHTML {@code

    } element with a namespace of {@code http://www.w3.org/1999/xhtml} - * + * * @param plainText * The text to encode and wrap for use within a Narrative, not null */ @@ -116,8 +116,8 @@ public boolean equals(Object obj) { return false; } Xhtml other = (Xhtml) obj; - return Objects.equals(id, other.id) && - Objects.equals(extension, other.extension) && + return Objects.equals(id, other.id) && + Objects.equals(extension, other.extension) && Objects.equals(value, other.value); } @@ -125,8 +125,8 @@ public boolean equals(Object obj) { public int hashCode() { int result = hashCode; if (result == 0) { - result = Objects.hash(id, - extension, + result = Objects.hash(id, + extension, value); hashCode = result; } @@ -151,10 +151,10 @@ private Builder() { /** * unique id for the element within a resource (for internal references) - * + * * @param id * xml:id (or equivalent in JSON) - * + * * @return * A reference to this Builder instance */ @@ -164,19 +164,19 @@ public Builder id(java.lang.String id) { } /** - * May be used to represent additional information that is not part of the basic definition of the resource. To make the - * use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of - * extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part + * May be used to represent additional information that is not part of the basic definition of the resource. To make the + * use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of + * extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part * of the definition of the extension. - * + * *

    Adds new element(s) to the existing list. * If any of the elements are null, calling {@link #build()} will fail. - * + * *

    This element is prohibited. - * + * * @param extension * Additional content defined by implementations - * + * * @return * A reference to this Builder instance */ @@ -186,22 +186,22 @@ public Builder extension(Extension... extension) { } /** - * May be used to represent additional information that is not part of the basic definition of the resource. To make the - * use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of - * extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part + * May be used to represent additional information that is not part of the basic definition of the resource. To make the + * use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of + * extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part * of the definition of the extension. - * + * *

    Replaces the existing list with a new one containing elements from the Collection. * If any of the elements are null, calling {@link #build()} will fail. - * + * *

    This element is prohibited. - * + * * @param extension * Additional content defined by implementations - * + * * @return * A reference to this Builder instance - * + * * @throws NullPointerException * If the passed collection is null */ @@ -212,12 +212,12 @@ public Builder extension(Collection extension) { /** * Actual xhtml - * + * *

    This element is required. - * + * * @param value * Actual xhtml - * + * * @return * A reference to this Builder instance */ @@ -228,12 +228,12 @@ public Builder value(java.lang.String value) { /** * Build the {@link Xhtml} - * + * *

    Required elements: *

      *
    • value
    • *
    - * + * * @return * An immutable object of type {@link Xhtml} * @throws IllegalStateException diff --git a/fhir-model/src/main/java/com/ibm/fhir/model/visitor/PathAwareCollectingVisitor.java b/fhir-model/src/main/java/com/ibm/fhir/model/visitor/PathAwareCollectingVisitor.java new file mode 100644 index 00000000000..ee55ebe090b --- /dev/null +++ b/fhir-model/src/main/java/com/ibm/fhir/model/visitor/PathAwareCollectingVisitor.java @@ -0,0 +1,99 @@ +/* + * (C) Copyright IBM Corp. 2022 + * + * SPDX-License-Identifier: Apache-2.0 + */ +package com.ibm.fhir.model.visitor; + +import java.math.BigDecimal; +import java.time.LocalDate; +import java.time.LocalTime; +import java.time.Year; +import java.time.YearMonth; +import java.time.ZonedDateTime; +import java.util.Collections; +import java.util.LinkedHashMap; +import java.util.Map; + +/** + * Visits a Resource or Element and collects all of its descendants of a given type into a collection + * of those elements, indexed by their simple FHIRPath path. + * + * @param The type of object to collect + * @implNote The order of the list will be consistent with a depth-first traversal of the visited object + */ +public class PathAwareCollectingVisitor extends PathAwareVisitor { + protected final Map result = new LinkedHashMap<>(); + protected final Class type; + + public PathAwareCollectingVisitor(Class type) { + super(); + this.type = type; + } + + protected void collect(Object object) { + if (type.isInstance(object)) { + result.put(getPath(), type.cast(object)); + } + } + + public Map getResult() { + return Collections.unmodifiableMap(result); + } + + @Override + public boolean visit(java.lang.String elementName, int elementIndex, Visitable visitable) { + collect(visitable); + return true; + } + + @Override + public void doVisit(java.lang.String elementName, byte[] value) { + collect(value); + } + + @Override + public void doVisit(java.lang.String elementName, BigDecimal value) { + collect(value); + } + + @Override + public void doVisit(java.lang.String elementName, java.lang.Boolean value) { + collect(value); + } + + @Override + public void doVisit(java.lang.String elementName, java.lang.Integer value) { + collect(value); + } + + @Override + public void doVisit(java.lang.String elementName, LocalDate value) { + collect(value); + } + + @Override + public void doVisit(java.lang.String elementName, LocalTime value) { + collect(value); + } + + @Override + public void doVisit(java.lang.String elementName, java.lang.String value) { + collect(value); + } + + @Override + public void doVisit(java.lang.String elementName, Year value) { + collect(value); + } + + @Override + public void doVisit(java.lang.String elementName, YearMonth value) { + collect(value); + } + + @Override + public void doVisit(java.lang.String elementName, ZonedDateTime value) { + collect(value); + } +} diff --git a/fhir-model/src/test/java/com/ibm/fhir/model/visitor/test/PathAwareCollectingVisitorTest.java b/fhir-model/src/test/java/com/ibm/fhir/model/visitor/test/PathAwareCollectingVisitorTest.java new file mode 100644 index 00000000000..5a4210fe166 --- /dev/null +++ b/fhir-model/src/test/java/com/ibm/fhir/model/visitor/test/PathAwareCollectingVisitorTest.java @@ -0,0 +1,62 @@ +/* + * (C) Copyright IBM Corp. 2022 + * + * SPDX-License-Identifier: Apache-2.0 + */ + +package com.ibm.fhir.model.visitor.test; + +import java.time.LocalDate; +import java.time.ZoneOffset; +import java.time.ZonedDateTime; + +import org.testng.annotations.Test; + +import com.ibm.fhir.model.resource.Patient; +import com.ibm.fhir.model.resource.ValueSet; +import com.ibm.fhir.model.resource.ValueSet.Expansion; +import com.ibm.fhir.model.type.DateTime; +import com.ibm.fhir.model.type.Extension; +import com.ibm.fhir.model.type.HumanName; +import com.ibm.fhir.model.type.Meta; +import com.ibm.fhir.model.type.Narrative; +import com.ibm.fhir.model.type.Xhtml; +import com.ibm.fhir.model.type.code.NarrativeStatus; +import com.ibm.fhir.model.type.code.PublicationStatus; +import com.ibm.fhir.model.visitor.PathAwareCollectingVisitor; + +public class PathAwareCollectingVisitorTest { + @Test + public void testPrimitiveSetterEquivalence() { + Patient p1 = Patient.builder() + .text(Narrative.builder() + .status(NarrativeStatus.ADDITIONAL) + .div(Xhtml.of(Xhtml.DIV_OPEN + "
    this
    is
    a test
    " + Xhtml.DIV_CLOSE)) + .build()) + .meta(Meta.builder() + .lastUpdated(ZonedDateTime.of(2021, 8, 19, 00, 59, 59, 0, ZoneOffset.of("-05:00"))) // Instant + .build()) + .extension(Extension.builder() + .url("test") + .value("string") + .build()) + .contained(ValueSet.builder() + .status(PublicationStatus.DRAFT) + .expansion(Expansion.builder() + .timestamp(DateTime.of("2021-08-19T00:59:59-05:00")) + .total(0) // Integer + .build()) + .build()) + .active(false) // Boolean + .birthDate(LocalDate.of(1984, 9, 4)) // Date + .multipleBirth(1) + .name(HumanName.builder() + .given("Lee") // String + .build()) + .build(); + + PathAwareCollectingVisitor extCollector = new PathAwareCollectingVisitor(Extension.class); + p1.accept(extCollector); + System.out.println(extCollector.getResult()); + } +} diff --git a/fhir-path/src/main/java/com/ibm/fhir/path/function/MemberOfFunction.java b/fhir-path/src/main/java/com/ibm/fhir/path/function/MemberOfFunction.java index 775eb0fd3f5..d585b937946 100644 --- a/fhir-path/src/main/java/com/ibm/fhir/path/function/MemberOfFunction.java +++ b/fhir-path/src/main/java/com/ibm/fhir/path/function/MemberOfFunction.java @@ -351,7 +351,14 @@ private CodeSystem getCodeSystem(ValueSet valueSet, Uri system, com.ibm.fhir.mod for (Include include : compose.getInclude()) { if (include.getSystem().equals(system) && (include.getVersion() == null || version == null || include.getVersion().equals(version))) { - String url = (version != null && version.getValue() != null) ? system.getValue() + "|" + version.getValue() : system.getValue(); + + String url = system.getValue(); + if (version != null && version.hasValue()) { + url += "|" + version.getValue(); + } else if (include.getVersion() != null && include.getVersion().hasValue()) { + url += "|" + include.getVersion().getValue(); + } + return CodeSystemSupport.getCodeSystem(url); } } diff --git a/fhir-profile/src/main/java/com/ibm/fhir/profile/ConstraintGenerator.java b/fhir-profile/src/main/java/com/ibm/fhir/profile/ConstraintGenerator.java index 4cc4e3cefc1..0b39711ded4 100644 --- a/fhir-profile/src/main/java/com/ibm/fhir/profile/ConstraintGenerator.java +++ b/fhir-profile/src/main/java/com/ibm/fhir/profile/ConstraintGenerator.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2021 + * (C) Copyright IBM Corp. 2019, 2022 * * SPDX-License-Identifier: Apache-2.0 */ @@ -368,7 +368,7 @@ private String discriminator(Node node) { // optimization if (hasProfileConstraint(elementDefinition)) { Type type = getTypes(elementDefinition).get(0); - String profile = getProfiles(type).get(0); + String profile = getProfilesWithoutVersion(type).get(0); sb.append("extension('").append(profile).append("')"); } else { String url = getExtensionUrl(node); @@ -490,13 +490,17 @@ private String generate(Node node) { return trace(node, sb.toString()); } + /** + * Guard calls to this method with calls to {@link #hasExtensionConstraint(ElementDefinition)} + * to ensure that the node's ElementDefinition has a single type with a single profile. + */ private String generateExtensionConstraint(Node node) { StringBuilder sb = new StringBuilder(); ElementDefinition elementDefinition = node.elementDefinition; Type type = getTypes(elementDefinition).get(0); - String profile = getProfiles(type).get(0); + String profile = getProfilesWithoutVersion(type).get(0); sb.append("extension('").append(profile).append("')").append(cardinality(node, sb.toString())); @@ -600,12 +604,18 @@ private String generatePatternValueConstraint(Node node, boolean discriminator) return sb.toString(); } + /** + * Guard calls to this method with calls to {@link #hasProfileConstraint(ElementDefinition)} + * to ensure that the node's ElementDefinition has a single type with a single profile. + */ private String generateProfileConstraint(Node node) { StringBuilder sb = new StringBuilder(); - + ElementDefinition elementDefinition = node.elementDefinition; - String profile = getProfiles(getTypes(elementDefinition).get(0)).get(0); + List types = getTypes(elementDefinition); + List profiles = types.get(0).getProfile(); + String profile = profiles.get(0).getValue(); sb.append("conformsTo('").append(profile).append("')"); return sb.toString(); @@ -618,6 +628,10 @@ private String generateProhibitedConstraint(ElementDefinition elementDefinition) return sb.toString(); } + /** + * Guard calls to this method with calls to {@link #hasReferenceTypeConstraint(ElementDefinition)} + * to ensure that the node's ElementDefinition has a single type. + */ private String generateReferenceTypeConstraint(Node node) { StringBuilder sb = new StringBuilder(); @@ -709,11 +723,29 @@ private String getMaxValueSet(Binding binding) { return null; } - private List getProfiles(Type type) { + /** + * Get the list of profiles referenced by the ElementDefinition.type. + * This method will strip any version or fragment suffixes from the canonical reference value. + */ + private List getProfilesWithoutVersion(Type type) { List profiles = new ArrayList<>(); for (Canonical profile : type.getProfile()) { - if (profile.getValue() != null) { - profiles.add(profile.getValue()); + if (profile.hasValue()) { + String profileString = profile.getValue(); + + // First strip off any version suffix + int delIndex = profileString.lastIndexOf("|"); + if (delIndex > 0) { + profileString = profileString.substring(0, delIndex); + } + + // If the version suffix didn't exist, we might have a fragment to strip + delIndex = profileString.lastIndexOf("#"); + if (delIndex > 0) { + profileString = profileString.substring(0, delIndex); + } + + profiles.add(profileString); } } return profiles; @@ -860,7 +892,7 @@ private boolean hasPatternValueConstraint(ElementDefinition elementDefinition) { private boolean hasProfileConstraint(ElementDefinition elementDefinition) { List types = getTypes(elementDefinition); if (types.size() == 1) { - List profiles = getProfiles(types.get(0)); + List profiles = getProfilesWithoutVersion(types.get(0)); return (profiles.size() == 1) && !isQuantityProfile(profiles.get(0)); } return false; diff --git a/fhir-server-test/pom.xml b/fhir-server-test/pom.xml index 5c8bc57430a..09a87d436f4 100644 --- a/fhir-server-test/pom.xml +++ b/fhir-server-test/pom.xml @@ -179,6 +179,13 @@ test-jar test + + ${project.groupId} + fhir-ig-davinci-pdex-formulary + ${project.version} + test-jar + test + diff --git a/fhir-server-test/src/test/java/com/ibm/fhir/server/test/profiles/DavinciDrugFormularyTest.java b/fhir-server-test/src/test/java/com/ibm/fhir/server/test/profiles/DavinciDrugFormularyTest.java index 81af219af12..685660e15d6 100644 --- a/fhir-server-test/src/test/java/com/ibm/fhir/server/test/profiles/DavinciDrugFormularyTest.java +++ b/fhir-server-test/src/test/java/com/ibm/fhir/server/test/profiles/DavinciDrugFormularyTest.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2020, 2021 + * (C) Copyright IBM Corp. 2020, 2022 * * SPDX-License-Identifier: Apache-2.0 */ @@ -9,6 +9,7 @@ import static org.testng.Assert.assertNotNull; import static org.testng.Assert.assertTrue; +import java.io.InputStream; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; @@ -23,9 +24,10 @@ import com.ibm.fhir.client.FHIRParameters; import com.ibm.fhir.client.FHIRResponse; import com.ibm.fhir.core.FHIRMediaType; +import com.ibm.fhir.model.format.Format; +import com.ibm.fhir.model.parser.FHIRParser; import com.ibm.fhir.model.resource.Bundle; import com.ibm.fhir.model.resource.MedicationKnowledge; -import com.ibm.fhir.model.test.TestUtil; /** * Tests using http://hl7.org/fhir/us/davinci-drug-formulary/index.html#anticipated-client-queries and the given @@ -48,11 +50,9 @@ public class DavinciDrugFormularyTest extends ProfilesTestBase { @Override public List getRequiredProfiles() { - //@formatter:off return Arrays.asList( "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-CoveragePlan|1.0.1", "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug|1.0.1"); - //@formatter:on } @Override @@ -65,9 +65,10 @@ public void setCheck(Boolean check) { } public void loadCoveragePlan1() throws Exception { - String resource = "json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3001.json"; + String resource = "examples/101/List-CoveragePlanV3001.json"; WebTarget target = getWebTarget(); - com.ibm.fhir.model.resource.List list = TestUtil.readExampleResource(resource); + InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(resource); + com.ibm.fhir.model.resource.List list = FHIRParser.parser(Format.JSON).parse(inputStream); Entity entity = Entity.entity(list, FHIRMediaType.APPLICATION_FHIR_JSON); Response response = target.path("List").request().post(entity, Response.class); assertResponse(response, Response.Status.CREATED.getStatusCode()); @@ -78,9 +79,10 @@ public void loadCoveragePlan1() throws Exception { } public void loadCoveragePlan2() throws Exception { - String resource = "json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3002.json"; + String resource = "examples/101/List-CoveragePlanV3002.json"; WebTarget target = getWebTarget(); - com.ibm.fhir.model.resource.List list = TestUtil.readExampleResource(resource); + InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(resource); + com.ibm.fhir.model.resource.List list = FHIRParser.parser(Format.JSON).parse(inputStream); Entity entity = Entity.entity(list, FHIRMediaType.APPLICATION_FHIR_JSON); Response response = target.path("List").request().post(entity, Response.class); assertResponse(response, Response.Status.CREATED.getStatusCode()); @@ -91,9 +93,10 @@ public void loadCoveragePlan2() throws Exception { } public void loadCoveragePlan3() throws Exception { - String resource = "json/profiles/fhir-ig-davinci-pdex-formulary/List-CoveragePlanV3004t.json"; + String resource = "examples/101/List-CoveragePlanV3004t.json"; WebTarget target = getWebTarget(); - com.ibm.fhir.model.resource.List list = TestUtil.readExampleResource(resource); + InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(resource); + com.ibm.fhir.model.resource.List list = FHIRParser.parser(Format.JSON).parse(inputStream); Entity entity = Entity.entity(list, FHIRMediaType.APPLICATION_FHIR_JSON); Response response = target.path("List").request().post(entity, Response.class); assertResponse(response, Response.Status.CREATED.getStatusCode()); @@ -104,9 +107,10 @@ public void loadCoveragePlan3() throws Exception { } public void loadCoveragePlan4() throws Exception { - String resource = "json/profiles/fhir-ig-davinci-pdex-formulary/List-covplanV1002.json"; + String resource = "examples/101/List-covplanV1002.json"; WebTarget target = getWebTarget(); - com.ibm.fhir.model.resource.List list = TestUtil.readExampleResource(resource); + InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(resource); + com.ibm.fhir.model.resource.List list = FHIRParser.parser(Format.JSON).parse(inputStream); Entity entity = Entity.entity(list, FHIRMediaType.APPLICATION_FHIR_JSON); Response response = target.path("List").request().post(entity, Response.class); assertResponse(response, Response.Status.CREATED.getStatusCode()); @@ -117,9 +121,10 @@ public void loadCoveragePlan4() throws Exception { } public void loadMedicationKnowledge1() throws Exception { - String resource = "json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-cmsip9.json"; + String resource = "examples/101/MedicationKnowledge-cmsip9.json"; WebTarget target = getWebTarget(); - MedicationKnowledge mk = TestUtil.readExampleResource(resource); + InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(resource); + MedicationKnowledge mk = FHIRParser.parser(Format.JSON).parse(inputStream); Entity entity = Entity.entity(mk, FHIRMediaType.APPLICATION_FHIR_JSON); Response response = target.path("MedicationKnowledge").request().post(entity, Response.class); assertResponse(response, Response.Status.CREATED.getStatusCode()); @@ -130,9 +135,10 @@ public void loadMedicationKnowledge1() throws Exception { } public void loadMedicationKnowledge2() throws Exception { - String resource = "json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-formularydrugV1002.json"; + String resource = "examples/101/MedicationKnowledge-formularydrugV1002.json"; WebTarget target = getWebTarget(); - MedicationKnowledge mk = TestUtil.readExampleResource(resource); + InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(resource); + MedicationKnowledge mk = FHIRParser.parser(Format.JSON).parse(inputStream); Entity entity = Entity.entity(mk, FHIRMediaType.APPLICATION_FHIR_JSON); Response response = target.path("MedicationKnowledge").request().post(entity, Response.class); assertResponse(response, Response.Status.CREATED.getStatusCode()); @@ -143,9 +149,10 @@ public void loadMedicationKnowledge2() throws Exception { } public void loadMedicationKnowledge3() throws Exception { - String resource = "json/profiles/fhir-ig-davinci-pdex-formulary/MedicationKnowledge-FormularyDrugV3001.json"; + String resource = "examples/101/MedicationKnowledge-FormularyDrugV3001.json"; WebTarget target = getWebTarget(); - MedicationKnowledge mk = TestUtil.readExampleResource(resource); + InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(resource); + MedicationKnowledge mk = FHIRParser.parser(Format.JSON).parse(inputStream); Entity entity = Entity.entity(mk, FHIRMediaType.APPLICATION_FHIR_JSON); Response response = target.path("MedicationKnowledge").request().post(entity, Response.class); assertResponse(response, Response.Status.CREATED.getStatusCode()); diff --git a/fhir-server-test/src/test/java/com/ibm/fhir/server/test/terminology/CodeSystemClearCacheOperationTest.java b/fhir-server-test/src/test/java/com/ibm/fhir/server/test/terminology/CodeSystemClearCacheOperationTest.java index ed2e4d68919..eeb3f44f23a 100644 --- a/fhir-server-test/src/test/java/com/ibm/fhir/server/test/terminology/CodeSystemClearCacheOperationTest.java +++ b/fhir-server-test/src/test/java/com/ibm/fhir/server/test/terminology/CodeSystemClearCacheOperationTest.java @@ -79,12 +79,12 @@ public void testClearCacheValidateCode() throws Exception { parameters = validateCode(SNOMED_CT, "K"); assertEquals(getBooleanParameterValue(parameters, "result"), Boolean.TRUE); - // Update the resource + // Updating the CodeSystem resource makes the cache stale response = doPut("CodeSystem", CODE_SYSTEM_ID, "testdata/CodeSystem-test-updated.json"); assertEquals(response.getStatus(), Response.Status.OK.getStatusCode()); parameters = validateCode(SNOMED_CT, "K"); - assertEquals(getBooleanParameterValue(parameters, "result"), Boolean.TRUE); + assertEquals(getBooleanParameterValue(parameters, "result"), Boolean.FALSE); // After cache is cleared, subsumes outcome should be updated clearCache(); diff --git a/fhir-validation/src/main/java/com/ibm/fhir/validation/FHIRValidator.java b/fhir-validation/src/main/java/com/ibm/fhir/validation/FHIRValidator.java index 61722596fe3..9e10f3d2c78 100644 --- a/fhir-validation/src/main/java/com/ibm/fhir/validation/FHIRValidator.java +++ b/fhir-validation/src/main/java/com/ibm/fhir/validation/FHIRValidator.java @@ -1,5 +1,5 @@ /* - * (C) Copyright IBM Corp. 2019, 2021 + * (C) Copyright IBM Corp. 2019, 2022 * * SPDX-License-Identifier: Apache-2.0 */ @@ -29,12 +29,17 @@ import java.util.Arrays; import java.util.Collection; import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Objects; +import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; +import java.util.stream.Collectors; import com.ibm.fhir.model.annotation.Constraint; import com.ibm.fhir.model.annotation.Constraint.FHIRPathConstraintValidator; @@ -47,6 +52,7 @@ import com.ibm.fhir.model.type.code.IssueSeverity; import com.ibm.fhir.model.type.code.IssueType; import com.ibm.fhir.model.util.ModelSupport; +import com.ibm.fhir.model.visitor.PathAwareCollectingVisitor; import com.ibm.fhir.model.visitor.Visitable; import com.ibm.fhir.path.FHIRPathElementNode; import com.ibm.fhir.path.FHIRPathNode; @@ -58,6 +64,7 @@ import com.ibm.fhir.path.visitor.FHIRPathDefaultNodeVisitor; import com.ibm.fhir.profile.ProfileSupport; import com.ibm.fhir.registry.FHIRRegistry; +import com.ibm.fhir.registry.resource.FHIRRegistryResource; import com.ibm.fhir.validation.exception.FHIRValidationException; import net.jcip.annotations.NotThreadSafe; @@ -300,16 +307,6 @@ public void doVisit(FHIRPathResourceNode node) { private void validate(FHIRPathElementNode elementNode) { Class elementType = elementNode.element().getClass(); List constraints = new ArrayList<>(ModelSupport.getConstraints(elementType)); - if (Extension.class.equals(elementType)) { - String url = elementNode.element().as(Extension.class).getUrl(); - if (isAbsolute(url)) { - if (FHIRRegistry.getInstance().hasResource(url, StructureDefinition.class)) { - constraints.add(Constraint.Factory.createConstraint("generated-ext-1", Constraint.LEVEL_RULE, Constraint.LOCATION_BASE, "Extension must conform to definition '" + url + "'", "conformsTo('" + url + "')", SOURCE_VALIDATOR, false, true)); - } else { - issues.add(issue(IssueSeverity.WARNING, IssueType.NOT_SUPPORTED, "Extension definition '" + url + "' is not supported", elementNode)); - } - } - } validate(elementNode, constraints); } @@ -334,9 +331,67 @@ private void validate(FHIRPathResourceNode resourceNode) { validateProfileReferences(resourceNode, profiles, false); constraints.addAll(ProfileSupport.getConstraints(profiles, resourceType)); } + + // add instance-specific extension constraints + PathAwareCollectingVisitor extCollector = new PathAwareCollectingVisitor(Extension.class); + resourceNode.resource().accept(extCollector); + Map pathToExtension = extCollector.getResult(); + + // for option A below: find all the versions of the extension in the registry + Map> profileVersions = collectProfileVersions(pathToExtension.values()); + + for (Entry entry : pathToExtension.entrySet()) { + String path = entry.getKey(); + Extension e = entry.getValue(); + String url = e.getUrl(); + if (isAbsolute(url)) { + // Option A: find all versions of the extension and pass validation if the instance conforms to at least one + // Option B: introspect the existing constraints and only add this one if the extension is not covered by profile constraints + + // Option A: conformance to any one version of the extension is sufficient + if (profileVersions.containsKey(url)) { + String constraint = profileVersions.get(url).stream() + .map(v -> "conformsTo('" + url + "|" + v + "')") + .collect(Collectors.joining(" or ")); + + constraints.add(Constraint.Factory.createConstraint("generated-ext-1", Constraint.LEVEL_RULE, path, + "Extension must conform to at least one definition of '" + url + "'", constraint, SOURCE_VALIDATOR, false, true)); + } else { + issues.add(issue(IssueSeverity.WARNING, IssueType.NOT_SUPPORTED, "Extension definition '" + url + "' is not supported", null, path)); + } + + // Option B: conditionally add a conformsTo constraint for the default/latest version of this extension +// if (FHIRRegistry.getInstance().hasResource(url, StructureDefinition.class)) { +// constraints.add(Constraint.Factory.createConstraint("generated-ext-2", Constraint.LEVEL_RULE, path, +// "Extension must conform to definition '" + url + "'", +// "conformsTo('" + url + "')", SOURCE_VALIDATOR, false, true)); +// } else { +// issues.add(issue(IssueSeverity.WARNING, IssueType.NOT_SUPPORTED, "Extension definition '" + url + "' is not supported", null, path)); +// } + } + } + validate(resourceNode, constraints); } + private Map> collectProfileVersions(Collection extensions) { + Map> profileVersions = new HashMap<>(); + + Set uniqueExtensionUrls = extensions.stream() + .map(e -> e.getUrl()) + .distinct() + .collect(Collectors.toSet()); + + // RegistryResourceProviders have a method thats basically just what we want, but unfortunately the registry does not + for (FHIRRegistryResource rr : FHIRRegistry.getInstance().getRegistryResources(StructureDefinition.class)) { + if (uniqueExtensionUrls.contains(rr.getUrl()) && rr.getVersion() != null) { + profileVersions.computeIfAbsent(rr.getUrl(), x -> new HashSet<>()).add(rr.getVersion().toString()); + } + } + + return profileVersions; + } + private void validateProfileReferences(FHIRPathResourceNode resourceNode, List profiles, boolean resourceAsserted) { Class resourceType = resourceNode.resource().getClass(); for (String url : profiles) { diff --git a/fhir-validation/src/test/java/com/ibm/fhir/validation/test/FHIRValidatorTest.java b/fhir-validation/src/test/java/com/ibm/fhir/validation/test/FHIRValidatorTest.java index 2ae862fce53..d820d96c746 100644 --- a/fhir-validation/src/test/java/com/ibm/fhir/validation/test/FHIRValidatorTest.java +++ b/fhir-validation/src/test/java/com/ibm/fhir/validation/test/FHIRValidatorTest.java @@ -17,6 +17,9 @@ import java.util.List; import java.util.UUID; +import org.testng.Assert; +import org.testng.annotations.Test; + import com.ibm.fhir.model.format.Format; import com.ibm.fhir.model.generator.FHIRGenerator; import com.ibm.fhir.model.parser.FHIRParser; @@ -42,9 +45,6 @@ import com.ibm.fhir.validation.FHIRValidator; import com.ibm.fhir.validation.exception.FHIRValidationException; -import org.testng.Assert; -import org.testng.annotations.Test; - public class FHIRValidatorTest { @Test public void testPatientValidation() throws Exception { @@ -99,9 +99,17 @@ public void testPatientValidation() throws Exception { } assertEquals(issues.size(), 3); assertEquals(issues.get(0).getSeverity(), IssueSeverity.WARNING); - assertTrue(issues.get(0).getDetails().getText().getValue().contains("dom-6: A resource should have narrative for robust management")); + assertTrue(issues.get(0).getDetails().getText().getValue().contains("Extension definition 'http://www.ibm.com/someExtension' is not supported")); assertTrue(issues.get(0).getExpression().size() == 1); - assertTrue(issues.get(0).getExpression().get(0).getValue().equals("Patient")); + assertTrue(issues.get(0).getExpression().get(0).getValue().equals("Patient.name[0].given[0].extension[0]")); + assertEquals(issues.get(1).getSeverity(), IssueSeverity.WARNING); + assertTrue(issues.get(1).getDetails().getText().getValue().contains("Extension definition 'http://www.ibm.com/someExtension' is not supported")); + assertTrue(issues.get(1).getExpression().size() == 1); + assertTrue(issues.get(1).getExpression().get(0).getValue().equals("Patient.name[0].given[1].extension[0]")); + assertEquals(issues.get(2).getSeverity(), IssueSeverity.WARNING); + assertTrue(issues.get(2).getDetails().getText().getValue().contains("dom-6: A resource should have narrative for robust management")); + assertTrue(issues.get(2).getExpression().size() == 1); + assertTrue(issues.get(2).getExpression().get(0).getValue().equals("Patient")); } @Test @@ -205,9 +213,9 @@ public void testCodingValidation() throws FHIRValidationException { List issues = FHIRValidator.validator().validate(endpoint); // 1. Profile 'http://hl7.org/fhir/us/davinci-pdex-plan-net/StructureDefinition/plannet-Endpoint' is not supported // 2. dom-6: A resource should have narrative for robust management - // 3. Code 'hl7-fhir-opn' in system 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/EndpointConnectionTypeCS' + // 3. Code 'hl7-fhir-opn' in system 'http://hl7.org/fhir/us/davinci-pdex-plan-net/CodeSystem/EndpointConnectionTypeCS' // is not a valid member of ValueSet with URL=http://hl7.org/fhir/ValueSet/endpoint-connection-type and version=4.0.1 - // 4. endpoint-0: The concept in this element must be from the specified value set + // 4. endpoint-0: The concept in this element must be from the specified value set // 'http://hl7.org/fhir/ValueSet/endpoint-connection-type' if possible assertEquals(issues.size(), 4, "number of issues"); } diff --git a/term/fhir-term/src/main/java/com/ibm/fhir/term/service/FHIRTermService.java b/term/fhir-term/src/main/java/com/ibm/fhir/term/service/FHIRTermService.java index a1efd7097b4..a3480eb74ef 100644 --- a/term/fhir-term/src/main/java/com/ibm/fhir/term/service/FHIRTermService.java +++ b/term/fhir-term/src/main/java/com/ibm/fhir/term/service/FHIRTermService.java @@ -416,34 +416,74 @@ public LookupOutcome lookup(Coding coding, LookupParameters parameters) { if (!LookupParameters.EMPTY.equals(parameters)) { throw new UnsupportedOperationException("Lookup parameters are not suppored"); } + java.lang.String system = (coding.getSystem() != null) ? coding.getSystem().getValue() : null; + java.lang.String version = (coding.getVersion() != null) ? coding.getVersion().getValue() : null; + java.lang.String url = (version != null) ? system + "|" + version : system; + CodeSystem codeSystem = CodeSystemSupport.getCodeSystem(url); + if (codeSystem == null) { + LOGGER.fine(() -> "Unable to find CodeSystem with url: " + url); + return null; + } + return lookup(codeSystem, coding, parameters); + } + + /** + * Lookup the code system concept for the given coding within the passed CodeSystem + * @param codeSystem + * the code system to look in + * @param coding + * the coding to lookup + * @param parameters + * the lookup parameters + * + * @return + * the outcome of the lookup + */ + public LookupOutcome lookup(CodeSystem codeSystem, Coding coding, LookupParameters parameters) { + if (!LookupParameters.EMPTY.equals(parameters)) { + throw new UnsupportedOperationException("Lookup parameters are not suppored"); + } + Objects.requireNonNull(coding, "coding"); + Objects.requireNonNull(codeSystem, "codeSystem"); Uri system = coding.getSystem(); Code code = coding.getCode(); - if (system != null && code != null) { - java.lang.String version = (coding.getVersion() != null) ? coding.getVersion().getValue() : null; - java.lang.String url = (version != null) ? system.getValue() + "|" + version : system.getValue(); - CodeSystem codeSystem = CodeSystemSupport.getCodeSystem(url); - if (codeSystem != null) { - Concept concept = findProvider(codeSystem).getConcept(codeSystem, code); - if (concept != null) { - return LookupOutcome.builder() - .name((codeSystem.getName() != null) ? codeSystem.getName() : STRING_DATA_ABSENT_REASON_UNKNOWN) - .version(codeSystem.getVersion()) - .display((concept.getDisplay() != null) ? concept.getDisplay() : STRING_DATA_ABSENT_REASON_UNKNOWN) - .property(concept.getProperty().stream() - .map(property -> Property.builder() - .code(property.getCode()) - .value(property.getValue()) - .build()) - .collect(Collectors.toList())) - .designation(concept.getDesignation().stream() - .map(designation -> Designation.builder() - .language(designation.getLanguage()) - .use(designation.getUse()) - .value(designation.getValue()) - .build()) - .collect(Collectors.toList())) - .build(); + + if (coding.getVersion() != null) { + if (codeSystem.getVersion() != null && codeSystem.getVersion().hasValue()) { + java.lang.String systemVersion = codeSystem.getVersion().getValue(); + if (!systemVersion.equals(coding.getVersion().getValue())) { + java.lang.String systemUrl = (codeSystem.getUrl() == null) ? null : codeSystem.getUrl().getValue(); + LOGGER.info("Client code requested version " + coding.getVersion().getValue() + " but the" + + " passed CodeSystem (" + systemUrl + ") was version " + systemVersion); + return null; } + } else { + LOGGER.info("Client code requested version " + coding.getVersion().getValue() + " but using" + + " a CodeSystem (" + codeSystem.getUrl() + ") with no version info."); + } + } + + if (system != null && code != null) { + Concept concept = findProvider(codeSystem).getConcept(codeSystem, code); + if (concept != null) { + return LookupOutcome.builder() + .name((codeSystem.getName() != null) ? codeSystem.getName() : STRING_DATA_ABSENT_REASON_UNKNOWN) + .version(codeSystem.getVersion()) + .display((concept.getDisplay() != null) ? concept.getDisplay() : STRING_DATA_ABSENT_REASON_UNKNOWN) + .property(concept.getProperty().stream() + .map(property -> Property.builder() + .code(property.getCode()) + .value(property.getValue()) + .build()) + .collect(Collectors.toList())) + .designation(concept.getDesignation().stream() + .map(designation -> Designation.builder() + .language(designation.getLanguage()) + .use(designation.getUse()) + .value(designation.getValue()) + .build()) + .collect(Collectors.toList())) + .build(); } } return null; @@ -749,9 +789,9 @@ public ValidationOutcome validateCode(CodeSystem codeSystem, CodeableConcept cod .append(codeSystem.getVersion() == null ? null : codeSystem.getVersion().getValue()); LOGGER.fine(message.toString()); } - + // If we add a message to this ValidationOutcome, then it will create a new issue in the issue list; - // our assumption here is that the false result will instead bubble up to some other issue and so we + // our assumption here is that the false result will instead bubble up to some other issue and so we // chose not to create redundant issues. return buildValidationOutcome(false); } @@ -786,7 +826,7 @@ public ValidationOutcome validateCode(CodeSystem codeSystem, Coding coding, Vali if (!ValidationParameters.EMPTY.equals(parameters)) { throw new UnsupportedOperationException("Validation parameters are not supported"); } - LookupOutcome outcome = lookup(coding, LookupParameters.EMPTY); + LookupOutcome outcome = lookup(codeSystem, coding, LookupParameters.EMPTY); if (outcome != null) { return validateDisplay(null, coding, outcome); } else { @@ -799,7 +839,7 @@ public ValidationOutcome validateCode(CodeSystem codeSystem, Coding coding, Vali message.append(coding.getSystem().getValue()); } message.append("'"); - + return buildValidationOutcome(false, message.toString()); } } @@ -938,7 +978,7 @@ public ValidationOutcome validateCode(ValueSet valueSet, CodeableConcept codeabl return validateDisplay(null, coding, outcome); } } - + if (LOGGER.isLoggable(Level.FINE)) { StringBuilder message = new StringBuilder() .append("None of the Coding values in the CodeableConcept were found to be valid in ValueSet with URL=") @@ -949,7 +989,7 @@ public ValidationOutcome validateCode(ValueSet valueSet, CodeableConcept codeabl } // If we add a message to this ValidationOutcome, then it will create a new issue in the issue list; - // our assumption here is that the false result will instead bubble up to some other issue and so we + // our assumption here is that the false result will instead bubble up to some other issue and so we // chose not to create redundant issues. return buildValidationOutcome(false); } @@ -1082,7 +1122,8 @@ private Uri getSource(ConceptMap conceptMap) { private List loadProviders() { List providers = new ArrayList<>(); - providers.add(FHIRTermConfig.isCachingDisabled() ? new RegistryTermServiceProvider() : CachingProxy.newInstance(FHIRTermServiceProvider.class, new RegistryTermServiceProvider())); + providers.add(FHIRTermConfig.isCachingDisabled() ? new RegistryTermServiceProvider() + : CachingProxy.newInstance(FHIRTermServiceProvider.class, new RegistryTermServiceProvider())); Iterator iterator = ServiceLoader.load(FHIRTermServiceProvider.class).iterator(); while (iterator.hasNext()) { providers.add(iterator.next()); @@ -1109,11 +1150,11 @@ private ValidationOutcome validateDisplay(CodeSystem codeSystem, Coding coding, java.lang.String url = (version != null) ? system + "|" + version : system; caseSensitive = CodeSystemSupport.isCaseSensitive(url); } - boolean result = caseSensitive ? lookupOutcome.getDisplay().equals(coding.getDisplay()) : + boolean result = caseSensitive ? lookupOutcome.getDisplay().equals(coding.getDisplay()) : normalize(lookupOutcome.getDisplay().getValue()).equals(normalize(coding.getDisplay().getValue())); - java.lang.String message = !result ? java.lang.String.format("The display '%s' is incorrect for code '%s' from code system '%s'", + java.lang.String message = !result ? java.lang.String.format("The display '%s' is incorrect for code '%s' from code system '%s'", coding.getDisplay().getValue(), coding.getCode().getValue(), system) : null; - + return buildValidationOutcome(result, message, lookupOutcome); } diff --git a/term/fhir-term/src/main/java/com/ibm/fhir/term/util/ValueSetSupport.java b/term/fhir-term/src/main/java/com/ibm/fhir/term/util/ValueSetSupport.java index 09eb842f8c2..d5f51f3289a 100644 --- a/term/fhir-term/src/main/java/com/ibm/fhir/term/util/ValueSetSupport.java +++ b/term/fhir-term/src/main/java/com/ibm/fhir/term/util/ValueSetSupport.java @@ -460,10 +460,11 @@ private static boolean validateCode(Map> } } } else { + // coding didn't specify a version, so try them all java.lang.String prefix = system + "|"; for (java.lang.String key : codeSetMap.keySet()) { - if (key.startsWith(prefix)) { - return codeSetMap.get(key).contains(code); + if (key.startsWith(prefix) && codeSetMap.get(key).contains(code)) { + return true; } } }