-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #3652 - add PDEX Drug Formulary 1.1.0
Following the same pattern from PDEX PlanNet Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
- Loading branch information
Showing
132 changed files
with
36,096 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
30 NOV 2020 - Initial Load | ||
- remove invalid <br/> tags from between <li> 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) | ||
# 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) | ||
|
||
Note: the examples were subsequently retrieved from http://hl7.org/fhir/us/davinci-drug-formulary/STU1.0.1/package.tgz on May 20, 2022. | ||
|
||
## 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ry/src/main/java/com/ibm/fhir/ig/davinci/pdex/formulary/Formulary110ResourceProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* (C) Copyright IBM Corp. 2020 | ||
* | ||
* 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.101"; | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
...c/main/resources/META-INF/services/com.ibm.fhir.registry.spi.FHIRRegistryResourceProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
com.ibm.fhir.ig.davinci.pdex.formulary.FormularyResourceProvider | ||
com.ibm.fhir.ig.davinci.pdex.formulary.Formulary101ResourceProvider | ||
com.ibm.fhir.ig.davinci.pdex.formulary.Formulary110ResourceProvider |
File renamed without changes.
Oops, something went wrong.