forked from HL7/davinci-pdex-plan-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsd-logical.html
104 lines (86 loc) · 4.32 KB
/
sd-logical.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
# jekyll header
---
{% include header.html %}
<div id="segment-breadcrumb" class="segmnt">
<!-- segment-breadcrumb -->
<div class="container">
<!-- container -->
<ul class="breadcrumb">
<li title="home"><a href="index.html"><b>Home</b></a></li>
<li title="logical models"><a href="logical.html"><b>Logical Models</b></a></li>
<li><b>{{[title]}}</b></li>
</ul>
</div>
<!-- /container -->
</div>
<!-- /segment-breadcrumb -->
{% include container-start.html %}
<!-- ============CONTENT CONTENT=============== -->
{% capture examples %}{% include {{[type]}}-example-list-{{[id]}}.xhtml %}{% endcapture %}
<ul class="nav nav-tabs">
<li class="active"><a href="#">Content</a></li>
<li><a href="{{[type]}}-{{[id]}}-definitions.html">Detailed Descriptions</a></li>
{% if examples != "" %}
<li><a href="{{[type]}}-{{[id]}}-examples.html">Examples</a></li>
{% endif %}
<li><a href="{{[type]}}-{{[id]}}.xml.html">XML</a></li>
<li><a href="{{[type]}}-{{[id]}}.json.html">JSON</a></li>
<li><a href="{{[type]}}-{{[id]}}.ttl.html">Turtle</a></li>
</ul>
<h2><a name="top"></a>{{ site.data.structuredefinitions.{{[id]}}.name }}</h2>
<a name="profile"> </a>
<p> </p>
<p>
The official URL for this logical model is:
</p>
<pre>{{ site.data.structuredefinitions.{{[id]}}.url }}</pre>
<p>{{ site.data.structuredefinitions.{{[id]}}.description | markdownify }}</p>
<p>
This logical model was published on {{ site.data.structuredefinitions.{{[id]}}.date }} as a {{ site.data.structuredefinitions.{{[id]}}.status }} by {{ site.data.structuredefinitions.{{[id]}}.publisher }}.
</p>
<p>
{% capture "profileId" %}{{"{{[id]}}EOS" | remove: "-modelEOS" }}{% endcapture %}
{% if site.data.structuredefinitions[profileId] %}
<a href="{{ site.data.structuredefinitions.{{[id]}}.path | replace: "-model.html", ".html" }}">View the corresponding
{{ site.data.structuredefinitions[profileId].name }} profile.</a>
{% else %}
This IG does not define a corresponding profile for this logical model.
{% endif %}
</p>
<div id="structure">
{% comment %}
This is a hack to fix the issue w/ the IG Publisher outputting unlinked canonical URLs as the types in the snapshot
table. This makes the table hard to read and hard to navigate, so we fix it by replacing the canonical URLs with
shorter names and relative links. This hack should be removed when the IG Publisher is fixed.
See: https://chat.fhir.org/#narrow/stream/implementers/topic/Specifying.20a.20Logic.20Model.20as.20type
{% endcomment %}
{% capture "snapshotTable" %}{% include {{[type]}}-{{[id]}}-snapshot.xhtml %}{% endcapture %}
{% for sd in site.data.structuredefinitions %}
{% capture "original" %}>{{sd[1].url}}</td>{% endcapture %}
{% capture "replacement" %}><a href="StructureDefinition-{{sd[0]}}.html">{{sd[1].name}}</a></td>{% endcapture %}
{% assign snapshotTable = snapshotTable | replace: original, replacement %}
{% capture "original" %}>{{sd[1].url}},{% endcapture %}
{% capture "replacement" %}><a href="StructureDefinition-{{sd[0]}}.html">{{sd[1].name}}</a>,{% endcapture %}
{% assign snapshotTable = snapshotTable | replace: original, replacement %}
{% capture "original" %}, {{sd[1].url}},{% endcapture %}
{% capture "replacement" %}, <a href="StructureDefinition-{{sd[0]}}.html">{{sd[1].name}}</a>,{% endcapture %}
{% assign snapshotTable = snapshotTable | replace: original, replacement %}
{% capture "original" %}, {{sd[1].url}}</td>{% endcapture %}
{% capture "replacement" %}, <a href="StructureDefinition-{{sd[0]}}.html">{{sd[1].name}}</a></td>{% endcapture %}
{% assign snapshotTable = snapshotTable | replace: original, replacement %}
{% endfor %}
{{snapshotTable}}
</div>
<a name="downloads"> </a>
<p>Downloads: StructureDefinition: (<a href="{{[type]}}-{{[id]}}.xml" download="{{[type]}}-{{[id]}}.xml">XML</a>, <a href="{{[type]}}-{{[id]}}.json" download="{{[type]}}-{{[id]}}.json">JSON</a>,
<a href="{{[type]}}-{{[id]}}.ttl" download="{{[type]}}-{{[id]}}.ttl">TTL</a>)</p>
<p> </p>
<a name="tx"> </a>
{%include {{[type]}}-{{[id]}}-tx.xhtml%}
<p> </p>
<!-- ==============END CONTENT END CONTENT=================== -->
{% include container-end.html %}
{% include footer.html %}
</body>
</html>