Skip to content

Commit

Permalink
Add additional rendering tests for i18n work
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamegrieve committed Mar 24, 2024
1 parent 4ac9933 commit dec37fd
Show file tree
Hide file tree
Showing 49 changed files with 3,973 additions and 0 deletions.
18 changes: 18 additions & 0 deletions r5/narrative/ex-acd.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<html><head><link rel="stylesheet" href="http://hl7.org/fhir/fhir.css"/><link rel="stylesheet" href="http://hl7.org/fhir/dist/css/bootstrap.css"/><link rel="stylesheet" href="http://hl7.org/fhir/assets/css/bootstrap-fhir.css"/><link rel="stylesheet" href="http://hl7.org/fhir/assets/css/project.css"/><link rel="stylesheet" href="http://hl7.org/fhir/assets/css/pygments-manni.css"/><link rel="stylesheet" href="http://hl7.org/fhir/jquery-ui.css"/></head><body>
<div id="segment-content" class="segment"><div class="container"><div class="row"><div class="inner-wrapper"><div class="col-12">
<p>Narrative</p><div>
<table class="grid">
<tr>
<td>
<b>Actor: ClientActor</b>
</td>
<td>Client Actor</td>
<td>Type: system</td>
</tr>
<tr>
<td colspan="3"/>
</tr>
</table>
</div>

</div></div></div></div></div></body></html>
29 changes: 29 additions & 0 deletions r5/narrative/ex-acd.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>

<ActorDefinition xmlns="http://hl7.org/fhir">
<id value="client"/>
<url value="http://hl7.org/fhir/ActorDefinition/client"/>
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:oid:2.16.840.1.113883.4.642.27.2"/>
</identifier>
<name value="ClientActor"/>
<title value="Client Actor"/>
<status value="active"/>
<date value="2021-11-02T14:31:30.239Z"/>
<publisher value="HL7 International / FHIR Infrastructure"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://hl7.org/fhir"/>
</telecom>
</contact>
<contact>
<telecom>
<system value="url"/>
<value value="http://www.hl7.org/Special/committees/fiwg/index.cfm"/>
</telecom>
</contact>
<description value="Client Actor"/>
<type value="system"/>
</ActorDefinition>
22 changes: 22 additions & 0 deletions r5/narrative/ex-bin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<html><head><link rel="stylesheet" href="http://hl7.org/fhir/fhir.css"/><link rel="stylesheet" href="http://hl7.org/fhir/dist/css/bootstrap.css"/><link rel="stylesheet" href="http://hl7.org/fhir/assets/css/bootstrap-fhir.css"/><link rel="stylesheet" href="http://hl7.org/fhir/assets/css/project.css"/><link rel="stylesheet" href="http://hl7.org/fhir/assets/css/pygments-manni.css"/><link rel="stylesheet" href="http://hl7.org/fhir/jquery-ui.css"/></head><body>
<div id="segment-content" class="segment"><div class="container"><div class="row"><div class="inner-wrapper"><div class="col-12">
<p>Narrative</p><div>
<p>
<b>Generated Narrative: Binary</b>
<a name="example"> </a>
</p>
<p>
<b>contentType</b>
: application/pdf
</p>
<p>
<b>securityContext</b>
: <a href="DocumentReference/example">DocumentReference/example</a>
</p>
<p>
<b>data</b>
: (base64 data - 130068 bytes)
</p>
</div>

</div></div></div></div></div></body></html>
9 changes: 9 additions & 0 deletions r5/narrative/ex-bin.xml

Large diffs are not rendered by default.

62 changes: 62 additions & 0 deletions r5/narrative/ex-bnd.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<html><head><link rel="stylesheet" href="http://hl7.org/fhir/fhir.css"/><link rel="stylesheet" href="http://hl7.org/fhir/dist/css/bootstrap.css"/><link rel="stylesheet" href="http://hl7.org/fhir/assets/css/bootstrap-fhir.css"/><link rel="stylesheet" href="http://hl7.org/fhir/assets/css/project.css"/><link rel="stylesheet" href="http://hl7.org/fhir/assets/css/pygments-manni.css"/><link rel="stylesheet" href="http://hl7.org/fhir/jquery-ui.css"/></head><body>
<div id="segment-content" class="segment"><div class="container"><div class="row"><div class="inner-wrapper"><div class="col-12">
<p>Narrative</p><div>
<p>Bundle bundle-example of type searchset</p>
<a name="https-//example.com/base/MedicationRequest/3123"> </a>
<a name="MedicationRequest_3123"> </a>
<hr/>
<p>Entry 1 - fullUrl = https://example.com/base/MedicationRequest/3123</p>
<p>Search:Mode = match,Score = 1</p>
<p>Resource MedicationRequest:</p>
<blockquote>
<p>
<p>
<b>Generated Narrative: MedicationRequest</b>
<a name="3123"> </a>
</p>
<p>
<b>status</b>
: UNKNOWN
</p>
<p>
<b>intent</b>
: ORDER
</p>
<h3>Medications</h3>
<table class="grid">
<tr>
<td style="display: none">-</td>
<td>
<b>Reference</b>
</td>
</tr>
<tr>
<td style="display: none">*</td>
<td>
<a href="Medication/example">Medication/example</a>
</td>
</tr>
</table>
<p>
<b>subject</b>
: <a href="Patient/347">Patient/347</a>
</p>
</p>
</blockquote>
<a name="https-//example.com/base/Medication/example"> </a>
<a name="Medication_example"> </a>
<hr/>
<p>Entry 2 - fullUrl = https://example.com/base/Medication/example</p>
<p>Search:Mode = include</p>
<p>Resource Medication:</p>
<blockquote>
<p>
<p>
<b>Generated Narrative: Medication</b>
<a name="example"> </a>
</p>
</p>
</blockquote>
</div>

</div></div></div></div></div></body></html>
83 changes: 83 additions & 0 deletions r5/narrative/ex-bnd.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bundle xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://hl7.org/fhir ../../schema/medication.xsd http://hl7.org/fhir ../../schema/bundle.xsd http://hl7.org/fhir ../../schema/medicationrequest.xsd"
xmlns="http://hl7.org/fhir">
<id value="bundle-example"/>
<!-- this example bundle is a search set -->
<meta>
<lastUpdated value="2014-08-18T01:43:30Z"/>
<!-- when the search was executed -->
</meta>
<type value="searchset"/>

<!-- the total number of matches. This is a stupid example - there's a grand total of 3 matches, and
we're only going to return the first 1, with a next link, in order to demonstrate what a page link
looks like -->
<total value="3"/>
<!-- all search sets include the self link - the server's statement of what it thought it was
searching on. The client can use this to cross-check whether the server executed what it
asked the server to, if it cares -->
<link>
<relation value="self"/>
<url value="https://example.com/base/MedicationRequest?patient=347&amp;_include=MedicationRequest.medication&amp;_count=2"/>
</link>
<!-- now, the link to the next set of results. The actual URL is entirely at the
discretion of the server, and is opaque to the client. Many servers will insert
some kind of search instance identifier
Note that a big set of results will include prev, first, last links as well as next -->
<link>
<relation value="next"/>
<url value="https://example.com/base/MedicationRequest?patient=347&amp;searchId=ff15fd40-ff71-4b48-b366-09c706bed9d0&amp;page=2"/>
</link>

<!-- now, the actual entries -->
<entry>
<fullUrl value="https://example.com/base/MedicationRequest/3123"/>
<!-- the matching resource -->
<resource>
<MedicationRequest>
<id value="3123"/>
<!-- snip -->
<status value="unknown"/>
<intent value="order"/>
<medication>
<reference>
<reference value="Medication/example"/>
</reference>
</medication>
<subject>
<reference value="Patient/347"/>
</subject>
<!-- snip -->
</MedicationRequest>
</resource>
<!-- and now optional search information -->
<search>
<!-- this resource included as a match to the search criteria.
Servers are not required to populate this, but should, because
there are a few cases where it might be ambiguous whether a
resource is added because it's a match or an include -->
<mode value="match"/>
<!-- score. For matches where the criteria are not determinate,
e.g. text search on narrative, the server can include a score to indicate
how well the resource matches the conditions. Since this search is by patient
identifier, there's nothing fuzzy about it, but for example purposes: -->
<score value="1"/>
</search>
</entry>
<entry>
<fullUrl value="https://example.com/base/Medication/example"/>
<resource>
<Medication xmlns="http://hl7.org/fhir">
<id value="example"/>
<!-- snip -->
</Medication>
</resource>
<search>
<!-- added because the client asked to include the medications -->
<mode value="include"/>
</search>
</entry>
</Bundle>

63 changes: 63 additions & 0 deletions r5/narrative/ex-cm.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<html><head><link rel="stylesheet" href="http://hl7.org/fhir/fhir.css"/><link rel="stylesheet" href="http://hl7.org/fhir/dist/css/bootstrap.css"/><link rel="stylesheet" href="http://hl7.org/fhir/assets/css/bootstrap-fhir.css"/><link rel="stylesheet" href="http://hl7.org/fhir/assets/css/project.css"/><link rel="stylesheet" href="http://hl7.org/fhir/assets/css/pygments-manni.css"/><link rel="stylesheet" href="http://hl7.org/fhir/jquery-ui.css"/></head><body>
<div id="segment-content" class="segment"><div class="container"><div class="row"><div class="inner-wrapper"><div class="col-12">
<p>Narrative</p><div>
<p>Mapping from http://example.org/fhir/example1 to http://example.org/fhir/example2</p>
<p>
DRAFT (not intended for production usage). Published on 2012-06-13 by HL7 International / Terminology Infrastructure ( <a href="http://hl7.org/fhir">http://hl7.org/fhir</a>
, <a href="http://www.hl7.org/Special/committees/Vocab/index.cfm">http://www.hl7.org/Special/com...</a>
).
</p>
<div>
<p>An example mapping</p>


</div>
<br/>
<p>
<b>Group 1</b>
Mapping from <code>http://example.org/fhir/example1</code>
to <code>http://example.org/fhir/example2</code>
</p>
<table class="grid">
<tr>
<td colspan="3">
<b>Source Concept Details</b>
</td>
<td>
<b>Relationship</b>
</td>
<td colspan="2">
<b>Target Concept Details</b>
</td>
<td colspan="2">
<b>Properties</b>
</td>
</tr>
<tr>
<td colspan="2">
<b>Codes</b>
from http://example.org/fhir/example1
</td>
<td>
<b>ex3</b>
</td>
<td/>
<td colspan="2">
<b>Codes</b>
from http://example.org/fhir/example2
</td>
</tr>
<tr>
<td style="border-right-width: 0px">code</td>
<td style="border-left-width: 0px">Example Code</td>
<td/>
<td>
<a href="null#equivalent" title="equivalent">is equivalent to</a>
</td>
<td style="border-right-width: 0px">code2</td>
<td style="border-left-width: 0px">Some Example Code</td>
</tr>
</table>
</div>

</div></div></div></div></div></body></html>
62 changes: 62 additions & 0 deletions r5/narrative/ex-cm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>

<ConceptMap xmlns="http://hl7.org/fhir">
<id value="example2"/>
<url value="http://hl7.org/fhir/ConceptMap/example2"/>
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:oid:2.16.840.1.113883.4.642.14.8"/>
</identifier>
<name value="FHIRexanple2"/>
<title value="FHIR Example 2"/>
<status value="draft"/>
<experimental value="true"/>
<date value="2012-06-13"/>
<publisher value="HL7 International / Terminology Infrastructure"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://hl7.org/fhir"/>
</telecom>
</contact>
<contact>
<telecom>
<system value="url"/>
<value value="http://www.hl7.org/Special/committees/Vocab/index.cfm"/>
</telecom>
</contact>
<description value="An example mapping"/>
<purpose value="To illustrate mapping features"/>
<additionalAttribute>
<code value="ex3"/>
<uri value="http://example.org/fhir/property-value/example"/>
<type value="Coding"/>
</additionalAttribute>
<sourceScopeUri value="http://example.org/fhir/example1"/>
<targetScopeUri value="http://example.org/fhir/example2"/>
<group>
<source value="http://example.org/fhir/example1"/>
<target value="http://example.org/fhir/example2"/>
<element>
<code value="code"/>
<display value="Example Code"/>
<target>
<code value="code2"/>
<display value="Some Example Code"/>
<relationship value="equivalent"/>
<dependsOn>
<attribute value="ex3"/>
<valueCoding>
<system value="http://example.org/fhir/example3"/>
<code value="some-code"/>
<display value="Something Coded"/>
</valueCoding>
</dependsOn>
</target>
</element>
<unmapped>
<mode value="other-map"/>
<otherMap value="http://example.org/fhir/ConceptMap/map2"/>
</unmapped>
</group>
</ConceptMap>
Loading

0 comments on commit dec37fd

Please sign in to comment.