-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
2,195 additions
and
0 deletions.
There are no files selected for viewing
1,162 changes: 1,162 additions & 0 deletions
1,162
src/test/resources/simple-test-ig/bundles/Test-bundle.json
Large diffs are not rendered by default.
Oops, something went wrong.
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,4 @@ | ||
[IG] | ||
ig = input/simple-test-ig.xml | ||
template = cqf.fhir.template#0.6.0 | ||
usage-stats-opt-out = false |
87 changes: 87 additions & 0 deletions
87
src/test/resources/simple-test-ig/input/resources/library/library-FHIRHelpers.json
Large diffs are not rendered by default.
Oops, something went wrong.
143 changes: 143 additions & 0 deletions
143
src/test/resources/simple-test-ig/input/resources/library/library-Test.json
Large diffs are not rendered by default.
Oops, something went wrong.
194 changes: 194 additions & 0 deletions
194
src/test/resources/simple-test-ig/input/resources/measure/measure-Test.json
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,194 @@ | ||
{ | ||
"resourceType": "Measure", | ||
"id": "Test", | ||
"meta": { | ||
"profile": [ "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm" ] | ||
}, | ||
"contained": [ { | ||
"resourceType": "Library", | ||
"id": "effective-data-requirements", | ||
"extension": [ { | ||
"url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition", | ||
"extension": [ { | ||
"url": "libraryName", | ||
"valueString": "Test" | ||
}, { | ||
"url": "name", | ||
"valueString": "Numerator" | ||
}, { | ||
"url": "statement", | ||
"valueString": "define \"Numerator\": false" | ||
}, { | ||
"url": "displaySequence", | ||
"valueInteger": 0 | ||
} ] | ||
}, { | ||
"url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition", | ||
"extension": [ { | ||
"url": "libraryName", | ||
"valueString": "Test" | ||
}, { | ||
"url": "name", | ||
"valueString": "Denominator" | ||
}, { | ||
"url": "statement", | ||
"valueString": "define \"Denominator\": true" | ||
}, { | ||
"url": "displaySequence", | ||
"valueInteger": 1 | ||
} ] | ||
}, { | ||
"url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition", | ||
"extension": [ { | ||
"url": "libraryName", | ||
"valueString": "Test" | ||
}, { | ||
"url": "name", | ||
"valueString": "Initial Population" | ||
}, { | ||
"url": "statement", | ||
"valueString": "// Test & #\\\\\"SpecialChars\\\\\"\ndefine \"Initial Population\": true" | ||
}, { | ||
"url": "displaySequence", | ||
"valueInteger": 2 | ||
} ] | ||
} ], | ||
"name": "EffectiveDataRequirements", | ||
"status": "active", | ||
"type": { | ||
"coding": [ { | ||
"system": "http://terminology.hl7.org/CodeSystem/library-type", | ||
"code": "module-definition" | ||
} ] | ||
}, | ||
"parameter": [ { | ||
"name": "Numerator", | ||
"use": "out", | ||
"min": 0, | ||
"max": "1", | ||
"type": "boolean" | ||
}, { | ||
"name": "Denominator", | ||
"use": "out", | ||
"min": 0, | ||
"max": "1", | ||
"type": "boolean" | ||
}, { | ||
"name": "Initial Population", | ||
"use": "out", | ||
"min": 0, | ||
"max": "1", | ||
"type": "boolean" | ||
} ] | ||
} ], | ||
"extension": [ { | ||
"url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem", | ||
"valueReference": { | ||
"reference": "Device/cqf-tooling" | ||
} | ||
}, { | ||
"id": "effective-data-requirements", | ||
"url": "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements", | ||
"valueReference": { | ||
"reference": "#effective-data-requirements" | ||
} | ||
} ], | ||
"url": "http://localhost:8000/Measure/Test", | ||
"name": "Test", | ||
"title": "Simple Test Measure", | ||
"status": "active", | ||
"experimental": true, | ||
"date": "2024-08-21T17:07:28-07:00", | ||
"publisher": "Test", | ||
"contact": [ { | ||
"telecom": [ { | ||
"system": "url", | ||
"value": "https://Test.com" | ||
} ] | ||
} ], | ||
"description": "Simple Measure to test simply.", | ||
"useContext": [ { | ||
"code": { | ||
"system": "http://terminology.hl7.org/CodeSystem/usage-context-type", | ||
"version": "4.0.1", | ||
"code": "program", | ||
"display": "Program" | ||
}, | ||
"valueCodeableConcept": { | ||
"text": "eligible-provider" | ||
} | ||
} ], | ||
"purpose": "Efficiency and Cost Reduction.", | ||
"effectivePeriod": { | ||
"start": "2020-01-01T00:00:00-07:00", | ||
"end": "2020-12-31T23:59:59-07:00" | ||
}, | ||
"library": [ "http://localhost:8000/Library/Test" ], | ||
"scoring": { | ||
"coding": [ { | ||
"system": "http://terminology.hl7.org/CodeSystem/measure-scoring", | ||
"version": "4.0.1", | ||
"code": "proportion", | ||
"display": "Proportion" | ||
} ] | ||
}, | ||
"type": [ { | ||
"coding": [ { | ||
"system": "http://terminology.hl7.org/CodeSystem/measure-type", | ||
"version": "4.2.0", | ||
"code": "process", | ||
"display": "Process" | ||
} ] | ||
} ], | ||
"improvementNotation": { | ||
"coding": [ { | ||
"system": "http://terminology.hl7.org/CodeSystem/measure-improvement-notation", | ||
"version": "0.1.0", | ||
"code": "increase", | ||
"display": "Increased score indicates improvement" | ||
} ] | ||
}, | ||
"group": [ { | ||
"id": "group-1", | ||
"population": [ { | ||
"id": "initial-population", | ||
"code": { | ||
"coding": [ { | ||
"system": "http://terminology.hl7.org/CodeSystem/measure-population", | ||
"code": "initial-population", | ||
"display": "Initial Population" | ||
} ] | ||
}, | ||
"criteria": { | ||
"language": "text/cql.identifier", | ||
"expression": "Initial Population" | ||
} | ||
}, { | ||
"id": "denominator", | ||
"code": { | ||
"coding": [ { | ||
"system": "http://terminology.hl7.org/CodeSystem/measure-population", | ||
"code": "denominator", | ||
"display": "Denominator" | ||
} ] | ||
}, | ||
"criteria": { | ||
"language": "text/cql.identifier", | ||
"expression": "Denominator" | ||
} | ||
}, { | ||
"id": "numerator", | ||
"code": { | ||
"coding": [ { | ||
"system": "http://terminology.hl7.org/CodeSystem/measure-population", | ||
"code": "numerator", | ||
"display": "Numerator" | ||
} ] | ||
}, | ||
"criteria": { | ||
"language": "text/cql.identifier", | ||
"expression": "Numerator" | ||
} | ||
} ] | ||
} ] | ||
} |
173 changes: 173 additions & 0 deletions
173
src/test/resources/simple-test-ig/input/simple-test-ig.xml
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,173 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Start by finding all references to "simple-test-ig" and updating to appropriate text for your IG, including changing realm --> | ||
<ImplementationGuide xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../input-cache/schemas/R5/fhir-single.xsd"> | ||
<id value="example.fhir.uv.simple-test-ig"/> | ||
<!-- <extension url="http://hl7.org/fhir/tools/StructureDefinition/igpublisher-spreadsheet"> | ||
<valueString value="resources-spreadsheet.html"/> | ||
</extension>--> | ||
<url value="http://content.alphora.com/fhir/uv/simple-test-ig/ImplementationGuide/example.fhir.uv.simple-test-ig"/> | ||
<!-- This version will propagate to all artifacts unless the "propagate-version" extension is overridden --> | ||
<version value="4.0.1"/> | ||
<name value="Simple Test IG"/> | ||
<title value="Simple Test IG"/> | ||
<status value="draft"/> | ||
<experimental value="true"/> | ||
<publisher value="SMILE"/> | ||
<contact> | ||
<telecom> | ||
<!-- Or whatever URL and/or email address(es) are appropriate --> | ||
<system value="url"/> | ||
<value value="http://hl7.org/Special/committees/[something]"/> | ||
</telecom> | ||
</contact> | ||
<description value="IG for testing and developing content"/> | ||
<jurisdiction> | ||
<!-- This will drive SNOMED release used --> | ||
<coding> | ||
<!-- This is the code for universal --> | ||
<system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> | ||
<code value="001"/> | ||
<!-- Change to this if the IG is country-specific | ||
<system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> | ||
<code value="001"/> | ||
--> | ||
</coding> | ||
</jurisdiction> | ||
<packageId value="example.fhir.uv.simple-test-ig"/> | ||
<!-- This should be changed to 'not-open-source' or another license if appropriate for non-HL7-published content --> | ||
<license value="Apache-2.0"/> | ||
<!-- This is whatever FHIR version(s) the IG artifacts are targeting (not the version of this file, which should always be 'current release') --> | ||
<fhirVersion value="4.0.1"/> | ||
<dependsOn id="cpg"> | ||
<uri value="http://hl7.org/fhir/uv/cpg/ImplementationGuide/hl7.fhir.uv.cpg"/> | ||
<packageId value="hl7.fhir.uv.cpg"/> | ||
<version value="1.0.0"/> | ||
</dependsOn> | ||
<dependsOn id="cqf"> | ||
<uri value="http://fhir.org/guides/cqf/common/ImplementationGuide/fhir.cqf.common"/> | ||
<packageId value="fhir.cqf.common"/> | ||
<version value="4.0.1"/> | ||
</dependsOn> | ||
<dependsOn id="measures"> | ||
<uri value="http://hl7.org/fhir/us/cqfmeasures/ImplementationGuide/hl7.fhir.us.cqfmeasures"/> | ||
<packageId value="hl7.fhir.us.cqfmeasures"/> | ||
<version value="3.0.0"/> | ||
</dependsOn> | ||
<dependsOn id="vsac"> | ||
<uri value="http://fhir.org/packages/us.nlm.vsac"/> | ||
<packageId value="us.nlm.vsac"/> | ||
<version value="0.17.0"/> | ||
</dependsOn> | ||
<definition> | ||
<!-- You don't need to define any groupings. The IGPublisher will define them for you. You only need to do so if your IG is 'special' and it's | ||
inappropriate to use the defaults. Feel free to provide feedback about the defaults... --> | ||
|
||
<!-- Groupings --> | ||
<grouping id="common-libraries"> | ||
<name value="Common Logic Libraries" /> | ||
</grouping> | ||
<!-- Device --> | ||
<resource> | ||
<reference> | ||
<reference value="Device/cqf-tooling" /> | ||
<display value="CQF Tooling Device" /> | ||
</reference> | ||
<name value="CQFToolingDevice" /> | ||
<description value="A Device that represents a CQF Tooling version." /> | ||
<exampleBoolean value="false" /> | ||
</resource> | ||
<resource> | ||
<reference> | ||
<reference value="Library/FHIRHelpers" /> | ||
<display value="FHIR Helpers Library" /> | ||
</reference> | ||
<name value="FHIRHelpers" /> | ||
<description value="FHIR Helpers Library" /> | ||
<exampleBoolean value="false" /> | ||
<groupingId value="common-libraries" /> | ||
</resource> | ||
|
||
<page> | ||
<!-- The root will always be toc.html - the template will force it if you don't do it --> | ||
<nameUrl value="toc.html"/> | ||
<title value="Table of Contents"/> | ||
<generation value="html"/> | ||
<page> | ||
<nameUrl value="downloads.html"/> | ||
<title value="Useful Downloads"/> | ||
<generation value="html"/> | ||
</page> | ||
<page> | ||
<nameUrl value="license.html"/> | ||
<title value="License"/> | ||
<generation value="markdown"/> | ||
</page> | ||
<page> | ||
<nameUrl value="changes.html"/> | ||
<title value="IG Change History"/> | ||
<generation value="html"/> | ||
</page> | ||
</page> | ||
<!-- copyright year is a mandatory parameter --> | ||
<parameter> | ||
<code value="copyrightyear"/> | ||
<value value="2019+"/> | ||
</parameter> | ||
<!-- releaselabel should be the ballot status for HL7-published IGs. --> | ||
<parameter> | ||
<code value="releaselabel"/> | ||
<value value="CI Build"/> | ||
</parameter> | ||
<parameter> | ||
<code value="find-other-resources"/> | ||
<value value="true"/> | ||
</parameter> | ||
<parameter> | ||
<code value="path-resource" /> | ||
<value value="input/resources/device"/> | ||
</parameter> | ||
<parameter> | ||
<code value="path-resource" /> | ||
<value value="input/resources/library"/> | ||
</parameter> | ||
<parameter> | ||
<code value="path-resource" /> | ||
<value value="input/vocabulary/valueset"/> | ||
</parameter> | ||
<parameter> | ||
<code value="path-resource" /> | ||
<value value="input/vocabulary/codesystem"/> | ||
</parameter> | ||
<!-- This parameter indicates to the publisher that it should translate and package CQL libraries. See the example library resources for more --> | ||
<!-- This is disabled for now because the CQF Tooling has more up-to-date CQL processing than the publisher. Run refresh to update IG resources --> | ||
<parameter> | ||
<code value="path-binary"/> | ||
<value value="input/cql"/> | ||
</parameter> | ||
|
||
<parameter> | ||
<code value="path-liquid"/> | ||
<value value="templates/liquid"/> | ||
</parameter> | ||
<parameter> | ||
<code value="path-suppressed-warnings"/> | ||
<value value="input/ignoreWarnings.txt"/> | ||
</parameter> | ||
<!-- <parameter> | ||
<code value="excludexml"/> | ||
<value value="true"/> | ||
</parameter> --> | ||
<!-- <parameter> | ||
<code value="excludejson"/> | ||
<value value="true"/> | ||
</parameter> --> | ||
<parameter> | ||
<code value="excludettl"/> | ||
<value value="true"/> | ||
</parameter> | ||
<parameter> | ||
<code value="excludemap"/> | ||
<value value="true"/> | ||
</parameter> | ||
</definition> | ||
</ImplementationGuide> |
Oops, something went wrong.