1uphealth / fhir-react

FHIR React Component Library
MIT License
100 stars 30 forks source link

[Release-0-3-4] #311

Closed jaceksanko closed 2 years ago

jaceksanko commented 2 years ago

Issue: PATIENTAPP-95 PATIENTAPP-94 PATIENTAPP-96 PATIENTAPP-97 PATIENTAPP-98 PATIENTAPP-93 PATIENTAPP-99

PR Checklist

Why are these changes needed?

What changed?

Refactored the header icon to accept the URL icon. Refactored encounter resource name. Refactored an encounter component to use a header icon. Refactored a condition component to use an icon from the URL. Refactored the immunization component to use an icon from the URL. Refactored a procedure component to use an icon from the URL. Refactored a resource category component to use an icon from the URL

An icon has been added in the header props in the appointment component. Added the string "Appointment" as a resourceName in the header props in the appointment component. Icons have been added to the appointment stories from various sources. New tests have been added to the appointment component.

An icon has been added in the header props in the ExplanationOfBenefit component. Added the string "ExplanationOfBenefit" as a resourceName in the header props in the ExplanationOfBenefit component. Icons have been added to the ExplanationOfBenefit stories from various sources. New tests have been added to the ExplanationOfBenefit component. The function convertCamelCaseToSentence has been added to convert the camel case the resourceName to sentence.

An icon has been added in the header props in the Observation component. Added the string "Observation" as a resourceName in the header props in the Observation component. Icons have been added to the Observation stories from various sources.

An icon has been added in the header props in the Patient component. Added the string "Patient" as a resourceName in the header props in the Patient component. Icons have been added to the Patient stories from various sources. New tests have been added to the Patient component.

An icon has been added in the header props in the Practitioner component. Added the string "Practitioner" as a resourceName in the header props in the Practitioner component. Icons have been added to the Practitioner stories from various sources. New tests have been added to the Practitioner component.

Now each Accordion component has a unique id of format accordion-type-{resource_type}-{number}, where resource_type is replaced by the resource name, which is using an Accordion.

How are these changes tested?

The changes have been tested by unit tests and the storybook.