Skip to content

Commit

Permalink
add pdf to ref from HAckmd
Browse files Browse the repository at this point in the history
  • Loading branch information
healthedata1 committed Jan 4, 2024
1 parent b44df90 commit 6dbf6cb
Show file tree
Hide file tree
Showing 6 changed files with 253 additions and 27 deletions.
Binary file added CardX_AveBP_Ballot_Feedback_20231214_2.pdf
Binary file not shown.
233 changes: 221 additions & 12 deletions input/data/valueset-ref-all-list.csv

Large diffs are not rendered by default.

24 changes: 20 additions & 4 deletions input/includes/codesystem-ref-all-table-generator.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
- [SNOMED](http://snomed.info/sct)
- [LOINC](http://loinc.org)
- [UCUM](http://unitsofmeasure.org)
- [CDC](https://www.cdc.gov/index.htm)
- Code systems published by other standards organizations

{% assign rows = site.data.codesystem-ref-all-list | sort: "Title" %}
{% assign bad-THO-list = "http://terminology.hl7.org/fhir/CodeSystem/medicationdispense-category, http://terminology.hl7.org/CodeSystem/medicationdispense-status, http://terminology.hl7.org/fhir/CodeSystem/medicationdispense-status-reason" | split: ", " %}
{% for item in rows %}
{% assign cs_link = item.URL %}
{% assign no_link = false %}
Expand All @@ -39,20 +41,32 @@
</thead>
<tbody>
{% endif %}

{% if item.URL contains 'http://hl7.org/fhir/us/core/CodeSystem/' %}
{% assign source = "US CORE" %}<!-- US Core -->
{% assign stem_URL = item.URL | split: 'CodeSystem/' | last %}
{% assign cs_link = "CodeSystem-" | append: stem_URL | append: '.html' %}
{% elsif bad-THO-list contains item.URL %}
{% assign source = "THO" %} <!-- THO-->
{% assign no_link = true %}
{% elsif item.URL contains 'http://terminology.hl7.org/CodeSystem/' %}
{% assign source = "THO" %} <!-- THO-->
{% elsif item.URL contains 'http://hl7.org/fhir/sid/icd-10-cm' %}
{% assign source = "CDC" %}
{% assign cs_link = 'https://www.cdc.gov/nchs/icd/icd-10-cm.htm' %}
{% elsif item.URL contains 'http://hl7.org/fhir/sid/cvx' %}
{% assign source = "CDC" %}
{% assign cs_link = 'https://www2a.cdc.gov/vaccines/iis/iisstandards/vaccines.asp?rpt=cvx' %}
{% elsif item.URL contains 'http://hl7.org/fhir/CodeSystem' %}
{% assign source = "FHIR" %} <!-- fhir -->
{% assign stem_URL = item.URL | split: 'CodeSystem/' | last %}
{% assign stem_URL = item.URL | split: 'CodeSystem/' | last %}
{% assign cs_link = site.data.fhir.path | append: "codesystem-" | append: stem_URL | append: '.html' %}
{% elsif item.URL contains 'http://hl7.org/fhir/' %}
{% assign source = "FHIR" %} <!-- fhir -->
{% assign stem_URL = item.URL | split: 'fhir/' | last %}
{% assign cs_link = site.data.fhir.path | append: "codesystem-" | append: stem_URL | append: '.html' %}
{% assign cs_link = cs_link | replace: '/R4/codesystem-fhir-types.html', '/codesystem-fhir-types.html' %}
<!-- fix bad link -->
{% elsif item.URL contains 'http://cts.nlm.nih.gov/fhir/' %}
{% assign source = "VSAC" %}
{% elsif item.URL contains 'http://phinvads.cdc.gov/fhir/' %}
Expand All @@ -63,9 +77,9 @@
{% assign source = "UCUM" %}
{% elsif item.URL contains 'http://loinc.org' %}
{% assign source = "LOINC" %}
{% elsif item.URL contains "urn" %}
{% assign no_link = true %} <!-- no link e.g urn or OID -->
{% else %} <!-- rest e.g. UCUM , SNOMED, LOiNC-->
{% elsif item.URL contains 'urn' %} <!-- rest with no link e.g urn or OID -->
{% assign no_link = true %}
{% else %} <!-- Other sources - us URL as link -->
{% endif %}
<tr>
<td>{{forloop.index}}</td>
Expand All @@ -81,4 +95,6 @@

{% endfor %}

http://hl7.org/fhir/R4/codesystem-fhir-types.html


2 changes: 1 addition & 1 deletion input/includes/valueset-ref-all-table-generator.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{% endif %}
{% assign base_URL = item.URL | split: 'ValueSet/' | first %}
{% assign stem_URL = item.URL | split: 'ValueSet/' | last %}
{% assign vs_link = site.data.source[base_URL][1] | replace: "{{stem_URL}}", stem_URL | replace: "{{site.data.fhir.path}}", {{site.data.fhir.path}} %}
{% assign vs_link = site.data.source[base_URL][1] | replace: "{{stem_URL}}", stem_URL | replace: "{{site.data.fhir.path}}", {{site.data.fhir.path}} | replace: "v2-2.7-0360", "v2-0360" %}
<tr>
<td>{{forloop.index}}</td>
<td><a href="{{vs_link}}">{{item.Title}}</a></td>
Expand Down
12 changes: 7 additions & 5 deletions input/resources-yaml/StructureDefinition-us-core-patient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,17 +293,19 @@ differential:
short: "\U0001D5D4\U0001D5D7\U0001D5D7\U0001D5DC\U0001D5E7\U0001D5DC\U0001D5E2\U0001D5E1\U0001D5D4\U0001D5DF
\U0001D5E8\U0001D5E6\U0001D5D6\U0001D5D7\U0001D5DC: home | work | temp | old
| billing - purpose of this address"

- id: Patient.address.line
path: Patient.address.line
example:
-
label: General
valueString: '49 MEADOW ST'

_example:
- label: US Core
valueString: 49 MEADOW ST
- extension:
- url: http://hl7.org/fhir/StructureDefinition/elementdefinition-suppress
valueBoolean: true
# label: $all
label: General
valueString: 137 Nowhere Street


mustSupport: true
mapping:
Expand Down
9 changes: 4 additions & 5 deletions input/resources/StructureDefinition-us-core-patient.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,18 +444,17 @@
"path": "Patient.address.line",
"example": [
{
"label": "General",
"label": "US Core",
"valueString": "49 MEADOW ST"
}
],
"_example": [
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-suppress",
"valueBoolean": true
}
]
],
"label": "General"
}
],
"mustSupport": true,
Expand Down

0 comments on commit 6dbf6cb

Please sign in to comment.