Additional examples to show new template capabiliteis

This commit is contained in:
Lloyd McKenzie 2022-03-29 08:05:32 -06:00
parent f814edc68b
commit 9b01b996d9
11 changed files with 1375 additions and 17 deletions

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,7 @@ IF "%~1"=="/f" SET skipPrompts=y
ECHO.
ECHO Checking internet connection...
PING tx.fhir.org -4 -n 1 -w 1000 | FINDSTR TTL && GOTO isonline
PING tx.fhir.org -4 -n 1 -w 5000 | FINDSTR TTL && GOTO isonline
ECHO We're offline, nothing to do...
GOTO end
@ -216,4 +216,4 @@ start copy /y "_updatePublisher.new.bat" "_updatePublisher.bat" ^&^& del "_updat
IF "%skipPrompts%"=="true" (
PAUSE
}
)

View File

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
test comment for display
-->
<Observation xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../input-cache/schemas/R4/fhir-single.xsd">
<id value="example"/>
<meta>
<profile value="http://somewhere.org/fhir/uv/myig/StructureDefinition/myObservation"/>
</meta>
<status value="final"/>
<code>
<coding>
<system value="http://somewhere.org/fhir/uv/myig/CodeSystem/cs-fake"/>
<code value="01"/>
<display value="CS1"/>
</coding>
<coding>
<system value="http://somewhere.org/fhir/uv/myig/CodeSystem/cs-fake"/>
<code value="01"/>
<display value="CS2"/>
</coding>
<coding>
<system value="http://somewhere.org/fhir/uv/myig/CodeSystem/cs-fake"/>
<code value="01"/>
<display value="VS1"/>
</coding>
<coding>
<system value="http://somewhere.org/fhir/uv/myig/CodeSystem/cs-fake"/>
<code value="01"/>
<display value="VS2"/>
</coding>
</code>
</Observation>

View File

@ -5,7 +5,7 @@ test comment for display
-->
<Patient 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">
<Patient xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../input-cache/schemas/R4/fhir-single.xsd">
<id value="example"/>
<meta>
<profile value="http://somewhere.org/fhir/uv/myig/StructureDefinition/mypatient"/>

View File

@ -18,6 +18,10 @@ INFORMATION: Patient/example: Patient: Validate resource against profile http://
# This is inherited from the base resource
WARNING: StructureDefinition/myObservation: StructureDefinition.snapshot.element[15].mapping[3].map: value should not start or finish with whitespace
# These examples are fake code systems - they're not expected to be checked
Code System URI 'http://example.org/some-id-type-system' is unknown so the code cannot be validated
Code System URI 'http://example.org/some-system' is unknown so the code cannot be validated
# We're expecting these to not match the slice - we're showing how you can use slicing to define the one repetition you want even when many repetitions might be present
INFORMATION: Patient/example: Patient.name[0]: This element does not match any known slice defined in the profile http://somewhere.org/fhir/uv/myig/StructureDefinition/mypatient
INFORMATION: Patient/example: Patient.name[1]: This element does not match any known slice defined in the profile http://somewhere.org/fhir/uv/myig/StructureDefinition/mypatient

View File

@ -1,7 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Start by finding all references to "myig" 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">
<ImplementationGuide xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../input-cache/schemas/R4/fhir-single.xsd">
<id value="example.fhir.uv.myig"/>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="informative"/>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
<valueInteger value="1"/>
</extension>
<!-- <extension url="http://hl7.org/fhir/tools/StructureDefinition/igpublisher-spreadsheet">
<valueString value="resources-spreadsheet.xml"/>
</extension>-->
@ -22,15 +28,11 @@
</contact>
<description value="A brief description of what MyIG is about (probably the same text as in your readme)"/>
<jurisdiction>
<!-- This will drive SNOMED release used -->
<!-- This first repetition will drive SNOMED release used -->
<coding>
<system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
<!-- 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.myig"/>
@ -113,9 +115,20 @@
<generation value="html"/>
</page>
<page>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="trial-use"/>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
<valueInteger value="3"/>
</extension>
<nameUrl value="spec.html"/>
<title value="Detailed Specification"/>
<generation value="markdown"/>
<page>
<nameUrl value="spec2.html"/>
<title value="Spec sub-page"/>
<generation value="markdown"/>
</page>
</page>
<page>
<nameUrl value="downloads.html"/>

View File

@ -0,0 +1,2 @@
### A Heading
A child specification page with more detail

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<CodeSystem xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../input-cache/schemas/R4/fhir-single.xsd">
<id value="cs-fake"/>
<url value="http://somewhere.org/fhir/uv/myig/CodeSystem/cs-fake"/>
<name value="CodeSystemFake"/>
<title value="CodeSystem fake"/>
<status value="draft"/>
<experimental value="true"/>
<date value="2015-06-22"/>
<description value="A fake code system"/>
<content value="complete"/>
<concept>
<code value="01"/>
<display value="CS1"/>
<designation>
<value value="CS2"/>
</designation>
</concept>
</CodeSystem>

View File

@ -2,10 +2,239 @@
<StructureDefinition xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../input-cache/schemas/R4/fhir-single.xsd">
<id value="myObservation"/>
<url value="http://somewhere.org/fhir/uv/myig/StructureDefinition/myObservation"/>
<identifier>
<type>
<coding>
<system value="http://example.org/some-id-type-system"/>
<code value="foo"/>
</coding>
<text value="Some OID"/>
</type>
<value value="0.1.2.3.1"/>
</identifier>
<identifier>
<type>
<coding>
<system value="http://example.org/some-id-type-system"/>
<code value="foo"/>
</coding>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
<code value="AM"/>
<display value="American Express"/>
</coding>
</type>
<value value="0.1.2.3.2"/>
</identifier>
<identifier>
<type>
<coding>
<system value="http://example.org/some-id-type-system"/>
<code value="ACSN"/>
</coding>
</type>
<value value="0.1.2.3.3"/>
</identifier>
<identifier>
<type>
<coding>
<system value="http://example.org/some-id-type-system"/>
<code value="123"/>
</coding>
</type>
<value value="0.1.2.3.4"/>
</identifier>
<identifier>
<use value="official"/>
</identifier>
<identifier>
<value value="0.1.2.3.5"/>
</identifier>
<name value="MyObservation"/>
<title value="My Observation Profile"/>
<status value="draft"/>
<experimental value="true"/>
<publisher value="Publisher for this artifact"/>
<contact>
<telecom>
<!-- Contact for publisher of this artifact -->
<system value="url"/>
<value value="http://example.org/some-organization"/>
</telecom>
</contact>
<description value="A profile showing the use of XML to author profiles"/>
<useContext>
<code>
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="gender"/>
<display value="Gender"/>
</code>
<valueCodeableConcept>
<coding>
<system value="http://hl7.org/fhir/administrative-gender"/>
<code value="female"/>
<display value="Female"/>
</coding>
</valueCodeableConcept>
</useContext>
<useContext>
<code>
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="age"/>
<display value="Age Range"/>
</code>
<valueQuantity>
<value value="2"/>
<unit value="months"/>
<system value="http://unitsofmeasure.org"/>
<code value="mo"/>
</valueQuantity>
</useContext>
<useContext>
<code>
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="age"/>
<display value="Age Range"/>
</code>
<valueQuantity>
<value value="3"/>
<system value="http://unitsofmeasure.org"/>
<code value="mo"/>
</valueQuantity>
</useContext>
<useContext>
<code>
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="age"/>
<display value="Age Range"/>
</code>
<valueQuantity>
<value value="4"/>
</valueQuantity>
</useContext>
<useContext>
<code>
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="age"/>
<display value="Age Range"/>
</code>
<valueRange>
<high>
<value value="1"/>
<unit value="months"/>
</high>
</valueRange>
</useContext>
<useContext>
<code>
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="age"/>
<display value="Age Range"/>
</code>
<valueRange>
<low>
<value value="2"/>
<unit value="years"/>
</low>
<high>
<value value="5"/>
<unit value="years"/>
</high>
</valueRange>
</useContext>
<useContext>
<code>
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="age"/>
<display value="Age Range"/>
</code>
<valueRange>
<low>
<value value="10"/>
<unit value="years"/>
</low>
</valueRange>
</useContext>
<useContext>
<code>
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="venue"/>
<display value="Clinical Venue"/>
</code>
<valueReference>
<reference value="http://example.org/Location/123"/>
<display value="Some location"/>
</valueReference>
</useContext>
<useContext>
<code>
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="venue"/>
<display value="Clinical Venue"/>
</code>
<valueReference>
<display value="Some other location"/>
</valueReference>
</useContext>
<useContext>
<code>
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="venue"/>
<display value="Clinical Venue"/>
</code>
<valueReference>
<reference value="http://example.org/Location/456"/>
</valueReference>
</useContext>
<useContext>
<code>
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="venue"/>
<display value="Clinical Venue"/>
</code>
<valueReference>
<identifier>
<value value="LOCATION-ABC"/>
</identifier>
</valueReference>
</useContext>
<jurisdiction>
<coding>
<!-- Use this if the IG is country-specific -->
<system value="urn:iso:std:iso:3166"/>
<code value="US"/>
</coding>
</jurisdiction>
<jurisdiction>
<coding>
<!-- Use this if the IG is state/province/territory-specific -->
<system value="urn:iso:std:iso:3166:-2"/>
<code value="CA-QC"/>
</coding>
</jurisdiction>
<jurisdiction>
<coding>
<!-- Testing a jurisdiction that doesn't have a resolvable flag -->
<system value="urn:iso:std:iso:3166:-2"/>
<code value="GR-E"/>
</coding>
</jurisdiction>
<jurisdiction>
<!-- Use this only if there's no standard code for the jurisdiction -->
<text value="The universe"/>
</jurisdiction>
<purpose value="Explain why this resource is necessary here"/>
<copyright value="Explain licensing or other legal limitations on use"/>
<keyword>
<system value="http://example.org/some-system"/>
<code value="01"/>
<display value="keyword 1"/>
</keyword>
<keyword>
<system value="http://example.org/some-system"/>
<code value="01"/>
<display value="keyword 2"/>
</keyword>
<fhirVersion value="4.0.0"/>
<kind value="resource"/>
<abstract value="false"/>
@ -32,6 +261,10 @@
</element>
<element id="Observation.code">
<path value="Observation.code"/>
<binding>
<strength value="required"/>
<valueSet value="http://somewhere.org/fhir/uv/myig/ValueSet/valueset-fake"/>
</binding>
<patternCodeableConcept>
<coding>
<system value="http://loinc.org"/>
@ -159,5 +392,7 @@
<fixedCode value="mm[Hg]"/>
<mustSupport value="true"/>
</element>
</element>
</differential>
</StructureDefinition>

View File

@ -16,11 +16,11 @@
<AllowPNG/>
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>12750</WindowHeight>
<WindowWidth>28800</WindowWidth>
<WindowHeight>7170</WindowHeight>
<WindowWidth>20940</WindowWidth>
<WindowTopX>32767</WindowTopX>
<WindowTopY>32767</WindowTopY>
<ActiveSheet>3</ActiveSheet>
<ActiveSheet>1</ActiveSheet>
<RefModeR1C1/>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
@ -900,7 +900,7 @@
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s74"><Data ss:Type="String">author.name</Data></Cell>
<Cell ss:StyleID="s75"><Data ss:Type="String">Health Level Seven International (Some work group)</Data></Cell>
<Cell ss:StyleID="s75"><Data ss:Type="String">HL7 International - [Some] Work Group</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s74"><Data ss:Type="String">author.reference</Data></Cell>
@ -953,6 +953,7 @@
<HorizontalResolution>600</HorizontalResolution>
<VerticalResolution>600</VerticalResolution>
</Print>
<Selected/>
<FreezePanes/>
<FrozenNoSplit/>
<SplitHorizontal>1</SplitHorizontal>
@ -972,8 +973,7 @@
</Pane>
<Pane>
<Number>0</Number>
<ActiveRow>12</ActiveRow>
<ActiveCol>0</ActiveCol>
<ActiveRow>4</ActiveRow>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
@ -5549,7 +5549,6 @@
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<Unsynced/>
<Selected/>
<Panes>
<Pane>
<Number>3</Number>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<ValueSet xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../input-cache/schemas/R4/fhir-single.xsd">
<id value="valueset-fake"/>
<url value="http://somewhere.org/fhir/uv/myig/ValueSet/valueset-fake"/>
<name value="ValueSetFake"/>
<title value="ValueSet fake"/>
<status value="draft"/>
<experimental value="true"/>
<date value="2015-06-22"/>
<description value="A fake value"/>
<compose>
<include>
<system value="http://somewhere.org/fhir/uv/myig/CodeSystem/cs-fake"/>
<concept>
<code value="01"/>
<display value="VS1"/>
<designation>
<value value="VS2"/>
</designation>
</concept>
</include>
</compose>
</ValueSet>