Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ashna Jagadisan
patientInformation
Commits
570b4227
Unverified
Commit
570b4227
authored
Mar 10, 2020
by
Ashna Jagadisan
Committed by
GitHub
Mar 10, 2020
Browse files
Add files via upload
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
0 deletions
+72
-0
index.html
index.html
+17
-0
script.js
script.js
+55
-0
No files found.
index.html
0 → 100644
View file @
570b4227
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title>
Patient Information
</title>
</head>
<body>
<header>
<h3>
Patient Information
</h3>
</header>
<div
id=
"container"
>
<div
id =
"output"
></div>
</div>
<script
src=
"script.js"
></script>
</body>
</html>
script.js
0 → 100644
View file @
570b4227
var
patient
=
{
"
resourceType
"
:
"
Patient
"
,
"
id
"
:
"
xcda
"
,
"
status
"
:
"
generated
"
,
"
div
"
:
"
Henry Levin the 7th
"
,
"
identifier
"
:
{
"
use
"
:
"
usual
"
,
"
type
"
:
{
"
coding
"
:
{
"
system
"
:
"
htt://hl7.org/fhir/v2/0203
"
,
"
code
"
:
"
MR
"
}
},
"
system
"
:
"
urn:oid:2.16.840.1.113883.19.5
"
,
"
value
"
:
12345
,
"
active
"
:
true
,
"
name
"
:
{
"
family
"
:
"
Levin
"
,
"
given
"
:
"
Henry
"
},
"
gender
"
:
"
male
"
,
"
birthDate
"
:
"
2002-09-24
"
,
"
managingOrganization
"
:
{
"
reference
"
:
"
Organization/2.16.840.1.113883.19.5
"
,
"
display
"
:
"
University Health Network
"
},
"
conditions
"
:
[
"
Diabetes
"
,
"
High blood pressure
"
,
"
Asthma
"
]
}
}
var
patientInfo
=
patient
.
identifier
;
var
patientName
=
patientInfo
.
name
;
var
patientOrg
=
patientInfo
.
managingOrganization
;
var
patientGender
=
patientInfo
.
gender
;
var
patientCondits
=
patientInfo
.
conditions
;
var
text
=
""
;
var
i
;
for
(
i
=
0
;
i
<
patientCondits
.
length
;
i
++
)
{
text
+=
'
–
'
+
patientCondits
[
i
]
+
"
<br>
"
;
}
var
output
=
document
.
getElementById
(
'
output
'
);
output
.
innerHTML
=
'
Name of Patient:
'
+
patientName
.
given
+
'
'
+
patientName
.
family
+
'
<br /> Organization:
'
+
patientOrg
.
display
+
'
<br /> Gender:
'
+
patientGender
+
'
<br /> Number of Conditions:
'
+
patientCondits
.
length
+
'
<br /> List of all Conditions: <br />
'
+
text
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment