fhir-react 0.3.11 → 0.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +17 -1
  2. package/build/index.js +9 -9
  3. package/package.json +1 -1
  4. package/src/components/containers/Accordion/Accordion.js +8 -4
  5. package/src/components/resources/AdverseEvent/AdverseEvent.js +2 -0
  6. package/src/components/resources/AllergyIntolerance/AllergyIntolerance.js +4 -0
  7. package/src/components/resources/Appointment/Appointment.js +2 -0
  8. package/src/components/resources/Binary/Binary.js +2 -1
  9. package/src/components/resources/CarePlan/CarePlan.js +3 -0
  10. package/src/components/resources/CareTeam/CareTeam.js +2 -0
  11. package/src/components/resources/Claim/Claim.js +3 -0
  12. package/src/components/resources/ClaimResponse/ClaimResponse.js +2 -0
  13. package/src/components/resources/Condition/Condition.js +2 -0
  14. package/src/components/resources/Coverage/Coverage.js +3 -0
  15. package/src/components/resources/Device/Device.js +3 -0
  16. package/src/components/resources/DiagnosticReport/DiagnosticReport.js +2 -0
  17. package/src/components/resources/DocumentReference/DocumentReference.js +2 -0
  18. package/src/components/resources/Encounter/Encounter.js +2 -0
  19. package/src/components/resources/ExplanationOfBenefit/ExplanationOfBenefit.js +18 -3
  20. package/src/components/resources/FamilyMemberHistory/FamilyMemberHistory.js +2 -0
  21. package/src/components/resources/Generic/Generic.js +8 -1
  22. package/src/components/resources/Goal/Goal.js +2 -0
  23. package/src/components/resources/Immunization/Immunization.js +2 -0
  24. package/src/components/resources/List/List.js +2 -0
  25. package/src/components/resources/Location/Location.js +8 -1
  26. package/src/components/resources/Medication/Medication.js +2 -0
  27. package/src/components/resources/MedicationAdministration/MedicationAdministration.js +4 -2
  28. package/src/components/resources/MedicationDispense/MedicationDispense.js +2 -0
  29. package/src/components/resources/MedicationKnowledge/MedicationKnowledge.js +2 -0
  30. package/src/components/resources/MedicationOrder/MedicationOrder.js +8 -1
  31. package/src/components/resources/MedicationRequest/MedicationRequest.js +2 -0
  32. package/src/components/resources/MedicationStatement/MedicationStatement.js +2 -0
  33. package/src/components/resources/Observation/Observation.js +8 -1
  34. package/src/components/resources/Organization/Organization.js +2 -0
  35. package/src/components/resources/Patient/Patient.js +2 -0
  36. package/src/components/resources/Practitioner/Practitioner.js +4 -0
  37. package/src/components/resources/PractitionerRole/PractitionerRole.js +2 -0
  38. package/src/components/resources/Procedure/Procedure.js +8 -1
  39. package/src/components/resources/Questionnaire/Questionnaire.js +2 -0
  40. package/src/components/resources/QuestionnaireResponse/QuestionnaireResponse.js +2 -0
  41. package/src/components/resources/ReferralRequest/ReferralRequest.js +2 -0
  42. package/src/components/resources/RelatedPerson/RelatedPerson.js +2 -0
  43. package/src/components/resources/ResearchStudy/ResearchStudy.js +2 -0
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![CircleCI](https://circleci.com/gh/1uphealth/fhir-react/tree/master.svg?style=svg)](https://circleci.com/gh/1uphealth/fhir-react/tree/master)
2
- [![Storybook](https://github.com/storybookjs/brand/raw/master/badge/badge-storybook.svg?sanitize=true)](https://fhir-react-lib-test-storybook.s3.amazonaws.com/branch/release-0-3-11/index.html)
2
+ [![Storybook](https://github.com/storybookjs/brand/raw/master/badge/badge-storybook.svg?sanitize=true)](https://fhir-react-lib-test-storybook.s3.amazonaws.com/branch/release-0-3-12/index.html)
3
3
 
4
4
  # fhir-react
5
5
 
@@ -157,6 +157,22 @@ const MyComponent = () => {
157
157
  };
158
158
  ```
159
159
 
160
+ User can provide a number that can be assigned at the end of Accordion id. Not providing any number will cause a lodash uniqueId function to be used instead (default functionality up to this point).
161
+
162
+ ```jsx
163
+ const MyComponent = () => {
164
+ const fhirResource = JSON.parse(fhirResourceAsJsonString);
165
+
166
+ return (
167
+ <FhirResource
168
+ fhirResource={fhirResource}
169
+ fhirVersion={fhirVersions.R4}
170
+ customId={id}
171
+ />
172
+ );
173
+ };
174
+ ```
175
+
160
176
  ### `FhirResource` component props
161
177
 
162
178
  | Prop | Type | Default | Description |