fhir-react 0.2.1 → 0.3.0

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.
Files changed (163) hide show
  1. package/.github/workflows/publish_npmjs.yml +18 -0
  2. package/.storybook/config.js +9 -3
  3. package/.storybook/presets.js +1 -0
  4. package/.storybook/preview-head.html +4 -0
  5. package/README.md +86 -55
  6. package/package.json +13 -4
  7. package/src/assets/common/chevron-right.svg +3 -0
  8. package/src/assets/containers/AllergyIntolerance/allergy-intolerance.svg +9 -0
  9. package/src/assets/containers/Appointment/appointment.svg +14 -0
  10. package/src/assets/containers/CarePlan/care-plan.svg +10 -0
  11. package/src/assets/containers/CareTeam/care-team.svg +10 -0
  12. package/src/assets/containers/Claim/claim.svg +6 -0
  13. package/src/assets/containers/ClaimResponse/claim-response.svg +7 -0
  14. package/src/assets/containers/Condition/condition.svg +11 -0
  15. package/src/assets/containers/Device/device.svg +8 -0
  16. package/src/assets/containers/DiagnosticReport/diagnostic-report.svg +14 -0
  17. package/src/assets/containers/DocumentReference/document-reference.svg +10 -0
  18. package/src/assets/containers/Encounter/encounter.svg +10 -0
  19. package/src/assets/containers/ExplanationOfBenefit/explanation-of-benefit.svg +3 -0
  20. package/src/assets/containers/FamilyMemberHistory/family-member-history.svg +7 -0
  21. package/src/assets/containers/Goal/goal.svg +11 -0
  22. package/src/assets/containers/Immunization/immunization.svg +7 -0
  23. package/src/assets/containers/List/list.svg +3 -0
  24. package/src/assets/containers/Location/location.svg +4 -0
  25. package/src/assets/containers/Medication/medication.svg +5 -0
  26. package/src/assets/containers/MedicationAdministration/medication-administration.svg +6 -0
  27. package/src/assets/containers/MedicationKnowledge/medication-knowledge.svg +11 -0
  28. package/src/assets/containers/MedicationStatement/medication-statement.svg +5 -0
  29. package/src/assets/containers/Observation/observation.svg +12 -0
  30. package/src/assets/containers/Practitioner/practitioner.svg +5 -0
  31. package/src/assets/containers/Procedure/procedure.svg +9 -0
  32. package/src/assets/containers/Questionnaire/questionnaire.svg +6 -0
  33. package/src/assets/containers/QuestionnaireResponse/questionnaire-response.svg +6 -0
  34. package/src/assets/containers/QustionnaireResponse/questionnaire-response.svg +6 -0
  35. package/src/assets/containers/ResearchStudy/research-study.svg +9 -0
  36. package/src/assets/containers/ResourceCategory/resource-placeholder.svg +3 -0
  37. package/src/components/containers/Accordion/Accordion.js +80 -0
  38. package/src/components/containers/Accordion/Accordion.stories.js +76 -0
  39. package/src/components/containers/Accordion/index.js +3 -0
  40. package/src/components/containers/ResourceContainer/ResourceContainer.css +0 -1
  41. package/src/components/containers/ResourceContainer/ResourceContainer.js +1 -1
  42. package/src/components/datatypes/AccountBalance/AccountBalance.js +33 -0
  43. package/src/components/datatypes/AccountBalance/index.js +3 -0
  44. package/src/components/datatypes/Annotation/Annotation.js +1 -1
  45. package/src/components/datatypes/Coding/Coding.js +1 -1
  46. package/src/components/datatypes/Date/Date.js +14 -4
  47. package/src/components/datatypes/DatePeriod/DatePeriod.js +38 -0
  48. package/src/components/datatypes/DatePeriod/index.js +3 -0
  49. package/src/components/datatypes/HeaderIcon/HeaderIcon.js +31 -0
  50. package/src/components/datatypes/HeaderIcon/index.js +3 -0
  51. package/src/components/datatypes/HumanName/HumanName.js +6 -21
  52. package/src/components/datatypes/Reference/Reference.js +3 -6
  53. package/src/components/resources/AdverseEvent/AdverseEvent.test.js +2 -2
  54. package/src/components/resources/AllergyIntolerance/AllergyIntolerance.test.js +4 -4
  55. package/src/components/resources/Appointment/Appointment.js +91 -65
  56. package/src/components/resources/Appointment/Appointment.test.js +3 -3
  57. package/src/components/resources/Bundle/Bundle.js +2 -2
  58. package/src/components/resources/Bundle/Bundle.stories.js +78 -12
  59. package/src/components/resources/Bundle/Bundle.test.js +3 -0
  60. package/src/components/resources/CarePlan/CarePlan.test.js +4 -4
  61. package/src/components/resources/CareTeam/CareTeam.js +13 -14
  62. package/src/components/resources/CareTeam/CareTeam.test.js +4 -4
  63. package/src/components/resources/Claim/Claim.test.js +6 -6
  64. package/src/components/resources/ClaimResponse/ClaimResponse.test.js +6 -6
  65. package/src/components/resources/Condition/Condition.js +63 -47
  66. package/src/components/resources/Condition/Condition.stories.js +41 -8
  67. package/src/components/resources/Condition/Condition.test.js +20 -14
  68. package/src/components/resources/DiagnosticReport/DiagnosticReport.test.js +5 -7
  69. package/src/components/resources/DocumentReference/DocumentReference.js +1 -1
  70. package/src/components/resources/DocumentReference/DocumentReference.test.js +3 -3
  71. package/src/components/resources/Encounter/Encounter.js +66 -36
  72. package/src/components/resources/Encounter/EncounterParticipants.js +2 -2
  73. package/src/components/resources/ExplanationOfBenefit/CareTeam.js +2 -2
  74. package/src/components/resources/ExplanationOfBenefit/Diagnosis.js +31 -5
  75. package/src/components/resources/ExplanationOfBenefit/ExplanationOfBenefit.js +272 -201
  76. package/src/components/resources/ExplanationOfBenefit/ExplanationOfBenefit.stories.js +12 -0
  77. package/src/components/resources/ExplanationOfBenefit/ExplanationOfBenefit.test.js +96 -62
  78. package/src/components/resources/ExplanationOfBenefit/Items.js +2 -2
  79. package/src/components/resources/ExplanationOfBenefit/PriceLabel.js +20 -0
  80. package/src/components/resources/ExplanationOfBenefit/Related.js +3 -3
  81. package/src/components/resources/ExplanationOfBenefit/SupportingInfo.js +14 -3
  82. package/src/components/resources/ExplanationOfBenefit/TotalGraph.js +68 -0
  83. package/src/components/resources/ExplanationOfBenefitGraph/ExplanationOfBenefitGraph.js +89 -0
  84. package/src/components/resources/ExplanationOfBenefitGraph/ExplanationOfBenefitGraph.stories.js +78 -0
  85. package/src/components/resources/ExplanationOfBenefitGraph/ExplanationOfBenefitGraph.test.js +51 -0
  86. package/src/components/resources/ExplanationOfBenefitGraph/index.js +3 -0
  87. package/src/components/resources/Goal/Goal.test.js +1 -1
  88. package/src/components/resources/Immunization/Immunization.js +125 -94
  89. package/src/components/resources/Immunization/Immunization.stories.js +23 -4
  90. package/src/components/resources/Immunization/Immunization.test.js +17 -12
  91. package/src/components/resources/List/DrugTierDefinitionExtension.js +139 -0
  92. package/src/components/resources/List/Entries.js +66 -0
  93. package/src/components/resources/List/List.js +262 -0
  94. package/src/components/resources/List/List.stories.js +75 -0
  95. package/src/components/resources/List/List.test.js +95 -0
  96. package/src/components/resources/List/index.js +3 -0
  97. package/src/components/resources/List/utils.js +6 -0
  98. package/src/components/resources/MedicationAdministration/MedicationAdministration.test.js +7 -7
  99. package/src/components/resources/MedicationDispense/MedicationDispense.test.js +2 -2
  100. package/src/components/resources/MedicationKnowledge/MedicationKnowledge.js +217 -0
  101. package/src/components/resources/MedicationKnowledge/MedicationKnowledge.stories.js +78 -0
  102. package/src/components/resources/MedicationKnowledge/MedicationKnowledge.test.js +69 -0
  103. package/src/components/resources/MedicationKnowledge/index.js +3 -0
  104. package/src/components/resources/MedicationKnowledge/utils.js +8 -0
  105. package/src/components/resources/MedicationRequest/MedicationRequest.test.js +4 -4
  106. package/src/components/resources/Observation/Observation.js +72 -54
  107. package/src/components/resources/Observation/Observation.test.js +6 -18
  108. package/src/components/resources/Observation/ObservationGraph.js +159 -55
  109. package/src/components/resources/Observation/ObservationGraph.test.js +47 -26
  110. package/src/components/resources/Patient/Patient.js +79 -97
  111. package/src/components/resources/Patient/Patient.test.js +10 -10
  112. package/src/components/resources/Practitioner/Practitioner.js +80 -60
  113. package/src/components/resources/Practitioner/Practitioner.test.js +4 -4
  114. package/src/components/resources/Procedure/Procedure.js +99 -87
  115. package/src/components/resources/Procedure/Procedure.stories.js +8 -6
  116. package/src/components/resources/Procedure/Procedure.test.js +11 -8
  117. package/src/components/resources/Questionnaire/Questionnaire.test.js +3 -3
  118. package/src/components/resources/QuestionnaireResponse/QuestionnaireResponse.test.js +5 -5
  119. package/src/components/resources/ReferralRequest/ReferralRequest.test.js +2 -2
  120. package/src/components/resources/ResearchStudy/ResearchStudy.test.js +1 -1
  121. package/src/components/resources/ResourceCategory/ResourceCategory.js +56 -0
  122. package/src/components/resources/ResourceCategory/ResourceCategory.stories.js +29 -0
  123. package/src/components/resources/ResourceCategory/ResourceCategory.test.js +101 -0
  124. package/src/components/resources/ResourceCategory/index.js +3 -0
  125. package/src/components/supportedFhirResourceList.js +4 -0
  126. package/src/components/ui/_header.scss +3 -0
  127. package/src/components/ui/bootstrap-reboot.min.css +2 -22
  128. package/src/components/ui/index.js +191 -29
  129. package/src/constants/badge-status.jsx +98 -0
  130. package/src/fixtures/dstu2/resources/condition/condition.svg +35 -0
  131. package/src/fixtures/dstu2/resources/immunization/immunization.svg +10 -0
  132. package/src/fixtures/dstu2/resources/list/example1.json +49 -0
  133. package/src/fixtures/dstu2/resources/list/example2.json +116 -0
  134. package/src/fixtures/dstu2/resources/list/example3.json +380 -0
  135. package/src/fixtures/example-icons.jsx +169 -0
  136. package/src/fixtures/r4/resources/explanationOfBenefit/c4bbExtendedDiagnosis.json +446 -0
  137. package/src/fixtures/r4/resources/list/example1.json +45 -0
  138. package/src/fixtures/r4/resources/list/example2.json +282 -0
  139. package/src/fixtures/r4/resources/list/example3.json +298 -0
  140. package/src/fixtures/r4/resources/medicationKnowledge/example1.json +42 -0
  141. package/src/fixtures/r4/resources/medicationKnowledge/example2.json +59 -0
  142. package/src/fixtures/r4/resources/medicationKnowledge/example3.json +59 -0
  143. package/src/fixtures/r4/resources/medicationKnowledge/example4.json +59 -0
  144. package/src/fixtures/stu3/resources/list/example1.json +46 -0
  145. package/src/fixtures/stu3/resources/list/example2.json +298 -0
  146. package/src/fixtures/stu3/resources/list/example3.json +115 -0
  147. package/src/index.js +6 -1
  148. package/src/style.scss +176 -0
  149. package/src/utils/formatDate.js +21 -0
  150. package/src/utils/formatDate.test.js +22 -0
  151. package/src/utils/getBadgeColor.js +6 -0
  152. package/src/utils/getBadgeColor.test.js +14 -0
  153. package/src/utils/isUrl.js +9 -0
  154. package/src/utils/isUrl.test.js +12 -0
  155. package/src/utils.js +7 -0
  156. package/build/bootstrap-reboot.min.css +0 -414
  157. package/build/index.js +0 -15
  158. package/build/style.css +0 -459
  159. package/src/components/datatypes/HumanName/HumanName.css +0 -15
  160. package/src/components/datatypes/Reference/Reference.css +0 -8
  161. package/src/components/resources/Observation/ObservationGraph.css +0 -51
  162. package/src/components/resources/Patient/Patient.css +0 -19
  163. package/src/components/ui/index.css +0 -123
package/build/style.css DELETED
@@ -1,459 +0,0 @@
1
- .fhir-ui__Header {
2
- width: 100%;
3
- margin-bottom: 10px;
4
- display: flex;
5
- flex-wrap: wrap;
6
- align-items: center;
7
- word-break: break-word;
8
- }
9
-
10
- .fhir-ui__Title {
11
- margin-right: 10px;
12
- margin-bottom: 0;
13
- }
14
-
15
- .fhir-ui__Badge {
16
- margin-right: 10px;
17
- display: inline-block;
18
- padding: 0.25em 0.4em;
19
- font-size: 75%;
20
- font-weight: 700;
21
- line-height: 1;
22
- color: #fff;
23
- text-align: center;
24
- white-space: nowrap;
25
- vertical-align: baseline;
26
- border-radius: 3px;
27
- background-color: #6c757d;
28
- }
29
-
30
- .fhir-ui__BadgeSecondary {
31
- margin-right: 10px;
32
- display: inline-block;
33
- padding: 0.25em 0.4em;
34
- font-size: 75%;
35
- font-weight: 700;
36
- line-height: 1;
37
- text-align: center;
38
- white-space: nowrap;
39
- vertical-align: baseline;
40
- border-radius: 3px;
41
- background-color: #f8f9fa;
42
- color: #000;
43
- overflow: auto;
44
- }
45
-
46
- .fhir-ui__Value {
47
- display: flex;
48
- margin-bottom: 5px;
49
- font-size: 90%;
50
- }
51
-
52
- .fhir-ui__Value :not(.fhir-ui__Value-label) {
53
- word-break: break-all;
54
- }
55
-
56
- .fhir-ui__Value-label {
57
- text-transform: uppercase;
58
- font-weight: bold;
59
- color: #6c757d;
60
- margin: 0 10px 0 0;
61
- }
62
-
63
- /* Based on bootstrap striped-table */
64
- .fhir-ui__Table {
65
- width: 100%;
66
- margin-bottom: 1rem;
67
- color: #212529;
68
- }
69
-
70
- .fhir-ui__TableHeader,
71
- .fhir-ui__TableCell {
72
- padding: 0.4rem 0.75rem;
73
- vertical-align: top;
74
- border-top: 1px solid #dee2e6;
75
- }
76
-
77
- .fhir-ui__TableHeader {
78
- vertical-align: bottom;
79
- border-bottom: 2px solid #dee2e6;
80
- }
81
-
82
- .fhir-ui__TableHeader--expand {
83
- width: 100%;
84
- }
85
-
86
- .fhir-ui__TableHeader--no-word-wrap {
87
- white-space: nowrap;
88
- }
89
-
90
- .fhir-ui__Table tbody + tbody {
91
- border-top: 2px solid #dee2e6;
92
- }
93
-
94
- .fhir-ui__Table tbody .fhir-ui__TableRow:nth-of-type(odd) {
95
- background-color: rgba(0, 0, 0, 0.05);
96
- }
97
-
98
- .fhir-ui__ValueSection {
99
- overflow: auto;
100
- }
101
-
102
- .fhir-ui__ValueSection-label {
103
- margin-top: 5px;
104
- font-size: 1.1em;
105
- color: #6c757d;
106
- text-transform: uppercase;
107
- font-weight: 700;
108
- }
109
-
110
- .fhir-ui__ValueSection-body {
111
- padding: 0 10px;
112
- }
113
-
114
- .fhir-ui__MissingValue {
115
- font-weight: 700;
116
- }
117
-
118
- .fhir-ui__NotEnoughData {
119
- background-color: rgba(0, 0, 0, 0.01);
120
- padding: 5px 15px;
121
- margin: 10px 0;
122
- border: 1px solid rgba(0, 0, 0, 0.03);
123
- }
124
-
125
- .fhir-datatype__Coding__code {
126
- font-style: italic;
127
- cursor: help;
128
- }
129
-
130
- .fhir-datatype__Reference {
131
- display: inline-block;
132
- }
133
-
134
- .fhir-datatype__Reference__title {
135
- font-weight: 700;
136
- margin-right: 10px;
137
- }
138
-
139
- .fhir-datatype__CodeableConcept-item-label {
140
- font-size: 80%;
141
- font-weight: 400;
142
- }
143
-
144
- .fhir-resource__AllergyIntolerance__grouping {
145
- display: flex;
146
- align-items: center;
147
- }
148
-
149
- /* Img */
150
- .fhir-datatype__Img__item {
151
- margin-left: auto;
152
- margin-right: auto;
153
- display: block;
154
- }
155
-
156
- .fhir-datatype__BinaryText__block {
157
- background-color: #f8f9fa;
158
- padding: 1.5rem;
159
- border-radius: 0.25rem;
160
- word-break: break-word;
161
- font-family: monospace;
162
- font-size: 16px;
163
- }
164
-
165
- .fhir-resource__Bundle__item {
166
- margin-top: 10px;
167
- }
168
-
169
- .fhir-resource__CarePlan__activity {
170
- margin-bottom: 0.5rem;
171
- }
172
-
173
- .fhir-resource__CarePlan__activity-title {
174
- font-weight: bold;
175
- }
176
-
177
- .fhir-resource__Claim__item-level {
178
- height: 100%;
179
- height: 50px;
180
- margin: -12px;
181
- display: flex;
182
- }
183
-
184
- .fhir-resource__Claim__item-level-fill {
185
- width: 10px;
186
- height: 100%;
187
- background: #dee2e6;
188
- }
189
-
190
- .fhir-datatype__Identifier {
191
- font-style: italic;
192
- cursor: help;
193
- }
194
-
195
- .fhir-resource__ClaimResponse-item-adjudication,
196
- .fhir-resource__ClaimResponse-added-item-adjudication {
197
- display: flex;
198
- margin-bottom: 5px;
199
- }
200
-
201
- .fhir-resource__ClaimResponse-item-adjudication-category,
202
- .fhir-resource__ClaimResponse-added-item-adjudication-category {
203
- display: flex;
204
- margin-right: 10px;
205
- }
206
-
207
- .fhir-datatype__Telecom__item-label {
208
- margin-right: 10px;
209
- display: inline-block;
210
- padding: 0.25em 0.4em;
211
- font-size: 75%;
212
- font-weight: 700;
213
- line-height: 1;
214
- text-align: center;
215
- white-space: nowrap;
216
- vertical-align: baseline;
217
- border-radius: 3px;
218
- background-color: #f8f9fa;
219
- color: #606060;
220
- }
221
-
222
- .fhir-resource__ObservationGraph {
223
- margin: 0.5rem 0;
224
- position: relative;
225
- }
226
-
227
- .fhir-resource__ObservationGraph__value-wrapper {
228
- position: relative;
229
- }
230
-
231
- .fhir-resource__ObservationGraph__value-actual {
232
- display: inline-block;
233
- font-size: 1.5rem;
234
- font-weight: bold;
235
- margin: 0;
236
- }
237
-
238
- .fhir-resource__ObservationGraph__value-unit {
239
- display: inline-block;
240
- }
241
-
242
- .fhir-resource__ObservationGraph__progress {
243
- display: flex;
244
- height: 1rem;
245
- overflow: hidden;
246
- font-size: 0.75rem;
247
- background-color: #e9ecef;
248
- border-radius: 0.25rem;
249
- }
250
-
251
- .fhir-resource__ObservationGraph__progress-value {
252
- opacity: 0.5;
253
- width: 12px;
254
- height: 12px;
255
- margin-top: 2px;
256
- position: absolute;
257
- background-color: #007bff;
258
- border-radius: 50%;
259
- }
260
-
261
- .fhir-resource__ObservationGraph__progress-bar--outside-range {
262
- color: #6c757d;
263
- background-color: transparent;
264
- display: flex;
265
- align-items: center;
266
- justify-content: center;
267
- white-space: nowrap;
268
- }
269
-
270
- .fhir-resource__ObservationGraph__progress-bar--inside-range {
271
- background-color: #0003;
272
- }
273
-
274
- /* HumanName */
275
- .fhir-datatype__HumanName__not-primary-block {
276
- font-weight: 700;
277
- }
278
-
279
- .fhir-datatype__HumanName__Header--primary {
280
- margin-bottom: 0;
281
- font-weight: 500;
282
- line-height: 1.2;
283
- font-size: 1.5rem;
284
- }
285
-
286
- .fhir-datatype__HumanName__use-block {
287
- margin-left: 3px;
288
- }
289
-
290
- .fhir-resource__Patient__patientContact-relationship {
291
- font-weight: 700;
292
- }
293
-
294
- .fhir-resource__Patient__patient-avatar {
295
- border: 4px solid #fff;
296
- border-radius: 50%;
297
- margin-right: 10px;
298
- }
299
-
300
- .fhir-resource__Patient__patient-block {
301
- display: flex;
302
- align-items: baseline;
303
- }
304
-
305
- .fhir-resource__Patient__BirthDate-block {
306
- font-weight: 700;
307
- color: #6c757d;
308
- }
309
-
310
- .fhir-resource__Practitioner__patientContact-relationship {
311
- font-weight: 700;
312
- }
313
-
314
- .fhir-resource__Practitioner__practitioner-avatar {
315
- border: 4px solid #fff;
316
- border-radius: 50%;
317
- margin-right: 10px;
318
- }
319
-
320
- .fhir-resource__Questionnaire-list {
321
- list-style: none;
322
- border: 1px solid #f0f0f0;
323
- padding: 2px;
324
- margin: 2px;
325
- }
326
-
327
- .fhir-resource__Questionnaire-list-title {
328
- background-color: #f6f6f6;
329
- padding: 2px 2px 4px 2px;
330
- }
331
-
332
- .fhir-resource__Questionnaire-questions-list {
333
- list-style: none;
334
- }
335
-
336
- .fhir-resource__Questionnaire-questions-list li {
337
- border-bottom: 1px solid #f5f5f5;
338
- }
339
-
340
- .fhir-resource__Questionnaire-questions-list li:last-child {
341
- border-bottom: none;
342
- }
343
-
344
- .fhir-resource__Questionnaire-questions-list-item-details {
345
- font-size: 80%;
346
- color: #606060;
347
- }
348
-
349
- .fhir-resource__Questionnaire-questions-list-item-details-el {
350
- display: inline-block;
351
- margin-right: 15px;
352
- }
353
-
354
- .fhir-resource__QuestionnaireResponse-list {
355
- list-style: none;
356
- border: 1px solid #f0f0f0;
357
- padding: 2px;
358
- margin: 2px 2px 2px 20px;
359
- }
360
-
361
- .fhir-resource__QuestionnaireResponse-list-title {
362
- background-color: #f6f6f6;
363
- padding: 2px 2px 4px 2px;
364
- }
365
-
366
- .fhir-resource__QuestionnaireResponse-questions-list {
367
- list-style: none;
368
- }
369
-
370
- .fhir-resource__QuestionnaireResponse-questions-list li {
371
- border-bottom: 1px solid #f5f5f5;
372
- }
373
-
374
- .fhir-resource__QuestionnaireResponse-questions-list li:last-child {
375
- border-bottom: none;
376
- }
377
-
378
- .fhir-resource__QuestionnaireResponse-questions-list-item-details {
379
- margin-left: 20px;
380
- }
381
-
382
- .fhir-resource__QuestionnaireResponse-questions-list-item-details-el {
383
- display: inline-block;
384
- margin-right: 15px;
385
- color: blue;
386
- }
387
-
388
- .fhir-container__CodeBlock {
389
- padding: 1.5rem;
390
- color: #f8f9fa;
391
- background-color: #343a40;
392
- border-radius: 0.25rem;
393
- word-break: break-word;
394
- font-family: monospace;
395
- font-size: 16px;
396
- overflow-x: scroll;
397
- }
398
-
399
- .fhir-container__ResourceContainer__card {
400
- background-color: #f8f9fa;
401
- border: 0;
402
- position: relative;
403
- display: flex;
404
- flex-direction: column;
405
- min-width: 0;
406
- word-wrap: break-word;
407
- background-clip: border-box;
408
- border-radius: 0.25rem;
409
- }
410
-
411
- .fhir-container__ResourceContainer__card-body {
412
- flex: 1 1 auto;
413
- padding: 1.25rem;
414
- }
415
-
416
- .fhir-container__ResourceContainer__json-button-wrapper {
417
- position: absolute;
418
- right: 2rem;
419
- top: 0.5rem;
420
- }
421
-
422
- .fhir-container__ResourceContainer__json--visible {
423
- display: block;
424
- padding-top: 10px;
425
- }
426
-
427
- .fhir-container__ResourceContainer__json--hidden {
428
- display: none;
429
- }
430
-
431
- .fhir-container__ResourceContainer__json-button {
432
- color: #6c757d;
433
- border-color: #6c757d;
434
- cursor: pointer;
435
- padding: 0.15rem 0.5rem;
436
- font-size: 0.875rem;
437
- line-height: 1rem;
438
- border-radius: 0.2rem;
439
- display: inline-block;
440
- font-weight: 400;
441
- text-align: center;
442
- vertical-align: middle;
443
- user-select: none;
444
- border: 1px solid #6c6c6c;
445
- transition: all 0.15s ease-in-out;
446
- }
447
-
448
- .fhir-container__ResourceContainer__json-button:hover {
449
- color: #fff;
450
- background-color: #6c757d;
451
- border-color: #6c757d;
452
- }
453
-
454
- /**
455
- * This file contains global fhir-react library styles.
456
- * The styles for individual components are located in CSS files
457
- * placed next to the components themselves.
458
- **/
459
-
@@ -1,15 +0,0 @@
1
- /* HumanName */
2
- .fhir-datatype__HumanName__not-primary-block {
3
- font-weight: 700;
4
- }
5
-
6
- .fhir-datatype__HumanName__Header--primary {
7
- margin-bottom: 0;
8
- font-weight: 500;
9
- line-height: 1.2;
10
- font-size: 1.5rem;
11
- }
12
-
13
- .fhir-datatype__HumanName__use-block {
14
- margin-left: 3px;
15
- }
@@ -1,8 +0,0 @@
1
- .fhir-datatype__Reference {
2
- display: inline-block;
3
- }
4
-
5
- .fhir-datatype__Reference__title {
6
- font-weight: 700;
7
- margin-right: 10px;
8
- }
@@ -1,51 +0,0 @@
1
- .fhir-resource__ObservationGraph {
2
- margin: 0.5rem 0;
3
- position: relative;
4
- }
5
-
6
- .fhir-resource__ObservationGraph__value-wrapper {
7
- position: relative;
8
- }
9
-
10
- .fhir-resource__ObservationGraph__value-actual {
11
- display: inline-block;
12
- font-size: 1.5rem;
13
- font-weight: bold;
14
- margin: 0;
15
- }
16
-
17
- .fhir-resource__ObservationGraph__value-unit {
18
- display: inline-block;
19
- }
20
-
21
- .fhir-resource__ObservationGraph__progress {
22
- display: flex;
23
- height: 1rem;
24
- overflow: hidden;
25
- font-size: 0.75rem;
26
- background-color: #e9ecef;
27
- border-radius: 0.25rem;
28
- }
29
-
30
- .fhir-resource__ObservationGraph__progress-value {
31
- opacity: 0.5;
32
- width: 12px;
33
- height: 12px;
34
- margin-top: 2px;
35
- position: absolute;
36
- background-color: #007bff;
37
- border-radius: 50%;
38
- }
39
-
40
- .fhir-resource__ObservationGraph__progress-bar--outside-range {
41
- color: #6c757d;
42
- background-color: transparent;
43
- display: flex;
44
- align-items: center;
45
- justify-content: center;
46
- white-space: nowrap;
47
- }
48
-
49
- .fhir-resource__ObservationGraph__progress-bar--inside-range {
50
- background-color: #0003;
51
- }
@@ -1,19 +0,0 @@
1
- .fhir-resource__Patient__patientContact-relationship {
2
- font-weight: 700;
3
- }
4
-
5
- .fhir-resource__Patient__patient-avatar {
6
- border: 4px solid #fff;
7
- border-radius: 50%;
8
- margin-right: 10px;
9
- }
10
-
11
- .fhir-resource__Patient__patient-block {
12
- display: flex;
13
- align-items: baseline;
14
- }
15
-
16
- .fhir-resource__Patient__BirthDate-block {
17
- font-weight: 700;
18
- color: #6c757d;
19
- }
@@ -1,123 +0,0 @@
1
- .fhir-ui__Header {
2
- width: 100%;
3
- margin-bottom: 10px;
4
- display: flex;
5
- flex-wrap: wrap;
6
- align-items: center;
7
- word-break: break-word;
8
- }
9
-
10
- .fhir-ui__Title {
11
- margin-right: 10px;
12
- margin-bottom: 0;
13
- }
14
-
15
- .fhir-ui__Badge {
16
- margin-right: 10px;
17
- display: inline-block;
18
- padding: 0.25em 0.4em;
19
- font-size: 75%;
20
- font-weight: 700;
21
- line-height: 1;
22
- color: #fff;
23
- text-align: center;
24
- white-space: nowrap;
25
- vertical-align: baseline;
26
- border-radius: 3px;
27
- background-color: #6c757d;
28
- }
29
-
30
- .fhir-ui__BadgeSecondary {
31
- margin-right: 10px;
32
- display: inline-block;
33
- padding: 0.25em 0.4em;
34
- font-size: 75%;
35
- font-weight: 700;
36
- line-height: 1;
37
- text-align: center;
38
- white-space: nowrap;
39
- vertical-align: baseline;
40
- border-radius: 3px;
41
- background-color: #f8f9fa;
42
- color: #000;
43
- overflow: auto;
44
- }
45
-
46
- .fhir-ui__Value {
47
- display: flex;
48
- margin-bottom: 5px;
49
- font-size: 90%;
50
- }
51
-
52
- .fhir-ui__Value :not(.fhir-ui__Value-label) {
53
- word-break: break-all;
54
- }
55
-
56
- .fhir-ui__Value-label {
57
- text-transform: uppercase;
58
- font-weight: bold;
59
- color: #6c757d;
60
- margin: 0 10px 0 0;
61
- }
62
-
63
- /* Based on bootstrap striped-table */
64
- .fhir-ui__Table {
65
- width: 100%;
66
- margin-bottom: 1rem;
67
- color: #212529;
68
- }
69
-
70
- .fhir-ui__TableHeader,
71
- .fhir-ui__TableCell {
72
- padding: 0.4rem 0.75rem;
73
- vertical-align: top;
74
- border-top: 1px solid #dee2e6;
75
- }
76
-
77
- .fhir-ui__TableHeader {
78
- vertical-align: bottom;
79
- border-bottom: 2px solid #dee2e6;
80
- }
81
-
82
- .fhir-ui__TableHeader--expand {
83
- width: 100%;
84
- }
85
-
86
- .fhir-ui__TableHeader--no-word-wrap {
87
- white-space: nowrap;
88
- }
89
-
90
- .fhir-ui__Table tbody + tbody {
91
- border-top: 2px solid #dee2e6;
92
- }
93
-
94
- .fhir-ui__Table tbody .fhir-ui__TableRow:nth-of-type(odd) {
95
- background-color: rgba(0, 0, 0, 0.05);
96
- }
97
-
98
- .fhir-ui__ValueSection {
99
- overflow: auto;
100
- }
101
-
102
- .fhir-ui__ValueSection-label {
103
- margin-top: 5px;
104
- font-size: 1.1em;
105
- color: #6c757d;
106
- text-transform: uppercase;
107
- font-weight: 700;
108
- }
109
-
110
- .fhir-ui__ValueSection-body {
111
- padding: 0 10px;
112
- }
113
-
114
- .fhir-ui__MissingValue {
115
- font-weight: 700;
116
- }
117
-
118
- .fhir-ui__NotEnoughData {
119
- background-color: rgba(0, 0, 0, 0.01);
120
- padding: 5px 15px;
121
- margin: 10px 0;
122
- border: 1px solid rgba(0, 0, 0, 0.03);
123
- }