Skip to content

Commit

Permalink
Merge pull request #100 from cqframework/templatization
Browse files Browse the repository at this point in the history
Templatization to work with refresh tooling
  • Loading branch information
brynrhodes authored Feb 15, 2020
2 parents ce7cadd + 169ed9c commit 825f20e
Show file tree
Hide file tree
Showing 330 changed files with 10,014 additions and 27,805 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
/resources/ig-validation-parameters.json
/resources/ig-new.json
/resources/ig-new.xml
ig.ini
/org.hl7.fhir.publisher.jar
template
49 changes: 49 additions & 0 deletions _updatePublisher.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash
dlurl=https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.publisher.jar
publisher_jar=org.hl7.fhir.publisher.jar
root_path=./

set -e
if ! type "curl" > /dev/null; then
echo "ERROR: Script needs curl to download latest IG Publisher. Please install curl."
exit 1
fi

publisher="$root_path$publisher_jar"
if test -f "$publisher"; then
echo "IG Publisher FOUND in root"
jarlocation="$publisher"
jarlocationname="Root"
upgrade=true
else
publisher="../$publisher_jar"
upgrade=true
if test -f "$publisher"; then
echo "IG Publisher FOUND in parent folder"
jarlocation="$publisher"
jarlocationname="Parent Folder"
upgrade=true
else
echo IG Publisher NOT FOUND in input-cache or parent folder...
jarlocation="$root_path$publisher_jar"
jarlocationname="Root"
upgrade=false
fi
fi

if $upgrade ; then
message="Overwrite $jarlocation? [Y/N] "
else
#echo Will place publisher jar here: $root_path$publisher_jar
echo Will place publisher jar here: $jarlocation
message="Ok? [Y/N]"
fi

read -r -p "$message" response
if [[ "$response" =~ ^([yY])$ ]]; then
echo "Downloading most recent publisher to $jarlocationname - it's ~100 MB, so this may take a bit"
# wget "https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.publisher.jar" -O "$jarlocation"
curl $dlurl -o "$jarlocation" --create-dirs
else
echo cancel...
fi
4 changes: 4 additions & 0 deletions archive/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This folder exists for the archival of resources specific to FHIR versions for which
this Implementation Guide is declared and intended. If we need support for those versions
(e.g., DSTU2 in this case) we will create an Implementation Guide specific to respective
FHIR version.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library OpioidCQM_STU3 version '0.1.0'
library OpioidCQMSTU3 version '0.1.0'

using FHIR version '3.0.0'

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions ig.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[IG]
ig = input/ig-new.xml

45 changes: 28 additions & 17 deletions ig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,24 @@
"canonicalBase": "http://fhir.org/guides/cdc/opioid-cds",
"version" : "3.0.2",
"sct-edition" : "http://snomed.info/sct/731000124108",
"source": "opioid-cds.xml",
"source": "../input/opioid-cds.xml",
"npm-name": "fhir.cdc.opioid-cds",
"license": "CC0-1.0",
"tool" : "jekyll",
"paths": {
"resources": ["resources", "examples"],
"pages": "pages",
"resources": [
"examples",
"input/extensions",
"input/profiles",
"input/resources",
"input/resources/library",
"input/resources/activitydefinition",
"input/resources/plandefinition",
"input/vocabulary",
"input/vocabulary/codesystem",
"input/vocabulary/valueset"
],
"pages": "input/pagecontent",
"temp": "temp",
"output": "output",
"qa": "qa",
Expand Down Expand Up @@ -554,7 +565,7 @@
},

"ActivityDefinition/opioidcds-risk-assessment-request": {
"source": "activitydefinition-opioidcds-risk-assessment-request.xml",
"source": "activitydefinition/activitydefinition-opioidcds-risk-assessment-request.xml",
"base": "ActivityDefinition-opioidcds-risk-assessment-request.html"
},
"CarePlan/example-opioidcds": {
Expand All @@ -566,47 +577,47 @@
"base": "CodeSystem-opioidcds-indicator.html"
},
"Library/omtklogic": {
"source": "library-omtklogic.xml",
"source": "library/library-OMTKLogic.json",
"base": "Library-omtklogic.html"
},
"Library/omtkdata": {
"source": "library-omtkdata.xml",
"source": "library/library-OMTKData.json",
"base": "Library-omtkdata.html"
},
"Library/opioidcds-common": {
"source": "library-opioidcds-common.json",
"source": "library/library-OpioidCDSSTU3Common.json",
"base": "Library-opioidcds-common.html"
},
"Library/opioidcds-recommendation-04": {
"source": "library-opioidcds-recommendation-04.xml",
"source": "library/library-OpioidCDSSTU3Rec04.json",
"base": "Library-opioidcds-recommendation-04.html"
},
"Library/opioidcds-recommendation-05": {
"source": "library-opioidcds-recommendation-05.xml",
"source": "library/library-OpioidCDSSTU3Rec05.json",
"base": "Library-opioidcds-recommendation-05.html"
},
"Library/opioidcds-recommendation-07": {
"source": "library-opioidcds-recommendation-07.xml",
"source": "library/library-OpioidCDSSTU3Rec07.json",
"base": "Library-opioidcds-recommendation-07.html"
},
"Library/opioidcds-recommendation-08": {
"source": "library-opioidcds-recommendation-08.xml",
"source": "library/library-OpioidCDSSTU3Rec08.json",
"base": "Library-opioidcds-recommendation-08.html"
},
"Library/opioidcds-recommendation-10": {
"source": "library-opioidcds-recommendation-10.json",
"source": "library/library-OpioidCDSSTU3Rec10.json",
"base": "Library-opioidcds-recommendation-10.html"
},
"Library/library-opioidcds-rec-10-patient-view": {
"source": "library-opioidcds-rec-10-patient-view.json",
"Library/opioidcds-rec-10-patient-view": {
"source": "library/library-OpioidCDSSTU3Rec10PatientView.json",
"base": "Library-opioidcds-rec-10-patient-view.html"
},
"Library/opioidcds-recommendation-11": {
"source": "library-opioidcds-recommendation-11.json",
"source": "library/library-OpioidCDSSTU3Rec11.json",
"base": "Library-opioidcds-recommendation-11.html"
},
"Library/library-opioidcds-rec-11-patient-view": {
"source": "library-opioidcds-rec-11-patient-view.json",
"Library/opioidcds-rec-11-patient-view": {
"source": "library/library-OpioidCDSSTU3Rec11PatientView.json",
"base": "Library-opioidcds-rec-11-patient-view.html"
},
"MedicationRequest/example-opioidcds": {
Expand Down
Loading

0 comments on commit 825f20e

Please sign in to comment.