Skip to content

Commit

Permalink
issue #3652 - add PDEX Drug Formulary 1.1.0
Browse files Browse the repository at this point in the history
Following the same pattern from PDEX PlanNet

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
  • Loading branch information
lmsurpre committed May 24, 2022
1 parent af2b923 commit 495bbd8
Show file tree
Hide file tree
Showing 132 changed files with 36,096 additions and 115 deletions.
30 changes: 25 additions & 5 deletions conformance/fhir-ig-davinci-pdex-formulary/CHANGELOG.md
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
7 changes: 7 additions & 0 deletions conformance/fhir-ig-davinci-pdex-formulary/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
<scope>test</scope>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>fhir-registry</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>fhir-examples</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}
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";
}
}
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
Loading

0 comments on commit 495bbd8

Please sign in to comment.