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,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"lastUpdated": "2021-06-04T00:53:35.305Z",
|
|
4
|
+
"security": [],
|
|
5
|
+
"versionId": "9000000000000",
|
|
6
|
+
"tag": [
|
|
7
|
+
{
|
|
8
|
+
"version": "0.0.1",
|
|
9
|
+
"code": "http://build.fhir.org/ig/HL7/davinci-pdex-formulary/",
|
|
10
|
+
"system": "urn:uuid:internal-1up-health-coding-systems-ig"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"profile": [
|
|
14
|
+
"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"code": {
|
|
18
|
+
"coding": [
|
|
19
|
+
{
|
|
20
|
+
"code": "855626",
|
|
21
|
+
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
|
|
22
|
+
"display": "Twice-Daily diclofenac epolamine 0.013 MG/MG Medicated Patch"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"text": "DICLOFENAC EPOLAMINE "
|
|
26
|
+
},
|
|
27
|
+
"resourceType": "MedicationKnowledge",
|
|
28
|
+
"extension": [
|
|
29
|
+
{
|
|
30
|
+
"valueCodeableConcept": {
|
|
31
|
+
"coding": [
|
|
32
|
+
{
|
|
33
|
+
"code": "preferred-brand",
|
|
34
|
+
"system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS",
|
|
35
|
+
"display": "Preferred Brand: Brand name drugs"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"valueBoolean": false,
|
|
43
|
+
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"valueBoolean": false,
|
|
47
|
+
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"valueBoolean": true,
|
|
51
|
+
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"valueString": "Kansas Medicaid FFS",
|
|
55
|
+
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"id": "005kXKf85FaCyxINxeN9DxgvKT6lSaa7lYIRlgx1up"
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"lastUpdated": "2021-06-04T00:52:39.222Z",
|
|
4
|
+
"security": [],
|
|
5
|
+
"versionId": "9000000000000",
|
|
6
|
+
"tag": [
|
|
7
|
+
{
|
|
8
|
+
"version": "0.0.1",
|
|
9
|
+
"code": "http://build.fhir.org/ig/HL7/davinci-pdex-formulary/",
|
|
10
|
+
"system": "urn:uuid:internal-1up-health-coding-systems-ig"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"profile": [
|
|
14
|
+
"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"code": {
|
|
18
|
+
"coding": [
|
|
19
|
+
{
|
|
20
|
+
"code": "1726324",
|
|
21
|
+
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
|
|
22
|
+
"display": "5 ML irinotecan hydrochloride 20 MG/ML Injection"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"text": "IRINOTECAN HCL "
|
|
26
|
+
},
|
|
27
|
+
"resourceType": "MedicationKnowledge",
|
|
28
|
+
"extension": [
|
|
29
|
+
{
|
|
30
|
+
"valueCodeableConcept": {
|
|
31
|
+
"coding": [
|
|
32
|
+
{
|
|
33
|
+
"code": "generic",
|
|
34
|
+
"system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-DrugTierCS",
|
|
35
|
+
"display": "Generic: Commonly prescribed generic drugs that cost more than drugs in the ‘preferred generic’ tier."
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"valueBoolean": false,
|
|
43
|
+
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"valueBoolean": false,
|
|
47
|
+
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"valueBoolean": false,
|
|
51
|
+
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"valueString": "Kansas Medicaid FFS",
|
|
55
|
+
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"id": "00cSdK2hArNsoCskgED4BEZ1oazY5acoIEDpWMx1up"
|
|
59
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceType": "List",
|
|
3
|
+
"id": "example",
|
|
4
|
+
"text": {
|
|
5
|
+
"status": "generated",
|
|
6
|
+
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <table>\n <thead>\n <tr>\n <th>Condition</th>\n <th>Severity</th>\n <th>Date</th>\n <th>Location</th>\n <th>Status</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>Burnt Ear</td>\n <td>Severe</td>\n <td>24-May 2012</td>\n <td>Left Ear</td>\n <td>deleted</td>\n </tr>\n <tr>\n <td>Asthma</td>\n <td>Mild</td>\n <td>21-Nov 2012</td>\n <td>--</td>\n <td>added</td>\n </tr>\n </tbody>\n </table>\n </div>"
|
|
7
|
+
},
|
|
8
|
+
"identifier": [
|
|
9
|
+
{
|
|
10
|
+
"system": "urn:uuid:a9fcea7c-fcdf-4d17-a5e0-f26dda030b59",
|
|
11
|
+
"value": "23974652"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"status": "current",
|
|
15
|
+
"mode": "changes",
|
|
16
|
+
"subject": {
|
|
17
|
+
"reference": "Patient/example"
|
|
18
|
+
},
|
|
19
|
+
"encounter": {
|
|
20
|
+
"reference": "Encounter/example"
|
|
21
|
+
},
|
|
22
|
+
"date": "2012-11-25T22:17:00+11:00",
|
|
23
|
+
"source": {
|
|
24
|
+
"reference": "Patient/example"
|
|
25
|
+
},
|
|
26
|
+
"entry": [
|
|
27
|
+
{
|
|
28
|
+
"flag": {
|
|
29
|
+
"text": "Deleted due to error"
|
|
30
|
+
},
|
|
31
|
+
"deleted": true,
|
|
32
|
+
"item": {
|
|
33
|
+
"reference": "Condition/example"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"flag": {
|
|
38
|
+
"text": "Added"
|
|
39
|
+
},
|
|
40
|
+
"date": "2012-11-21",
|
|
41
|
+
"item": {
|
|
42
|
+
"reference": "Condition/example2"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceType": "List",
|
|
3
|
+
"id": "genetic",
|
|
4
|
+
"text": {
|
|
5
|
+
"status": "generated",
|
|
6
|
+
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: genetic</p><p><b>contained</b>: , , , , , , , </p><p><b>status</b>: current</p><p><b>mode</b>: snapshot</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>Peter Patient</a></p><blockquote><p><b>entry</b></p><p><b>item</b>: id: 1; status: completed; name: Dave; father <span>(Details : {http://hl7.org/fhir/v3/RoleCode code 'FTH' = 'father', given as 'father'})</span></p></blockquote><blockquote><p><b>entry</b></p><p><b>item</b>: id: 2; status: completed; maternal grandfather <span>(Details : {http://hl7.org/fhir/v3/RoleCode code 'MGRFTH' = 'maternal grandfather', given as 'maternal grandfather'})</span></p></blockquote><blockquote><p><b>entry</b></p><p><b>item</b>: id: 3; status: completed; mother <span>(Details : {http://hl7.org/fhir/v3/RoleCode code 'MTH' = 'mother', given as 'mother'})</span></p></blockquote><blockquote><p><b>entry</b></p><p><b>item</b>: id: 4; status: completed; paternal grandmother <span>(Details : {http://hl7.org/fhir/v3/RoleCode code 'PGRMTH' = 'paternal grandmother', given as 'paternal grandmother'})</span></p></blockquote><blockquote><p><b>entry</b></p><p><b>item</b>: id: 5; status: completed; name: Eve; paternal aunt <span>(Details : {http://hl7.org/fhir/v3/RoleCode code 'PAUNT' = 'paternal aunt', given as 'paternal aunt'})</span></p></blockquote><blockquote><p><b>entry</b></p><p><b>item</b>: id: 6; status: completed; maternal uncle <span>(Details : {http://hl7.org/fhir/v3/RoleCode code 'MUNCLE' = 'maternal uncle', given as 'maternal uncle'})</span></p></blockquote><blockquote><p><b>entry</b></p><p><b>item</b>: id: 7; status: completed; natural sister <span>(Details : {http://hl7.org/fhir/v3/RoleCode code 'NSIS' = 'natural sister', given as 'natural sister'})</span></p></blockquote><blockquote><p><b>entry</b></p><p><b>item</b>: id: 8; status: completed; name: Alice; maternal cousin <span>(Details : {http://hl7.org/fhir/v3/RoleCode code 'MCOUSN' = 'maternal cousin', given as 'maternal cousin'})</span></p></blockquote><blockquote><p><b>entry</b></p><p><b>item</b>: <a>Family history of cancer of colon</a></p></blockquote></div>"
|
|
7
|
+
},
|
|
8
|
+
"contained": [
|
|
9
|
+
{
|
|
10
|
+
"resourceType": "FamilyMemberHistory",
|
|
11
|
+
"id": "1",
|
|
12
|
+
"extension": [
|
|
13
|
+
{
|
|
14
|
+
"url": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent",
|
|
15
|
+
"extension": [
|
|
16
|
+
{
|
|
17
|
+
"url": "type",
|
|
18
|
+
"valueCodeableConcept": {
|
|
19
|
+
"coding": [
|
|
20
|
+
{
|
|
21
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
22
|
+
"code": "FTH",
|
|
23
|
+
"display": "father"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"url": "reference",
|
|
30
|
+
"valueReference": {
|
|
31
|
+
"reference": "#2",
|
|
32
|
+
"display": "maternal grandfather"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"status": "completed",
|
|
39
|
+
"patient": {
|
|
40
|
+
"reference": "Patient/example",
|
|
41
|
+
"display": "Peter Patient"
|
|
42
|
+
},
|
|
43
|
+
"name": "Dave",
|
|
44
|
+
"relationship": {
|
|
45
|
+
"coding": [
|
|
46
|
+
{
|
|
47
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
48
|
+
"code": "FTH",
|
|
49
|
+
"display": "father"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"resourceType": "FamilyMemberHistory",
|
|
56
|
+
"id": "2",
|
|
57
|
+
"status": "completed",
|
|
58
|
+
"patient": {
|
|
59
|
+
"reference": "Patient/example",
|
|
60
|
+
"display": "Peter Patient"
|
|
61
|
+
},
|
|
62
|
+
"relationship": {
|
|
63
|
+
"coding": [
|
|
64
|
+
{
|
|
65
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
66
|
+
"code": "MGRFTH",
|
|
67
|
+
"display": "maternal grandfather"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"resourceType": "FamilyMemberHistory",
|
|
74
|
+
"id": "3",
|
|
75
|
+
"extension": [
|
|
76
|
+
{
|
|
77
|
+
"url": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent",
|
|
78
|
+
"extension": [
|
|
79
|
+
{
|
|
80
|
+
"url": "type",
|
|
81
|
+
"valueCodeableConcept": {
|
|
82
|
+
"coding": [
|
|
83
|
+
{
|
|
84
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
85
|
+
"code": "MTH",
|
|
86
|
+
"display": "mother"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"url": "reference",
|
|
93
|
+
"valueReference": {
|
|
94
|
+
"reference": "#2",
|
|
95
|
+
"display": "maternal grandfather"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"status": "completed",
|
|
102
|
+
"patient": {
|
|
103
|
+
"reference": "Patient/example",
|
|
104
|
+
"display": "Peter Patient"
|
|
105
|
+
},
|
|
106
|
+
"relationship": {
|
|
107
|
+
"coding": [
|
|
108
|
+
{
|
|
109
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
110
|
+
"code": "MTH",
|
|
111
|
+
"display": "mother"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"resourceType": "FamilyMemberHistory",
|
|
118
|
+
"id": "4",
|
|
119
|
+
"status": "completed",
|
|
120
|
+
"patient": {
|
|
121
|
+
"reference": "Patient/example",
|
|
122
|
+
"display": "Peter Patient"
|
|
123
|
+
},
|
|
124
|
+
"relationship": {
|
|
125
|
+
"coding": [
|
|
126
|
+
{
|
|
127
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
128
|
+
"code": "PGRMTH",
|
|
129
|
+
"display": "paternal grandmother"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"resourceType": "FamilyMemberHistory",
|
|
136
|
+
"id": "5",
|
|
137
|
+
"status": "completed",
|
|
138
|
+
"patient": {
|
|
139
|
+
"reference": "Patient/example",
|
|
140
|
+
"display": "Peter Patient"
|
|
141
|
+
},
|
|
142
|
+
"name": "Eve",
|
|
143
|
+
"relationship": {
|
|
144
|
+
"coding": [
|
|
145
|
+
{
|
|
146
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
147
|
+
"code": "PAUNT",
|
|
148
|
+
"display": "paternal aunt"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"resourceType": "FamilyMemberHistory",
|
|
155
|
+
"id": "6",
|
|
156
|
+
"status": "completed",
|
|
157
|
+
"patient": {
|
|
158
|
+
"reference": "Patient/example",
|
|
159
|
+
"display": "Peter Patient"
|
|
160
|
+
},
|
|
161
|
+
"relationship": {
|
|
162
|
+
"coding": [
|
|
163
|
+
{
|
|
164
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
165
|
+
"code": "MUNCLE",
|
|
166
|
+
"display": "maternal uncle"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"resourceType": "FamilyMemberHistory",
|
|
173
|
+
"id": "7",
|
|
174
|
+
"status": "completed",
|
|
175
|
+
"patient": {
|
|
176
|
+
"reference": "Patient/example",
|
|
177
|
+
"display": "Peter Patient"
|
|
178
|
+
},
|
|
179
|
+
"relationship": {
|
|
180
|
+
"coding": [
|
|
181
|
+
{
|
|
182
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
183
|
+
"code": "NSIS",
|
|
184
|
+
"display": "natural sister"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"resourceType": "FamilyMemberHistory",
|
|
191
|
+
"id": "8",
|
|
192
|
+
"extension": [
|
|
193
|
+
{
|
|
194
|
+
"url": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent",
|
|
195
|
+
"extension": [
|
|
196
|
+
{
|
|
197
|
+
"url": "type",
|
|
198
|
+
"valueCodeableConcept": {
|
|
199
|
+
"coding": [
|
|
200
|
+
{
|
|
201
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
202
|
+
"code": "MTH",
|
|
203
|
+
"display": "mother"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"url": "reference",
|
|
210
|
+
"valueReference": {
|
|
211
|
+
"reference": "#2",
|
|
212
|
+
"display": "maternal grandfather"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"status": "completed",
|
|
219
|
+
"patient": {
|
|
220
|
+
"reference": "Patient/example",
|
|
221
|
+
"display": "Peter Patient"
|
|
222
|
+
},
|
|
223
|
+
"name": "Alice",
|
|
224
|
+
"relationship": {
|
|
225
|
+
"coding": [
|
|
226
|
+
{
|
|
227
|
+
"system": "http://hl7.org/fhir/v3/RoleCode",
|
|
228
|
+
"code": "MCOUSN",
|
|
229
|
+
"display": "maternal cousin"
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"status": "current",
|
|
236
|
+
"mode": "snapshot",
|
|
237
|
+
"code": {
|
|
238
|
+
"coding": [
|
|
239
|
+
{
|
|
240
|
+
"system": "http://loinc.org",
|
|
241
|
+
"code": "8670-2",
|
|
242
|
+
"display": "History of family member diseases"
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
"subject": {
|
|
247
|
+
"reference": "Patient/example",
|
|
248
|
+
"display": "Peter Patient"
|
|
249
|
+
},
|
|
250
|
+
"entry": [
|
|
251
|
+
{
|
|
252
|
+
"item": {
|
|
253
|
+
"reference": "#1"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"item": {
|
|
258
|
+
"reference": "#2"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"item": {
|
|
263
|
+
"reference": "#3"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"item": {
|
|
268
|
+
"reference": "#4"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"item": {
|
|
273
|
+
"reference": "#5"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"item": {
|
|
278
|
+
"reference": "#6"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"item": {
|
|
283
|
+
"reference": "#7"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"item": {
|
|
288
|
+
"reference": "#8"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"item": {
|
|
293
|
+
"reference": "Condition/family-history",
|
|
294
|
+
"display": "Family history of cancer of colon"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceType": "List",
|
|
3
|
+
"id": "f201",
|
|
4
|
+
"text": {
|
|
5
|
+
"status": "generated",
|
|
6
|
+
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: f201</p><p><b>contained</b>: , </p><p><b>status</b>: current</p><p><b>mode</b>: snapshot</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>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' = 'Mother', 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' = 'Uncle', given as 'Uncle'})</span>; deceased</p></blockquote></div>"
|
|
7
|
+
},
|
|
8
|
+
"contained": [
|
|
9
|
+
{
|
|
10
|
+
"resourceType": "FamilyMemberHistory",
|
|
11
|
+
"id": "fmh-1",
|
|
12
|
+
"status": "completed",
|
|
13
|
+
"patient": {
|
|
14
|
+
"reference": "Patient/f201",
|
|
15
|
+
"display": "Roel"
|
|
16
|
+
},
|
|
17
|
+
"relationship": {
|
|
18
|
+
"coding": [
|
|
19
|
+
{
|
|
20
|
+
"system": "http://snomed.info/sct",
|
|
21
|
+
"code": "72705000",
|
|
22
|
+
"display": "Mother"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"deceasedBoolean": false,
|
|
27
|
+
"condition": [
|
|
28
|
+
{
|
|
29
|
+
"code": {
|
|
30
|
+
"coding": [
|
|
31
|
+
{
|
|
32
|
+
"system": "http://snomed.info/sct",
|
|
33
|
+
"code": "39839004",
|
|
34
|
+
"display": "Diaphragmatic hernia"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"resourceType": "FamilyMemberHistory",
|
|
43
|
+
"id": "fmh-2",
|
|
44
|
+
"status": "completed",
|
|
45
|
+
"patient": {
|
|
46
|
+
"reference": "Patient/f201",
|
|
47
|
+
"display": "Roel"
|
|
48
|
+
},
|
|
49
|
+
"relationship": {
|
|
50
|
+
"coding": [
|
|
51
|
+
{
|
|
52
|
+
"system": "http://snomed.info/sct",
|
|
53
|
+
"code": "38048003",
|
|
54
|
+
"display": "Uncle"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"deceasedBoolean": true,
|
|
59
|
+
"condition": [
|
|
60
|
+
{
|
|
61
|
+
"code": {
|
|
62
|
+
"coding": [
|
|
63
|
+
{
|
|
64
|
+
"system": "http://snomed.info/sct",
|
|
65
|
+
"code": "115665000",
|
|
66
|
+
"display": "Atopy"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"outcome": {
|
|
71
|
+
"coding": [
|
|
72
|
+
{
|
|
73
|
+
"system": "http://snomed.info/sct",
|
|
74
|
+
"code": "419099009",
|
|
75
|
+
"display": "Died"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"status": "current",
|
|
84
|
+
"mode": "snapshot",
|
|
85
|
+
"code": {
|
|
86
|
+
"coding": [
|
|
87
|
+
{
|
|
88
|
+
"system": "http://loinc.org",
|
|
89
|
+
"code": "8670-2",
|
|
90
|
+
"display": "History of family member diseases"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"subject": {
|
|
95
|
+
"reference": "Patient/f201",
|
|
96
|
+
"display": "Roel"
|
|
97
|
+
},
|
|
98
|
+
"note": [
|
|
99
|
+
{
|
|
100
|
+
"text": "Both parents, both brothers and both children (twin) are still alive."
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"entry": [
|
|
104
|
+
{
|
|
105
|
+
"item": {
|
|
106
|
+
"reference": "#fmh-1"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"item": {
|
|
111
|
+
"reference": "#fmh-2"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
2
|
+
import './style.css';
|
|
3
|
+
|
|
1
4
|
import FhirResource from './components/containers/FhirResource';
|
|
2
5
|
import fhirVersions from './components/resources/fhirResourceVersions';
|
|
3
6
|
|
|
4
|
-
|
|
7
|
+
if (typeof document !== 'undefined') {
|
|
8
|
+
require('bootstrap/dist/js/bootstrap.min.js');
|
|
9
|
+
}
|
|
5
10
|
|
|
6
11
|
export { FhirResource, fhirVersions };
|
|
7
12
|
export * from './components/supportedFhirResourceList';
|