-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.js
More file actions
116 lines (109 loc) · 2 KB
/
data.js
File metadata and controls
116 lines (109 loc) · 2 KB
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
107
108
109
110
111
112
113
114
115
116
export const observationBody = {
resourceType: "Observation",
status: "final",
subject: {
reference: "Patient/a364e9f8-dd8b-460a-900b-5b905f0a0d3d",
},
effectiveDateTime: "2020-01-01T00:00:00+00:00",
identifier: [
{
system: "my-code-system",
value: "ABC-12345",
},
],
code: {
coding: [
{
system: "http://loinc.org",
code: "8867-4",
display: "Heart rate",
},
],
},
valueQuantity: {
value: 80,
unit: "bpm",
},
};
export const ObservationPatchBody = {
resourceType: "Observation",
id: "6469cd40-c3e0-4cb9-9a81-6cef18377fd6",
status: "final",
subject: {
reference: "Patient/a364e9f8-dd8b-460a-900b-5b905f0a0d3d",
},
effectiveDateTime: "2020-01-01T00:00:00+00:00",
identifier: [
{
system: "my-code-system",
value: "ABC-12345",
},
],
code: {
coding: [
{
system: "http://loinc.org",
code: "8867-4",
display: "Heart rate",
},
],
},
valueQuantity: {
value: 123,
unit: "bpm",
},
};
export const createEncounterBody = {
status: "in-progress",
subject: {
reference: "Patient/dbcf46a0-2e0a-4302-9b98-18fc6a6d2fc1",
},
period : {
start : "2022-05-12T12:42:20.605+05:30",
end : "2022-03-29T23:32:26.605+05:30"
},
};
export const updateEncounterBody = {
status: "arrived",
};
export const createPatientBody = {
name: [
{
family: "Wick",
given: ["John"],
use: "official",
},
],
birthDate : "2003-01-01",
gender: "male",
};
export const updatePatientBody = {
name: [
{
family: "Yagami",
given: ["Light"],
use: "official",
},
],
gender: "male",
};
export const createPractitionerBody = {
name: [
{
family: "Uchiha",
given: ["Madara"],
use: "official",
},
],
gender: "female",
};
export const updatePractitionerBody = {
name: [
{
family: "Smith",
given: ["Kevin"],
use: "official",
},
],
gender: "male",
};