Skip to content

Commit

Permalink
Release 0.3.11 (#360)
Browse files Browse the repository at this point in the history
* Prepare new release

* Add RelatedPerson to supported resources list

* Sort resources based on given list (#359)
  • Loading branch information
daria-lasecka authored May 5, 2022
1 parent 735591b commit 5aacefe
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 8 deletions.
49 changes: 49 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,52 @@ import '../src/style.scss';
if (typeof document !== 'undefined') {
require('bootstrap/dist/js/bootstrap.min.js');
}

export const parameters = {
options: {
storySort: {
order: [
'Patient',
'Coverage',
['RelatedPerson', 'FamilyMemberHistory'],
'ExplanationOfBenefit',
['ExplanationOfBenefitGraph', 'Claim', 'ClaimResponse'],
'Immunization',
'Observation',
'Procedure',
'Condition',
'Encounter',
'DiagnosticReport',
'DocumentReference',
'CarePlan',
'Goal',
'AllergyIntolerance',
'AdverseEvent',
'Device',
'List',
'Medication',
'MedicationDispense',
'MedicationAdministration',
'MedicationOrder',
'MedicationRequest',
'MedicationStatement',
'Practitioner',
['PractitionerRole'],
'Organization',
'CareTeam',
'Appointment',
'Bundle',
'Binary',
'ReferralRequest',
'Questionnaire',
'QuestionnaireResponse',
'UnhandledResourceDataStructure',
'Generic',
'Location',
'MedicationKnowledge',
'ResearchStudy',
'ResourceCategory',
],
},
},
};
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![CircleCI](https://circleci.com/gh/1uphealth/fhir-react/tree/master.svg?style=svg)](https://circleci.com/gh/1uphealth/fhir-react/tree/master)
[![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-10/index.html)
[![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)

# fhir-react

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fhir-react",
"version": "0.3.10",
"version": "0.3.11",
"description": "React component library for displaying FHIR Resources ",
"main": "build/index.js",
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/resources/Claim/Claim.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ClaimIcon from '../../../assets/containers/Claim/claim.svg';
import fhirIcons from '../../../fixtures/example-icons';

export default {
title: 'Claim',
title: 'ExplanationOfBenefit/Claim',
component: Claim,
argTypes: {
...defaultArgTypes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import fhirIcons from '../../../fixtures/example-icons';
import ClaimResponseIcon from '../../../assets/containers/ClaimResponse/claim-response.svg';

export default {
title: 'ClaimResponse',
title: 'ExplanationOfBenefit/ClaimResponse',
component: ClaimResponse,
argTypes: {
...defaultArgTypes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const CHART_DATA = [
];

export default {
title: 'ExplanationOfBenefitGraph',
title: 'ExplanationOfBenefit/ExplanationOfBenefitGraph',
component: ExplanationOfBenefitGraph,
argTypes: {
data: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import fhirIcons from '../../../fixtures/example-icons';
import FamilyMemberHistoryIcon from '../../../assets/containers/FamilyMemberHistory/family-member-history.svg';

export default {
title: 'FamilyMemberHistory',
title: 'Coverage/FamilyMemberHistory',
component: FamilyMemberHistory,
argTypes: {
...defaultArgTypes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import fhirIcons from '../../../fixtures/example-icons';
import PractitionerRoleIcon from '../../../assets/containers/PractitionerRole/practitioner-role.svg';

export default {
title: 'PractitionerRole',
title: 'Practitioner/PractitionerRole',
component: PractitionerRole,
argTypes: {
...defaultArgTypes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import exampleR4 from '../../../fixtures/r4/resources/relatedPerson/example1.jso
import fhirIcons from '../../../fixtures/example-icons';

export default {
title: 'RelatedPerson',
title: 'Coverage/RelatedPerson',
component: RelatedPerson,
argTypes: {
...defaultArgTypes,
Expand Down
2 changes: 2 additions & 0 deletions src/components/supportedFhirResourceList.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import MedicationAdministration from './resources/MedicationAdministration';
import Questionnaire from './resources/Questionnaire';
import QuestionnaireResponse from './resources/QuestionnaireResponse';
import ReferralRequest from './resources/ReferralRequest';
import RelatedPerson from './resources/RelatedPerson';
import ResearchStudy from './resources/ResearchStudy';
import ResourceCategory from './resources/ResourceCategory';

Expand Down Expand Up @@ -78,6 +79,7 @@ export {
Questionnaire,
QuestionnaireResponse,
ReferralRequest,
RelatedPerson,
ResearchStudy,
ResourceCategory,
};

0 comments on commit 5aacefe

Please sign in to comment.