-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.html
106 lines (92 loc) · 4.54 KB
/
template.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
105
106
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="John D'Amore, More Informatics">
<title>CDA-FHIR Visualizer Result</title>
<link rel="canonical" href="https://getbootstrap.com/docs/5.0/examples/starter-template/">
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />
<link href="/colors.css" rel="stylesheet">
</head>
<body>
<div class="col-lg-12 mx-auto p-3 py-md-5">
<!--
<header class="d-flex align-items-center pb-3 mb-5 border-bottom">
<a href="/" class="d-flex align-items-center text-dark text-decoration-none">
<span class="fs-4">Yo1</span>
</a>
</header>
-->
<main>
<h1><img src="/assets/cda-favicon.png" style="height:40px"> CDA-FHIRVisualizer Results <img src="/assets/fhir.png" style="height:40px"></h1>
<p class="col-md-12">Below are your results. Please be aware this tool is a beta under active development and does not provide a mapping between formats. For more on the HL7 projects for mapping CDA/FHIR, please see <a href="https://confluence.hl7.org/display/CGP/C-CDA+to+and+from+US+Core+Mapping">US C-CDA to and from US Core Mapping</a></p>
<!--
<div class="mb-2">
<button id="example" class="btn btn-primary btn-lg px-4">Try an example</button>
<button id="formatButton" class="btn btn-primary btn-lg px-4">Format Code</button>
</div> -->
<hr class="col-md-12 mb-5">
<div class="row">
<div class="col-md-6">
<div>
<div class="d-flex justify-content-between align-items-center">
<h2>Highlighted CDA Entry Here</h2>
<button id="copyCDA" class="btn btn-secondary btn-sm">Copy CDA HTML to Clipboard</button>
</div>
<div id="cda" class="border codeArea"></div>
</div>
</div>
<div class="col-md-6">
<div>
<div class="d-flex justify-content-between align-items-center">
<h2>Highlighted FHIR Resource Here</h2>
<button id="copyFHIR" class="btn btn-secondary btn-sm">Copy FHIR HTML to Clipboard</button>
</div>
<div id="fhir" class="border codeArea"></div>
</div>
</div>
</div>
<script>
document.getElementById('copyCDA').addEventListener('click', function() {
var cdaContent = document.getElementById('cda').outerHTML;
navigator.clipboard.writeText(cdaContent).then(function() {
alert('CDA content copied to clipboard');
}, function(err) {
alert('Could not copy text: ', err);
});
});
document.getElementById('copyFHIR').addEventListener('click', function() {
var fhirContent = document.getElementById('fhir').outerHTML;
navigator.clipboard.writeText(fhirContent).then(function() {
alert('FHIR content copied to clipboard');
}, function(err) {
alert('Could not copy text: ', err);
});
});
document.querySelectorAll('mark').forEach(function(mark) {
mark.addEventListener('click', function() {
var text = document.createTextNode(mark.innerText);
mark.parentNode.replaceChild(text, mark);
});
});
</script>
</main>
<footer class="pt-5 my-5 text-muted border-top">
Created by More Informatics, Inc. Source code available <a href="https://github.com/jddamore/cda-fhir-compare">here</a>
HL7, CDA, and FHIR are trademarks of Health Level Seven International.
</footer>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT"
crossorigin="anonymous"></script>
</body>
</html>