fhir-react 0.3.11 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -1
- package/build/index.js +9 -9
- package/package.json +1 -1
- package/src/components/containers/Accordion/Accordion.js +8 -4
- package/src/components/resources/AdverseEvent/AdverseEvent.js +2 -0
- package/src/components/resources/AllergyIntolerance/AllergyIntolerance.js +4 -0
- package/src/components/resources/Appointment/Appointment.js +2 -0
- package/src/components/resources/Binary/Binary.js +2 -1
- package/src/components/resources/CarePlan/CarePlan.js +3 -0
- package/src/components/resources/CareTeam/CareTeam.js +2 -0
- package/src/components/resources/Claim/Claim.js +3 -0
- package/src/components/resources/ClaimResponse/ClaimResponse.js +2 -0
- package/src/components/resources/Condition/Condition.js +2 -0
- package/src/components/resources/Coverage/Coverage.js +3 -0
- package/src/components/resources/Device/Device.js +3 -0
- package/src/components/resources/DiagnosticReport/DiagnosticReport.js +2 -0
- package/src/components/resources/DocumentReference/DocumentReference.js +2 -0
- package/src/components/resources/Encounter/Encounter.js +2 -0
- package/src/components/resources/ExplanationOfBenefit/ExplanationOfBenefit.js +18 -3
- package/src/components/resources/FamilyMemberHistory/FamilyMemberHistory.js +2 -0
- package/src/components/resources/Generic/Generic.js +8 -1
- package/src/components/resources/Goal/Goal.js +2 -0
- package/src/components/resources/Immunization/Immunization.js +2 -0
- package/src/components/resources/List/List.js +2 -0
- package/src/components/resources/Location/Location.js +8 -1
- package/src/components/resources/Medication/Medication.js +2 -0
- package/src/components/resources/MedicationAdministration/MedicationAdministration.js +4 -2
- package/src/components/resources/MedicationDispense/MedicationDispense.js +2 -0
- package/src/components/resources/MedicationKnowledge/MedicationKnowledge.js +2 -0
- package/src/components/resources/MedicationOrder/MedicationOrder.js +8 -1
- package/src/components/resources/MedicationRequest/MedicationRequest.js +2 -0
- package/src/components/resources/MedicationStatement/MedicationStatement.js +2 -0
- package/src/components/resources/Observation/Observation.js +8 -1
- package/src/components/resources/Organization/Organization.js +2 -0
- package/src/components/resources/Patient/Patient.js +2 -0
- package/src/components/resources/Practitioner/Practitioner.js +4 -0
- package/src/components/resources/PractitionerRole/PractitionerRole.js +2 -0
- package/src/components/resources/Procedure/Procedure.js +8 -1
- package/src/components/resources/Questionnaire/Questionnaire.js +2 -0
- package/src/components/resources/QuestionnaireResponse/QuestionnaireResponse.js +2 -0
- package/src/components/resources/ReferralRequest/ReferralRequest.js +2 -0
- package/src/components/resources/RelatedPerson/RelatedPerson.js +2 -0
- package/src/components/resources/ResearchStudy/ResearchStudy.js +2 -0
|
@@ -38,12 +38,14 @@ const commonDTO = fhirResource => {
|
|
|
38
38
|
birthDate,
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
+
|
|
41
42
|
const dstu2DTO = fhirResource => {
|
|
42
43
|
const name = _get(fhirResource, 'name');
|
|
43
44
|
return {
|
|
44
45
|
name,
|
|
45
46
|
};
|
|
46
47
|
};
|
|
48
|
+
|
|
47
49
|
const stu3DTO = fhirResource => {
|
|
48
50
|
const name = _get(fhirResource, 'name.0');
|
|
49
51
|
const address = _get(fhirResource, 'address.0');
|
|
@@ -88,6 +90,7 @@ const Practitioner = ({
|
|
|
88
90
|
fhirIcons,
|
|
89
91
|
onClick,
|
|
90
92
|
rawOnClick,
|
|
93
|
+
customId,
|
|
91
94
|
}) => {
|
|
92
95
|
let fhirResourceData = {};
|
|
93
96
|
try {
|
|
@@ -168,6 +171,7 @@ const Practitioner = ({
|
|
|
168
171
|
bodyContent={<Body tableData={tableData} />}
|
|
169
172
|
onClick={onClick}
|
|
170
173
|
rawOnClick={rawOnClick}
|
|
174
|
+
customId={customId}
|
|
171
175
|
/>
|
|
172
176
|
</Root>
|
|
173
177
|
);
|
|
@@ -49,6 +49,7 @@ const PractitionerRole = ({
|
|
|
49
49
|
fhirIcons,
|
|
50
50
|
onClick,
|
|
51
51
|
rawOnClick,
|
|
52
|
+
customId,
|
|
52
53
|
}) => {
|
|
53
54
|
let fhirResourceData = {};
|
|
54
55
|
try {
|
|
@@ -108,6 +109,7 @@ const PractitionerRole = ({
|
|
|
108
109
|
bodyContent={<Body tableData={tableData} />}
|
|
109
110
|
onClick={onClick}
|
|
110
111
|
rawOnClick={rawOnClick}
|
|
112
|
+
customId={customId}
|
|
111
113
|
/>
|
|
112
114
|
</Root>
|
|
113
115
|
);
|
|
@@ -14,7 +14,13 @@ import _has from 'lodash/has';
|
|
|
14
14
|
import { isNotEmptyArray } from '../../../utils';
|
|
15
15
|
import { Value } from '../../ui';
|
|
16
16
|
|
|
17
|
-
const Procedure = ({
|
|
17
|
+
const Procedure = ({
|
|
18
|
+
fhirResource,
|
|
19
|
+
fhirIcons,
|
|
20
|
+
onClick,
|
|
21
|
+
rawOnClick,
|
|
22
|
+
customId,
|
|
23
|
+
}) => {
|
|
18
24
|
const display =
|
|
19
25
|
_get(fhirResource, 'code.coding[0].display') ||
|
|
20
26
|
_get(fhirResource, 'code.text');
|
|
@@ -126,6 +132,7 @@ const Procedure = ({ fhirResource, fhirIcons, onClick, rawOnClick }) => {
|
|
|
126
132
|
bodyContent={<Body tableData={tableData} />}
|
|
127
133
|
onClick={onClick}
|
|
128
134
|
rawOnClick={rawOnClick}
|
|
135
|
+
customId={customId}
|
|
129
136
|
/>
|
|
130
137
|
</Root>
|
|
131
138
|
);
|
|
@@ -81,6 +81,7 @@ const Questionnaire = ({
|
|
|
81
81
|
fhirIcons,
|
|
82
82
|
onClick,
|
|
83
83
|
rawOnClick,
|
|
84
|
+
customId,
|
|
84
85
|
}) => {
|
|
85
86
|
let fhirResourceData = {};
|
|
86
87
|
|
|
@@ -121,6 +122,7 @@ const Questionnaire = ({
|
|
|
121
122
|
}
|
|
122
123
|
onClick={onClick}
|
|
123
124
|
rawOnClick={rawOnClick}
|
|
125
|
+
customId={customId}
|
|
124
126
|
/>
|
|
125
127
|
</Root>
|
|
126
128
|
);
|
|
@@ -77,6 +77,7 @@ const QuestionnaireResponse = ({
|
|
|
77
77
|
fhirIcons,
|
|
78
78
|
onClick,
|
|
79
79
|
rawOnClick,
|
|
80
|
+
customId,
|
|
80
81
|
}) => {
|
|
81
82
|
let fhirResourceData = {};
|
|
82
83
|
|
|
@@ -141,6 +142,7 @@ const QuestionnaireResponse = ({
|
|
|
141
142
|
}
|
|
142
143
|
onClick={onClick}
|
|
143
144
|
rawOnClick={rawOnClick}
|
|
145
|
+
customId={customId}
|
|
144
146
|
/>
|
|
145
147
|
</Root>
|
|
146
148
|
);
|
|
@@ -76,6 +76,7 @@ const ReferralRequest = ({
|
|
|
76
76
|
fhirIcons,
|
|
77
77
|
onClick,
|
|
78
78
|
rawOnClick,
|
|
79
|
+
customId,
|
|
79
80
|
}) => {
|
|
80
81
|
let fhirResourceData = {};
|
|
81
82
|
try {
|
|
@@ -157,6 +158,7 @@ const ReferralRequest = ({
|
|
|
157
158
|
}
|
|
158
159
|
onClick={onClick}
|
|
159
160
|
rawOnClick={rawOnClick}
|
|
161
|
+
customId={customId}
|
|
160
162
|
/>
|
|
161
163
|
</Root>
|
|
162
164
|
);
|
|
@@ -73,6 +73,7 @@ const RelatedPerson = ({
|
|
|
73
73
|
fhirIcons,
|
|
74
74
|
onClick,
|
|
75
75
|
rawOnClick,
|
|
76
|
+
customId,
|
|
76
77
|
}) => {
|
|
77
78
|
let fhirResourceData = {};
|
|
78
79
|
try {
|
|
@@ -146,6 +147,7 @@ const RelatedPerson = ({
|
|
|
146
147
|
bodyContent={<Body tableData={tableData} />}
|
|
147
148
|
onClick={onClick}
|
|
148
149
|
rawOnClick={rawOnClick}
|
|
150
|
+
customId={customId}
|
|
149
151
|
/>
|
|
150
152
|
</Root>
|
|
151
153
|
);
|
|
@@ -100,6 +100,7 @@ const ResearchStudy = ({
|
|
|
100
100
|
fhirIcons,
|
|
101
101
|
onClick,
|
|
102
102
|
rawOnClick,
|
|
103
|
+
customId,
|
|
103
104
|
}) => {
|
|
104
105
|
let fhirResourceData = {};
|
|
105
106
|
try {
|
|
@@ -296,6 +297,7 @@ const ResearchStudy = ({
|
|
|
296
297
|
bodyContent={<Body tableData={tableData} />}
|
|
297
298
|
onClick={onClick}
|
|
298
299
|
rawOnClick={rawOnClick}
|
|
300
|
+
customId={customId}
|
|
299
301
|
/>
|
|
300
302
|
</Root>
|
|
301
303
|
);
|