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.
- package/.github/workflows/publish_npmjs.yml +18 -0
- package/.storybook/config.js +9 -3
- package/.storybook/presets.js +1 -0
- package/.storybook/preview-head.html +4 -0
- package/README.md +86 -55
- package/package.json +13 -4
- package/src/assets/common/chevron-right.svg +3 -0
- package/src/assets/containers/AllergyIntolerance/allergy-intolerance.svg +9 -0
- package/src/assets/containers/Appointment/appointment.svg +14 -0
- package/src/assets/containers/CarePlan/care-plan.svg +10 -0
- package/src/assets/containers/CareTeam/care-team.svg +10 -0
- package/src/assets/containers/Claim/claim.svg +6 -0
- package/src/assets/containers/ClaimResponse/claim-response.svg +7 -0
- package/src/assets/containers/Condition/condition.svg +11 -0
- package/src/assets/containers/Device/device.svg +8 -0
- package/src/assets/containers/DiagnosticReport/diagnostic-report.svg +14 -0
- package/src/assets/containers/DocumentReference/document-reference.svg +10 -0
- package/src/assets/containers/Encounter/encounter.svg +10 -0
- package/src/assets/containers/ExplanationOfBenefit/explanation-of-benefit.svg +3 -0
- package/src/assets/containers/FamilyMemberHistory/family-member-history.svg +7 -0
- package/src/assets/containers/Goal/goal.svg +11 -0
- package/src/assets/containers/Immunization/immunization.svg +7 -0
- package/src/assets/containers/List/list.svg +3 -0
- package/src/assets/containers/Location/location.svg +4 -0
- package/src/assets/containers/Medication/medication.svg +5 -0
- package/src/assets/containers/MedicationAdministration/medication-administration.svg +6 -0
- package/src/assets/containers/MedicationKnowledge/medication-knowledge.svg +11 -0
- package/src/assets/containers/MedicationStatement/medication-statement.svg +5 -0
- package/src/assets/containers/Observation/observation.svg +12 -0
- package/src/assets/containers/Practitioner/practitioner.svg +5 -0
- package/src/assets/containers/Procedure/procedure.svg +9 -0
- package/src/assets/containers/Questionnaire/questionnaire.svg +6 -0
- package/src/assets/containers/QuestionnaireResponse/questionnaire-response.svg +6 -0
- package/src/assets/containers/QustionnaireResponse/questionnaire-response.svg +6 -0
- package/src/assets/containers/ResearchStudy/research-study.svg +9 -0
- package/src/assets/containers/ResourceCategory/resource-placeholder.svg +3 -0
- package/src/components/containers/Accordion/Accordion.js +80 -0
- package/src/components/containers/Accordion/Accordion.stories.js +76 -0
- package/src/components/containers/Accordion/index.js +3 -0
- package/src/components/containers/ResourceContainer/ResourceContainer.css +0 -1
- package/src/components/containers/ResourceContainer/ResourceContainer.js +1 -1
- package/src/components/datatypes/AccountBalance/AccountBalance.js +33 -0
- package/src/components/datatypes/AccountBalance/index.js +3 -0
- package/src/components/datatypes/Annotation/Annotation.js +1 -1
- package/src/components/datatypes/Coding/Coding.js +1 -1
- package/src/components/datatypes/Date/Date.js +14 -4
- package/src/components/datatypes/DatePeriod/DatePeriod.js +38 -0
- package/src/components/datatypes/DatePeriod/index.js +3 -0
- package/src/components/datatypes/HeaderIcon/HeaderIcon.js +31 -0
- package/src/components/datatypes/HeaderIcon/index.js +3 -0
- package/src/components/datatypes/HumanName/HumanName.js +6 -21
- package/src/components/datatypes/Reference/Reference.js +3 -6
- package/src/components/resources/AdverseEvent/AdverseEvent.test.js +2 -2
- package/src/components/resources/AllergyIntolerance/AllergyIntolerance.test.js +4 -4
- package/src/components/resources/Appointment/Appointment.js +91 -65
- package/src/components/resources/Appointment/Appointment.test.js +3 -3
- package/src/components/resources/Bundle/Bundle.js +2 -2
- package/src/components/resources/Bundle/Bundle.stories.js +78 -12
- package/src/components/resources/Bundle/Bundle.test.js +3 -0
- package/src/components/resources/CarePlan/CarePlan.test.js +4 -4
- package/src/components/resources/CareTeam/CareTeam.js +13 -14
- package/src/components/resources/CareTeam/CareTeam.test.js +4 -4
- package/src/components/resources/Claim/Claim.test.js +6 -6
- package/src/components/resources/ClaimResponse/ClaimResponse.test.js +6 -6
- package/src/components/resources/Condition/Condition.js +63 -47
- package/src/components/resources/Condition/Condition.stories.js +41 -8
- package/src/components/resources/Condition/Condition.test.js +20 -14
- package/src/components/resources/DiagnosticReport/DiagnosticReport.test.js +5 -7
- package/src/components/resources/DocumentReference/DocumentReference.js +1 -1
- package/src/components/resources/DocumentReference/DocumentReference.test.js +3 -3
- package/src/components/resources/Encounter/Encounter.js +66 -36
- package/src/components/resources/Encounter/EncounterParticipants.js +2 -2
- package/src/components/resources/ExplanationOfBenefit/CareTeam.js +2 -2
- package/src/components/resources/ExplanationOfBenefit/Diagnosis.js +31 -5
- package/src/components/resources/ExplanationOfBenefit/ExplanationOfBenefit.js +272 -201
- package/src/components/resources/ExplanationOfBenefit/ExplanationOfBenefit.stories.js +12 -0
- package/src/components/resources/ExplanationOfBenefit/ExplanationOfBenefit.test.js +96 -62
- package/src/components/resources/ExplanationOfBenefit/Items.js +2 -2
- package/src/components/resources/ExplanationOfBenefit/PriceLabel.js +20 -0
- package/src/components/resources/ExplanationOfBenefit/Related.js +3 -3
- package/src/components/resources/ExplanationOfBenefit/SupportingInfo.js +14 -3
- package/src/components/resources/ExplanationOfBenefit/TotalGraph.js +68 -0
- package/src/components/resources/ExplanationOfBenefitGraph/ExplanationOfBenefitGraph.js +89 -0
- package/src/components/resources/ExplanationOfBenefitGraph/ExplanationOfBenefitGraph.stories.js +78 -0
- package/src/components/resources/ExplanationOfBenefitGraph/ExplanationOfBenefitGraph.test.js +51 -0
- package/src/components/resources/ExplanationOfBenefitGraph/index.js +3 -0
- package/src/components/resources/Goal/Goal.test.js +1 -1
- package/src/components/resources/Immunization/Immunization.js +125 -94
- package/src/components/resources/Immunization/Immunization.stories.js +23 -4
- package/src/components/resources/Immunization/Immunization.test.js +17 -12
- package/src/components/resources/List/DrugTierDefinitionExtension.js +139 -0
- package/src/components/resources/List/Entries.js +66 -0
- package/src/components/resources/List/List.js +262 -0
- package/src/components/resources/List/List.stories.js +75 -0
- package/src/components/resources/List/List.test.js +95 -0
- package/src/components/resources/List/index.js +3 -0
- package/src/components/resources/List/utils.js +6 -0
- package/src/components/resources/MedicationAdministration/MedicationAdministration.test.js +7 -7
- package/src/components/resources/MedicationDispense/MedicationDispense.test.js +2 -2
- package/src/components/resources/MedicationKnowledge/MedicationKnowledge.js +217 -0
- package/src/components/resources/MedicationKnowledge/MedicationKnowledge.stories.js +78 -0
- package/src/components/resources/MedicationKnowledge/MedicationKnowledge.test.js +69 -0
- package/src/components/resources/MedicationKnowledge/index.js +3 -0
- package/src/components/resources/MedicationKnowledge/utils.js +8 -0
- package/src/components/resources/MedicationRequest/MedicationRequest.test.js +4 -4
- package/src/components/resources/Observation/Observation.js +72 -54
- package/src/components/resources/Observation/Observation.test.js +6 -18
- package/src/components/resources/Observation/ObservationGraph.js +159 -55
- package/src/components/resources/Observation/ObservationGraph.test.js +47 -26
- package/src/components/resources/Patient/Patient.js +79 -97
- package/src/components/resources/Patient/Patient.test.js +10 -10
- package/src/components/resources/Practitioner/Practitioner.js +80 -60
- package/src/components/resources/Practitioner/Practitioner.test.js +4 -4
- package/src/components/resources/Procedure/Procedure.js +99 -87
- package/src/components/resources/Procedure/Procedure.stories.js +8 -6
- package/src/components/resources/Procedure/Procedure.test.js +11 -8
- package/src/components/resources/Questionnaire/Questionnaire.test.js +3 -3
- package/src/components/resources/QuestionnaireResponse/QuestionnaireResponse.test.js +5 -5
- package/src/components/resources/ReferralRequest/ReferralRequest.test.js +2 -2
- package/src/components/resources/ResearchStudy/ResearchStudy.test.js +1 -1
- package/src/components/resources/ResourceCategory/ResourceCategory.js +56 -0
- package/src/components/resources/ResourceCategory/ResourceCategory.stories.js +29 -0
- package/src/components/resources/ResourceCategory/ResourceCategory.test.js +101 -0
- package/src/components/resources/ResourceCategory/index.js +3 -0
- package/src/components/supportedFhirResourceList.js +4 -0
- package/src/components/ui/_header.scss +3 -0
- package/src/components/ui/bootstrap-reboot.min.css +2 -22
- package/src/components/ui/index.js +191 -29
- package/src/constants/badge-status.jsx +98 -0
- package/src/fixtures/dstu2/resources/condition/condition.svg +35 -0
- package/src/fixtures/dstu2/resources/immunization/immunization.svg +10 -0
- package/src/fixtures/dstu2/resources/list/example1.json +49 -0
- package/src/fixtures/dstu2/resources/list/example2.json +116 -0
- package/src/fixtures/dstu2/resources/list/example3.json +380 -0
- package/src/fixtures/example-icons.jsx +169 -0
- package/src/fixtures/r4/resources/explanationOfBenefit/c4bbExtendedDiagnosis.json +446 -0
- package/src/fixtures/r4/resources/list/example1.json +45 -0
- package/src/fixtures/r4/resources/list/example2.json +282 -0
- package/src/fixtures/r4/resources/list/example3.json +298 -0
- package/src/fixtures/r4/resources/medicationKnowledge/example1.json +42 -0
- package/src/fixtures/r4/resources/medicationKnowledge/example2.json +59 -0
- package/src/fixtures/r4/resources/medicationKnowledge/example3.json +59 -0
- package/src/fixtures/r4/resources/medicationKnowledge/example4.json +59 -0
- package/src/fixtures/stu3/resources/list/example1.json +46 -0
- package/src/fixtures/stu3/resources/list/example2.json +298 -0
- package/src/fixtures/stu3/resources/list/example3.json +115 -0
- package/src/index.js +6 -1
- package/src/style.scss +176 -0
- package/src/utils/formatDate.js +21 -0
- package/src/utils/formatDate.test.js +22 -0
- package/src/utils/getBadgeColor.js +6 -0
- package/src/utils/getBadgeColor.test.js +14 -0
- package/src/utils/isUrl.js +9 -0
- package/src/utils/isUrl.test.js +12 -0
- package/src/utils.js +7 -0
- package/build/bootstrap-reboot.min.css +0 -414
- package/build/index.js +0 -15
- package/build/style.css +0 -459
- package/src/components/datatypes/HumanName/HumanName.css +0 -15
- package/src/components/datatypes/Reference/Reference.css +0 -8
- package/src/components/resources/Observation/ObservationGraph.css +0 -51
- package/src/components/resources/Patient/Patient.css +0 -19
- package/src/components/ui/index.css +0 -123
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceType": "List",
|
|
3
|
+
"id": "f201",
|
|
4
|
+
"text": {
|
|
5
|
+
"status": "generated",
|
|
6
|
+
"div": "<div><p><b>Generated Narrative with Details</b></p><p><b>id</b>: f201</p><p><b>contained</b>: , </p><p><b>code</b>: History of family member diseases <span>(Details : {LOINC code '8670-2' = 'History of family member diseases', given as 'History of family member diseases'})</span></p><p><b>subject</b>: <a>Roel</a></p><p><b>status</b>: current</p><p><b>mode</b>: snapshot</p><p><b>note</b>: Both parents, both brothers and both children (twin) are still alive.</p><blockquote><p><b>entry</b></p><p><b>item</b>: id: fmh-1; status: completed; Mother <span>(Details : {SNOMED CT code '72705000' = '72705000', given as 'Mother'})</span>; </p></blockquote><blockquote><p><b>entry</b></p><p><b>item</b>: id: fmh-2; status: completed; Uncle <span>(Details : {SNOMED CT code '38048003' = '38048003', given as 'Uncle'})</span>; deceased</p></blockquote></div>"
|
|
7
|
+
},
|
|
8
|
+
"contained": [
|
|
9
|
+
{
|
|
10
|
+
"resourceType": "FamilyMemberHistory",
|
|
11
|
+
"id": "fmh-1",
|
|
12
|
+
"patient": {
|
|
13
|
+
"fhir_comments": [" ROB's Mother has a hernia "],
|
|
14
|
+
"reference": "Patient/f201",
|
|
15
|
+
"display": "Roel"
|
|
16
|
+
},
|
|
17
|
+
"status": "completed",
|
|
18
|
+
"relationship": {
|
|
19
|
+
"coding": [
|
|
20
|
+
{
|
|
21
|
+
"system": "http://snomed.info/sct",
|
|
22
|
+
"code": "72705000",
|
|
23
|
+
"display": "Mother"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"deceasedBoolean": false,
|
|
28
|
+
"condition": [
|
|
29
|
+
{
|
|
30
|
+
"code": {
|
|
31
|
+
"coding": [
|
|
32
|
+
{
|
|
33
|
+
"system": "http://snomed.info/sct",
|
|
34
|
+
"code": "39839004",
|
|
35
|
+
"display": "Diaphragmatic hernia"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"resourceType": "FamilyMemberHistory",
|
|
44
|
+
"id": "fmh-2",
|
|
45
|
+
"patient": {
|
|
46
|
+
"fhir_comments": [
|
|
47
|
+
" ROB's uncle from mother's side died from cancer "
|
|
48
|
+
],
|
|
49
|
+
"reference": "Patient/f201",
|
|
50
|
+
"display": "Roel"
|
|
51
|
+
},
|
|
52
|
+
"status": "completed",
|
|
53
|
+
"relationship": {
|
|
54
|
+
"coding": [
|
|
55
|
+
{
|
|
56
|
+
"system": "http://snomed.info/sct",
|
|
57
|
+
"code": "38048003",
|
|
58
|
+
"display": "Uncle"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"deceasedBoolean": true,
|
|
63
|
+
"condition": [
|
|
64
|
+
{
|
|
65
|
+
"code": {
|
|
66
|
+
"coding": [
|
|
67
|
+
{
|
|
68
|
+
"system": "http://snomed.info/sct",
|
|
69
|
+
"code": "115665000",
|
|
70
|
+
"display": "Atopy"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"outcome": {
|
|
75
|
+
"coding": [
|
|
76
|
+
{
|
|
77
|
+
"system": "http://snomed.info/sct",
|
|
78
|
+
"code": "419099009",
|
|
79
|
+
"display": "Died"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"code": {
|
|
88
|
+
"coding": [
|
|
89
|
+
{
|
|
90
|
+
"system": "http://loinc.org",
|
|
91
|
+
"code": "8670-2",
|
|
92
|
+
"display": "History of family member diseases"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"subject": {
|
|
97
|
+
"reference": "Patient/f201",
|
|
98
|
+
"display": "Roel"
|
|
99
|
+
},
|
|
100
|
+
"status": "current",
|
|
101
|
+
"mode": "snapshot",
|
|
102
|
+
"note": "Both parents, both brothers and both children (twin) are still alive.",
|
|
103
|
+
"entry": [
|
|
104
|
+
{
|
|
105
|
+
"fhir_comments": [" Other relatives "],
|
|
106
|
+
"item": {
|
|
107
|
+
"reference": "#fmh-1"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"item": {
|
|
112
|
+
"reference": "#fmh-2"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceType": "List",
|
|
3
|
+
"id": "genetic",
|
|
4
|
+
"text": {
|
|
5
|
+
"status": "generated",
|
|
6
|
+
"div": "<div>To do</div>"
|
|
7
|
+
},
|
|
8
|
+
"contained": [
|
|
9
|
+
{
|
|
10
|
+
"resourceType": "FamilyMemberHistory",
|
|
11
|
+
"id": "1",
|
|
12
|
+
"extension": [
|
|
13
|
+
{
|
|
14
|
+
"extension": [
|
|
15
|
+
{
|
|
16
|
+
"url": "parent.type",
|
|
17
|
+
"valueCodeableConcept": {
|
|
18
|
+
"coding": [
|
|
19
|
+
{
|
|
20
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
21
|
+
"code": "FTH",
|
|
22
|
+
"display": "father"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"url": "parent.identifier",
|
|
29
|
+
"valueUri": "#2"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"url": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"patient": {
|
|
36
|
+
"reference": "Patient/example",
|
|
37
|
+
"display": "Peter Patient"
|
|
38
|
+
},
|
|
39
|
+
"status": "completed",
|
|
40
|
+
"name": "Dave",
|
|
41
|
+
"relationship": {
|
|
42
|
+
"coding": [
|
|
43
|
+
{
|
|
44
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
45
|
+
"code": "FTH",
|
|
46
|
+
"display": "father"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"resourceType": "FamilyMemberHistory",
|
|
53
|
+
"id": "2",
|
|
54
|
+
"patient": {
|
|
55
|
+
"reference": "Patient/example",
|
|
56
|
+
"display": "Peter Patient"
|
|
57
|
+
},
|
|
58
|
+
"status": "completed",
|
|
59
|
+
"relationship": {
|
|
60
|
+
"coding": [
|
|
61
|
+
{
|
|
62
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
63
|
+
"code": "GRFTH",
|
|
64
|
+
"display": "grandfather"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"resourceType": "FamilyMemberHistory",
|
|
71
|
+
"id": "3",
|
|
72
|
+
"extension": [
|
|
73
|
+
{
|
|
74
|
+
"extension": [
|
|
75
|
+
{
|
|
76
|
+
"url": "parent.type",
|
|
77
|
+
"valueCodeableConcept": {
|
|
78
|
+
"coding": [
|
|
79
|
+
{
|
|
80
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
81
|
+
"code": "FTH",
|
|
82
|
+
"display": "father"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"url": "parent.identifier",
|
|
89
|
+
"valueUri": "#2"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"url": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"patient": {
|
|
96
|
+
"reference": "Patient/example",
|
|
97
|
+
"display": "Peter Patient"
|
|
98
|
+
},
|
|
99
|
+
"status": "completed",
|
|
100
|
+
"relationship": {
|
|
101
|
+
"coding": [
|
|
102
|
+
{
|
|
103
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
104
|
+
"code": "PUNCLE",
|
|
105
|
+
"display": "paternal uncle"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"resourceType": "FamilyMemberHistory",
|
|
112
|
+
"id": "4",
|
|
113
|
+
"extension": [
|
|
114
|
+
{
|
|
115
|
+
"extension": [
|
|
116
|
+
{
|
|
117
|
+
"url": "parent.type",
|
|
118
|
+
"valueCodeableConcept": {
|
|
119
|
+
"coding": [
|
|
120
|
+
{
|
|
121
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
122
|
+
"code": "FTH",
|
|
123
|
+
"display": "father"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"url": "parent.identifier",
|
|
130
|
+
"valueUri": "#2"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"url": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"patient": {
|
|
137
|
+
"reference": "Patient/example",
|
|
138
|
+
"display": "Peter Patient"
|
|
139
|
+
},
|
|
140
|
+
"status": "completed",
|
|
141
|
+
"relationship": {
|
|
142
|
+
"coding": [
|
|
143
|
+
{
|
|
144
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
145
|
+
"code": "PUNCLE",
|
|
146
|
+
"display": "paternal uncle"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"resourceType": "FamilyMemberHistory",
|
|
153
|
+
"id": "5",
|
|
154
|
+
"extension": [
|
|
155
|
+
{
|
|
156
|
+
"extension": [
|
|
157
|
+
{
|
|
158
|
+
"url": "parent.type",
|
|
159
|
+
"valueCodeableConcept": {
|
|
160
|
+
"coding": [
|
|
161
|
+
{
|
|
162
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
163
|
+
"code": "FTH",
|
|
164
|
+
"display": "father"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"url": "parent.identifier",
|
|
171
|
+
"valueUri": "#2"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"url": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"patient": {
|
|
178
|
+
"reference": "Patient/example",
|
|
179
|
+
"display": "Peter Patient"
|
|
180
|
+
},
|
|
181
|
+
"status": "completed",
|
|
182
|
+
"name": "Eve",
|
|
183
|
+
"relationship": {
|
|
184
|
+
"coding": [
|
|
185
|
+
{
|
|
186
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
187
|
+
"code": "PAUNT",
|
|
188
|
+
"display": "paternal aunt"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"resourceType": "FamilyMemberHistory",
|
|
195
|
+
"id": "6",
|
|
196
|
+
"extension": [
|
|
197
|
+
{
|
|
198
|
+
"extension": [
|
|
199
|
+
{
|
|
200
|
+
"url": "parent.type",
|
|
201
|
+
"valueCodeableConcept": {
|
|
202
|
+
"coding": [
|
|
203
|
+
{
|
|
204
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
205
|
+
"code": "FTH",
|
|
206
|
+
"display": "father"
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"url": "parent.identifier",
|
|
213
|
+
"valueUri": "#2"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"url": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"patient": {
|
|
220
|
+
"reference": "Patient/example",
|
|
221
|
+
"display": "Peter Patient"
|
|
222
|
+
},
|
|
223
|
+
"status": "completed",
|
|
224
|
+
"relationship": {
|
|
225
|
+
"coding": [
|
|
226
|
+
{
|
|
227
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
228
|
+
"code": "PAUNT",
|
|
229
|
+
"display": "paternal aunt"
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"resourceType": "FamilyMemberHistory",
|
|
236
|
+
"id": "7",
|
|
237
|
+
"extension": [
|
|
238
|
+
{
|
|
239
|
+
"extension": [
|
|
240
|
+
{
|
|
241
|
+
"url": "parent.type",
|
|
242
|
+
"valueCodeableConcept": {
|
|
243
|
+
"coding": [
|
|
244
|
+
{
|
|
245
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
246
|
+
"code": "FTH",
|
|
247
|
+
"display": "father"
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"url": "parent.identifier",
|
|
254
|
+
"valueUri": "#2"
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"url": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"patient": {
|
|
261
|
+
"reference": "Patient/example",
|
|
262
|
+
"display": "Peter Patient"
|
|
263
|
+
},
|
|
264
|
+
"status": "completed",
|
|
265
|
+
"relationship": {
|
|
266
|
+
"coding": [
|
|
267
|
+
{
|
|
268
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
269
|
+
"code": "PAUNT",
|
|
270
|
+
"display": "paternal aunt"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"resourceType": "FamilyMemberHistory",
|
|
277
|
+
"id": "8",
|
|
278
|
+
"extension": [
|
|
279
|
+
{
|
|
280
|
+
"extension": [
|
|
281
|
+
{
|
|
282
|
+
"url": "parent.type",
|
|
283
|
+
"valueCodeableConcept": {
|
|
284
|
+
"coding": [
|
|
285
|
+
{
|
|
286
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
287
|
+
"code": "MTH",
|
|
288
|
+
"display": "mother"
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"url": "parent.identifier",
|
|
295
|
+
"valueUri": "#5"
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"url": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent"
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"patient": {
|
|
302
|
+
"reference": "Patient/example",
|
|
303
|
+
"display": "Peter Patient"
|
|
304
|
+
},
|
|
305
|
+
"status": "completed",
|
|
306
|
+
"name": "Alice",
|
|
307
|
+
"relationship": {
|
|
308
|
+
"coding": [
|
|
309
|
+
{
|
|
310
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
311
|
+
"code": "PCOUSN",
|
|
312
|
+
"display": "paternal cousin"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
"code": {
|
|
319
|
+
"coding": [
|
|
320
|
+
{
|
|
321
|
+
"system": "http://loinc.org",
|
|
322
|
+
"code": "8670-2",
|
|
323
|
+
"display": "History of family member diseases"
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
"subject": {
|
|
328
|
+
"reference": "Patient/example",
|
|
329
|
+
"display": "Peter Patient",
|
|
330
|
+
"_display": {
|
|
331
|
+
"fhir_comments": [
|
|
332
|
+
" Should be 'Bob', but didn't make sense to define a new patient "
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"status": "current",
|
|
337
|
+
"mode": "snapshot",
|
|
338
|
+
"entry": [
|
|
339
|
+
{
|
|
340
|
+
"item": {
|
|
341
|
+
"reference": "#1"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"item": {
|
|
346
|
+
"reference": "#2"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"item": {
|
|
351
|
+
"reference": "#3"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"item": {
|
|
356
|
+
"reference": "#4"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"item": {
|
|
361
|
+
"reference": "#5"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"item": {
|
|
366
|
+
"reference": "#6"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"item": {
|
|
371
|
+
"reference": "#7"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"item": {
|
|
376
|
+
"reference": "#8"
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
]
|
|
380
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
Condition: (
|
|
5
|
+
<img
|
|
6
|
+
src={require('../assets/containers/Condition/condition.svg')}
|
|
7
|
+
alt="germ"
|
|
8
|
+
/>
|
|
9
|
+
),
|
|
10
|
+
Immunization: (
|
|
11
|
+
<img
|
|
12
|
+
src={require('../assets/containers/Immunization/immunization.svg')}
|
|
13
|
+
alt="syringe"
|
|
14
|
+
/>
|
|
15
|
+
),
|
|
16
|
+
Procedure: (
|
|
17
|
+
<img
|
|
18
|
+
src={require('../assets/containers/Procedure/procedure.svg')}
|
|
19
|
+
alt="block diagram"
|
|
20
|
+
/>
|
|
21
|
+
),
|
|
22
|
+
Practitioner: (
|
|
23
|
+
<img
|
|
24
|
+
src={require('../assets/containers/Practitioner/practitioner.svg')}
|
|
25
|
+
alt="doctor avatar"
|
|
26
|
+
/>
|
|
27
|
+
),
|
|
28
|
+
AllergyIntolerance: (
|
|
29
|
+
<img
|
|
30
|
+
src={require('../assets/containers/AllergyIntolerance/allergy-intolerance.svg')}
|
|
31
|
+
alt="sneezing emoji"
|
|
32
|
+
/>
|
|
33
|
+
),
|
|
34
|
+
Appointment: (
|
|
35
|
+
<img
|
|
36
|
+
src={require('../assets/containers/Appointment/appointment.svg')}
|
|
37
|
+
alt="calendar"
|
|
38
|
+
/>
|
|
39
|
+
),
|
|
40
|
+
CarePlan: (
|
|
41
|
+
<img
|
|
42
|
+
src={require('../assets/containers/CarePlan/care-plan.svg')}
|
|
43
|
+
alt="note with a heart"
|
|
44
|
+
/>
|
|
45
|
+
),
|
|
46
|
+
CareTeam: (
|
|
47
|
+
<img
|
|
48
|
+
src={require('../assets/containers/CareTeam/care-team.svg')}
|
|
49
|
+
alt="group of people"
|
|
50
|
+
/>
|
|
51
|
+
),
|
|
52
|
+
Claim: (
|
|
53
|
+
<img
|
|
54
|
+
src={require('../assets/containers/Claim/claim.svg')}
|
|
55
|
+
alt="clipboard with a symmetrical cross"
|
|
56
|
+
/>
|
|
57
|
+
),
|
|
58
|
+
ClaimResponse: (
|
|
59
|
+
<img
|
|
60
|
+
src={require('../assets/containers/ClaimResponse/claim-response.svg')}
|
|
61
|
+
alt="clipboard with a symmetrical cross and a return arrow"
|
|
62
|
+
/>
|
|
63
|
+
),
|
|
64
|
+
Device: (
|
|
65
|
+
<img
|
|
66
|
+
src={require('../assets/containers/Device/device.svg')}
|
|
67
|
+
alt="computer rack"
|
|
68
|
+
/>
|
|
69
|
+
),
|
|
70
|
+
DiagnosticReport: (
|
|
71
|
+
<img
|
|
72
|
+
src={require('../assets/containers/DiagnosticReport/diagnostic-report.svg')}
|
|
73
|
+
alt="note with shapes"
|
|
74
|
+
/>
|
|
75
|
+
),
|
|
76
|
+
DocumentReference: (
|
|
77
|
+
<img
|
|
78
|
+
src={require('../assets/containers/DocumentReference/document-reference.svg')}
|
|
79
|
+
alt="hand holding a note"
|
|
80
|
+
/>
|
|
81
|
+
),
|
|
82
|
+
Encounter: (
|
|
83
|
+
<img
|
|
84
|
+
src={require('../assets/containers/Encounter/encounter.svg')}
|
|
85
|
+
alt="conversation between two individuals"
|
|
86
|
+
/>
|
|
87
|
+
),
|
|
88
|
+
ExplanationOfBenefit: (
|
|
89
|
+
<img
|
|
90
|
+
src={require('../assets/containers/ExplanationOfBenefit/explanation-of-benefit.svg')}
|
|
91
|
+
alt="percentage sign"
|
|
92
|
+
/>
|
|
93
|
+
),
|
|
94
|
+
FamilyMemberHistory: (
|
|
95
|
+
<img
|
|
96
|
+
src={require('../assets/containers/FamilyMemberHistory/family-member-history.svg')}
|
|
97
|
+
alt="parent and child"
|
|
98
|
+
/>
|
|
99
|
+
),
|
|
100
|
+
Goal: (
|
|
101
|
+
<img
|
|
102
|
+
src={require('../assets/containers/Goal/goal.svg')}
|
|
103
|
+
alt="arrow hits bullseye"
|
|
104
|
+
/>
|
|
105
|
+
),
|
|
106
|
+
List: (
|
|
107
|
+
<img src={require('../assets/containers/List/list.svg')} alt="checklist" />
|
|
108
|
+
),
|
|
109
|
+
Location: (
|
|
110
|
+
<img
|
|
111
|
+
src={require('../assets/containers/Location/location.svg')}
|
|
112
|
+
alt="location marker"
|
|
113
|
+
/>
|
|
114
|
+
),
|
|
115
|
+
Medication: (
|
|
116
|
+
<img
|
|
117
|
+
src={require('../assets/containers/Medication/medication.svg')}
|
|
118
|
+
alt="some pills"
|
|
119
|
+
/>
|
|
120
|
+
),
|
|
121
|
+
MedicationAdministration: (
|
|
122
|
+
<img
|
|
123
|
+
src={require('../assets/containers/MedicationAdministration/medication-administration.svg')}
|
|
124
|
+
alt="pill gets swallowed"
|
|
125
|
+
/>
|
|
126
|
+
),
|
|
127
|
+
MedicationKnowledge: (
|
|
128
|
+
<img
|
|
129
|
+
src={require('../assets/containers/MedicationKnowledge/medication-knowledge.svg')}
|
|
130
|
+
alt="pill database"
|
|
131
|
+
/>
|
|
132
|
+
),
|
|
133
|
+
MedicationStatement: (
|
|
134
|
+
<img
|
|
135
|
+
src={require('../assets/containers/MedicationStatement/medication-statement.svg')}
|
|
136
|
+
alt="note with symmetrical cross"
|
|
137
|
+
/>
|
|
138
|
+
),
|
|
139
|
+
Observation: (
|
|
140
|
+
<img
|
|
141
|
+
src={require('../assets/containers/Observation/observation.svg')}
|
|
142
|
+
alt="hospital bed"
|
|
143
|
+
/>
|
|
144
|
+
),
|
|
145
|
+
Questionnaire: (
|
|
146
|
+
<img
|
|
147
|
+
src={require('../assets/containers/Questionnaire/questionnaire.svg')}
|
|
148
|
+
alt="clipboard and pen"
|
|
149
|
+
/>
|
|
150
|
+
),
|
|
151
|
+
QuestionnaireResponse: (
|
|
152
|
+
<img
|
|
153
|
+
src={require('../assets/containers/QuestionnaireResponse/questionnaire-response.svg')}
|
|
154
|
+
alt="clipboard and return arrow"
|
|
155
|
+
/>
|
|
156
|
+
),
|
|
157
|
+
ResearchStudy: (
|
|
158
|
+
<img
|
|
159
|
+
src={require('../assets/containers/ResearchStudy/research-study.svg')}
|
|
160
|
+
alt="finger pointing something in a book"
|
|
161
|
+
/>
|
|
162
|
+
),
|
|
163
|
+
ResourceCategoryPlaceholder: (
|
|
164
|
+
<img
|
|
165
|
+
src={require('../assets/containers/ResourceCategory/resource-placeholder.svg')}
|
|
166
|
+
alt="header icon"
|
|
167
|
+
/>
|
|
168
|
+
),
|
|
169
|
+
};
|