Skip to content

Commit

Permalink
fix invariants #37
Browse files Browse the repository at this point in the history
  • Loading branch information
Healthedata1 committed Feb 28, 2017
1 parent 76f1232 commit 011cd07
Show file tree
Hide file tree
Showing 8 changed files with 1,142 additions and 1,117 deletions.
22 changes: 18 additions & 4 deletions argo-dstu2.py
Expand Up @@ -26,9 +26,9 @@

logging.info('create the ig.xml file template as string')

igxml ='''<?xml version="1.0" encoding="UTF-8"?><!--Hidden IG for de facto IG publishing--><ImplementationGuide xmlns="http://hl7.org/fhir"><id value="ig"/><url value="http://fhir.org/guides/argonaut/ImplementationGuide/ig"/><name value="Implementation Guide Template"/><status value="draft"/><experimental value="true"/><publisher value="FHIR Project"/><package><name value="base"/></package><page><source value="index.html"/><name value="blah"/><kind value="page"/></page></ImplementationGuide>'''
igxml ='''<?xml version="1.0" encoding="UTF-8"?><!--Hidden IG for de facto IG publishing--><ImplementationGuide xmlns="http://hl7.org/fhir"><id value="ig"/><url value="http://fhir.org/guides/argonaut/ImplementationGuide/ig"/><name value="Implementation Guide Template"/><status value="draft"/><experimental value="true"/><publisher value="FHIR Project"/><package><name value="base"/></package><page><source value="index.html"/><name value="Argonaut Data Query Homepage"/><kind value="page"/></page></ImplementationGuide>'''

# extension in spreadsheet - these need to be manually listed here NOTE: as of 1/2016 IG publisher not rendering them correctly
# extension in spreadsheet - these need to be manually listed here NOTE: as of 1/2016 IG publisher not rendering them correctl - these need to be manually listed here needs to be named same as SD files ( eg: argonaut-[id])

extensions = []

Expand All @@ -40,6 +40,15 @@

searches = []

#if valueset in spreadsheet is a codesystem - these need to be manually listed here

codesystems = []

#if valueset in spreadsheet is not a codesystem - these need to be manually listed

valuesets = []




# Function definitions here
Expand Down Expand Up @@ -135,11 +144,16 @@ def main():
# add spreadsheet operations
for operation in operations:
update_igjson('OperationDefinition', operation, 'base')
update_igjson('OperationDefinition', operation, 'defns')
# add spreadsheet search parameters
for search in searches:
update_igjson('SearchParameter', search, 'base')
update_igjson('SearchParameter', search, 'defns')
# add spreadsheet code systems
for codesystem in codesystems:
update_igjson('CodeSystem', codesystem, 'base')
update_igjson('ValueSet', codesystem, 'base')
# add spreadsheet valuesets
for valueset in valuesets:
update_igjson('ValueSet', valueset, 'base')

folder = 'examples'
examples = os.listdir(
Expand Down
7 changes: 2 additions & 5 deletions cm.html
Expand Up @@ -18,14 +18,11 @@

{% include {{[type]}}-{{[name]}}.xhtml %}

<p>
Formats: <a href="{{[type]}}-{{[id]}}.xml.html">XML</a>, <a href="{{[type]}}-{{[id]}}.json.html">JSON</a>, <a href="{{[type]}}-{{[id]}}.ttl.html">Turtle</a>
</p>

<!--
{% include {{[type]}}-{{[id]}}-summary.xhtml %}
{% include {{[type]}}-{{[id]}}-xref.xhtml %}
{% include {{[type]}}-{{[id]}}-content.xhtml %}

-->

<!-- ==============END CONTENT END CONTENT=================== -->

Expand Down
2 changes: 1 addition & 1 deletion ig.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/conformance-server.xml
Expand Up @@ -1476,7 +1476,7 @@
</p>
<ul>
<li>A server is capable of returning all of a patient's laboratory results queried by category using GET [base]/Observation?patient=[id]&amp;category=laboratory.</li>
<li>A server is capable of returning all of a patient's laboratory results queried by category code and date range usingGET [base]/Observation?patient=[id]&amp;category=laboratory&amp;date=[date]{&amp;date=[date]}.</li>
<li>A server is capable of returning all of a patient's laboratory results queried by category code and date range using GET [base]/Observation?patient=[id]&amp;category=laboratory&amp;date=[date]{&amp;date=[date]}.</li>
<li>A server is capable of returning all of a patient's laboratory results queried by category and code using GET [base]/Observation?patient=[id]&amp;category=laboratory&amp;code=[LOINC].</li>
<li>A server SHOULD be capable of returning all of a patient's laboratory results queried by category and one or more codes and date range using GET [base]/Observation?patient=[id]&amp;category=laboratory&amp;code=[LOINC1{,LOINC2,LOINC3,...}]&amp;date=[date]{&amp;date=[date]}.</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion resources/ig.xml

Large diffs are not rendered by default.

0 comments on commit 011cd07

Please sign in to comment.