@aehrc/smart-forms-renderer 1.0.0-alpha.42.dev2 → 1.0.0-alpha.42.dev4

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 (114) hide show
  1. package/package.json +1 -6
  2. package/.storybook/main.ts +0 -34
  3. package/.storybook/preview.tsx +0 -40
  4. package/src/stories/assets/fhirClient/mockFhirClient.ts +0 -52
  5. package/src/stories/assets/patients/PatSmartForm.ts +0 -281
  6. package/src/stories/assets/practitioners/PracPrimaryPeter.ts +0 -38
  7. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreAllergyIntolerance.json +0 -209
  8. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreCondition.json +0 -220
  9. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreEncounter.json +0 -299
  10. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreImmunization.json +0 -175
  11. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreMedicationRequest.json +0 -229
  12. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBP.json +0 -359
  13. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyHeight.json +0 -195
  14. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyWeight.json +0 -195
  15. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationHeartRate.json +0 -195
  16. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationSmokingStatus.json +0 -174
  17. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePatient.json +0 -495
  18. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitioner.json +0 -139
  19. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitionerRole.json +0 -216
  20. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreProcedure.json +0 -199
  21. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreRespirationRate.json +0 -195
  22. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreWaistCircumference.json +0 -195
  23. package/src/stories/assets/questionnaires/QAdvancedAdditionalDisplayContent.ts +0 -113
  24. package/src/stories/assets/questionnaires/QAdvancedControlAppearance.ts +0 -865
  25. package/src/stories/assets/questionnaires/QAdvancedOther.ts +0 -494
  26. package/src/stories/assets/questionnaires/QAdvancedTextApperance.ts +0 -503
  27. package/src/stories/assets/questionnaires/QAttachment.ts +0 -38
  28. package/src/stories/assets/questionnaires/QAuCoreTesting.ts +0 -3796
  29. package/src/stories/assets/questionnaires/QBehaviorCalculations.ts +0 -643
  30. package/src/stories/assets/questionnaires/QBehaviorChoiceRestriction.ts +0 -281
  31. package/src/stories/assets/questionnaires/QBehaviorOther.ts +0 -1241
  32. package/src/stories/assets/questionnaires/QBehaviorValueConstraints.ts +0 -508
  33. package/src/stories/assets/questionnaires/QBoolean.ts +0 -180
  34. package/src/stories/assets/questionnaires/QButtonTester.ts +0 -497
  35. package/src/stories/assets/questionnaires/QChoice.ts +0 -493
  36. package/src/stories/assets/questionnaires/QDate.ts +0 -56
  37. package/src/stories/assets/questionnaires/QDateTime.ts +0 -56
  38. package/src/stories/assets/questionnaires/QDecimal.ts +0 -56
  39. package/src/stories/assets/questionnaires/QDisplay.ts +0 -197
  40. package/src/stories/assets/questionnaires/QFormPopulation.ts +0 -1349
  41. package/src/stories/assets/questionnaires/QGroup.ts +0 -52
  42. package/src/stories/assets/questionnaires/QGroupTableTester.ts +0 -461
  43. package/src/stories/assets/questionnaires/QIdRemoverDebugger.ts +0 -161
  44. package/src/stories/assets/questionnaires/QInteger.ts +0 -119
  45. package/src/stories/assets/questionnaires/QItemControlDisplay.ts +0 -558
  46. package/src/stories/assets/questionnaires/QItemControlGroup.ts +0 -1530
  47. package/src/stories/assets/questionnaires/QItemControlQuestion.ts +0 -1271
  48. package/src/stories/assets/questionnaires/QMbs715Tester.ts +0 -32888
  49. package/src/stories/assets/questionnaires/QOpenChoice.ts +0 -151
  50. package/src/stories/assets/questionnaires/QParameterisedValueSets.ts +0 -312
  51. package/src/stories/assets/questionnaires/QPrePopTester.ts +0 -543
  52. package/src/stories/assets/questionnaires/QQuantity.ts +0 -365
  53. package/src/stories/assets/questionnaires/QReference.ts +0 -38
  54. package/src/stories/assets/questionnaires/QSingleItems.ts +0 -251
  55. package/src/stories/assets/questionnaires/QString.ts +0 -131
  56. package/src/stories/assets/questionnaires/QTerminologyControl.ts +0 -59
  57. package/src/stories/assets/questionnaires/QText.ts +0 -169
  58. package/src/stories/assets/questionnaires/QTime.ts +0 -38
  59. package/src/stories/assets/questionnaires/QUrl.ts +0 -38
  60. package/src/stories/assets/questionnaires/QValidateTester.ts +0 -118
  61. package/src/stories/assets/questionnaires/index.ts +0 -43
  62. package/src/stories/itemTypes/Attachment.stories.tsx +0 -39
  63. package/src/stories/itemTypes/Boolean.stories.tsx +0 -65
  64. package/src/stories/itemTypes/Choice.stories.tsx +0 -78
  65. package/src/stories/itemTypes/Date.stories.tsx +0 -46
  66. package/src/stories/itemTypes/DateTime.stories.tsx +0 -45
  67. package/src/stories/itemTypes/Decimal.stories.tsx +0 -56
  68. package/src/stories/itemTypes/Display.stories.tsx +0 -55
  69. package/src/stories/itemTypes/Group.stories.tsx +0 -39
  70. package/src/stories/itemTypes/Integer.stories.tsx +0 -55
  71. package/src/stories/itemTypes/OpenChoice.stories.tsx +0 -64
  72. package/src/stories/itemTypes/Quantity.stories.tsx +0 -71
  73. package/src/stories/itemTypes/Reference.stories.tsx +0 -39
  74. package/src/stories/itemTypes/String.stories.tsx +0 -51
  75. package/src/stories/itemTypes/Text.stories.tsx +0 -51
  76. package/src/stories/itemTypes/Time.stories.tsx +0 -39
  77. package/src/stories/itemTypes/Url.stories.tsx +0 -39
  78. package/src/stories/sdc/AdvancedAdditionalDisplayContent.stories.tsx +0 -51
  79. package/src/stories/sdc/AdvancedControlAppearance.stories.tsx +0 -90
  80. package/src/stories/sdc/AdvancedOther.stories.tsx +0 -76
  81. package/src/stories/sdc/AdvancedTextAppearance.stories.tsx +0 -104
  82. package/src/stories/sdc/BehaviorCalculations.stories.tsx +0 -69
  83. package/src/stories/sdc/BehaviorChoiceRestriction.stories.tsx +0 -76
  84. package/src/stories/sdc/BehaviorOther.stories.tsx +0 -97
  85. package/src/stories/sdc/BehaviorValueConstraints.stories.tsx +0 -88
  86. package/src/stories/sdc/FormPopulation.stories.tsx +0 -97
  87. package/src/stories/sdc/ItemControlDisplay.stories.tsx +0 -69
  88. package/src/stories/sdc/ItemControlGroup.stories.tsx +0 -90
  89. package/src/stories/sdc/ItemControlQuestion.stories.tsx +0 -118
  90. package/src/stories/sdc/OtherExtensions.stories.tsx +0 -39
  91. package/src/stories/sdc/ParameterisedValueSets.stories.tsx +0 -48
  92. package/src/stories/storybookWrappers/BuildFormButtonForStorybook.tsx +0 -54
  93. package/src/stories/storybookWrappers/BuildFormButtonTesterWrapperForStorybook.tsx +0 -76
  94. package/src/stories/storybookWrappers/BuildFormWrapperForStorybook.tsx +0 -61
  95. package/src/stories/storybookWrappers/FormValidationTesterWrapperForStorybook.tsx +0 -70
  96. package/src/stories/storybookWrappers/FormValidationViewerForStorybook.tsx +0 -28
  97. package/src/stories/storybookWrappers/IdRemoverButtonForStorybook.tsx +0 -49
  98. package/src/stories/storybookWrappers/IdRemoverDebuggerWrapperForStorybook.tsx +0 -84
  99. package/src/stories/storybookWrappers/InitialiseFormWrapperForStorybook.tsx +0 -105
  100. package/src/stories/storybookWrappers/PrePopButtonForStorybook.tsx +0 -56
  101. package/src/stories/storybookWrappers/PrePopWrapperForStorybook.tsx +0 -114
  102. package/src/stories/storybookWrappers/TestCssSheet.css +0 -17
  103. package/src/stories/storybookWrappers/ValidateFormButtonForStorybook.tsx +0 -41
  104. package/src/stories/storybookWrappers/globals.ts +0 -18
  105. package/src/stories/storybookWrappers/iframeResizerChild.js +0 -1063
  106. package/src/stories/storybookWrappers/index.ts +0 -19
  107. package/src/stories/storybookWrappers/populateCallbackForStorybook.ts +0 -55
  108. package/src/stories/testing/AuCoreTester.stories.tsx +0 -196
  109. package/src/stories/testing/BuildFormButtonTesterWrapper.stories.tsx +0 -40
  110. package/src/stories/testing/GroupTableTester.stories.tsx +0 -39
  111. package/src/stories/testing/IdRemoverDebuggerWrapper.stories.tsx +0 -39
  112. package/src/stories/testing/Mbs715Tester.stories.tsx +0 -57
  113. package/src/stories/testing/PrePopButtonTesterWrapper.stories.tsx +0 -55
  114. package/src/stories/testing/ValidateFormTesterWrapper.stories.tsx +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aehrc/smart-forms-renderer",
3
- "version": "1.0.0-alpha.42.dev2",
3
+ "version": "1.0.0-alpha.42.dev4",
4
4
  "description": "FHIR Structured Data Captured (SDC) rendering engine for Smart Forms",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -33,14 +33,12 @@
33
33
  "@fontsource/roboto": "^5.2.5",
34
34
  "@fontsource/inter": "^5.2.5",
35
35
  "@iconify/react": "^5.2.1",
36
- "axios": "^1.8.4",
37
36
  "dayjs": "^1.11.13",
38
37
  "deep-diff": "^1.0.2",
39
38
  "fhirclient": "^2.5.5",
40
39
  "fhirpath": "3.17.3",
41
40
  "html-react-parser": "^4.2.10",
42
41
  "js-base64": "^3.7.7",
43
- "lodash.clonedeep": "^4.5.0",
44
42
  "lodash.debounce": "^4.0.8",
45
43
  "lodash.difference": "^4.5.0",
46
44
  "lodash.differencewith": "^4.5.0",
@@ -78,14 +76,11 @@
78
76
  "@storybook/react-vite": "^8.6.3",
79
77
  "@storybook/test": "^8.6.3",
80
78
  "@storybook/types": "^8.6.3",
81
- "@swc/cli": "^0.6.0",
82
- "@swc/core": "^1.11.6",
83
79
  "@testing-library/jest-dom": "^6.6.3",
84
80
  "@testing-library/react": "^16.3.0",
85
81
  "@types/deep-diff": "^1.0.5",
86
82
  "@types/fhir": "^0.0.41",
87
83
  "@types/jest": "^29.5.14",
88
- "@types/lodash.clonedeep": "^4.5.9",
89
84
  "@types/lodash.debounce": "^4.0.9",
90
85
  "@types/lodash.difference": "^4.5.9",
91
86
  "@types/lodash.differencewith": "^4.5.9",
@@ -1,34 +0,0 @@
1
- import type { StorybookConfig } from '@storybook/react-vite';
2
-
3
- import { dirname, join } from 'path';
4
-
5
- /**
6
- * This function is used to resolve the absolute path of a package.
7
- * It is needed in projects that use Yarn PnP or are set up within a monorepo.
8
- */
9
- function getAbsolutePath(value: string): any {
10
- return dirname(require.resolve(join(value, 'package.json')));
11
- }
12
- const config: StorybookConfig = {
13
- stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
14
-
15
- addons: [
16
- getAbsolutePath('@storybook/addon-links'),
17
- getAbsolutePath('@storybook/addon-essentials'),
18
- getAbsolutePath('@storybook/addon-onboarding'),
19
- getAbsolutePath('@storybook/addon-interactions'),
20
- getAbsolutePath('@chromatic-com/storybook')
21
- ],
22
-
23
- framework: {
24
- name: getAbsolutePath('@storybook/react-vite'),
25
- options: {}
26
- },
27
-
28
- docs: {},
29
-
30
- typescript: {
31
- reactDocgen: 'react-docgen-typescript'
32
- }
33
- };
34
- export default config;
@@ -1,40 +0,0 @@
1
- import type { Preview } from '@storybook/react';
2
- import '@fontsource/roboto/300.css';
3
- import '@fontsource/roboto/400.css';
4
- import '@fontsource/roboto/500.css';
5
- import '@fontsource/roboto/700.css';
6
- import '@fontsource/material-icons';
7
- import { withThemeFromJSXProvider } from '@storybook/addon-themes';
8
- import { createTheme } from '@mui/material/styles';
9
- import { CssBaseline, ThemeProvider } from '@mui/material';
10
- import '../src/stories/storybookWrappers/iframeResizerChild.js';
11
-
12
- export const decorators = [
13
- withThemeFromJSXProvider({
14
- themes: {
15
- light: createTheme()
16
- },
17
- defaultTheme: 'light',
18
- Provider: ThemeProvider,
19
- GlobalStyles: CssBaseline
20
- })
21
- ];
22
-
23
- const preview: Preview = {
24
- parameters: {
25
- actions: {},
26
- controls: {
27
- matchers: {
28
- color: /(background|color)$/i,
29
- date: /Date$/
30
- }
31
- },
32
- options: {
33
- // The `a` and `b` arguments in this function have a type of `import('@storybook/types').IndexEntry`. Remember that the function is executed in a JavaScript environment, so use JSDoc for IntelliSense to introspect it.
34
- storySort: (a, b) =>
35
- a.id === b.id ? 0 : a.id.localeCompare(b.id, undefined, { numeric: true })
36
- }
37
- }
38
- };
39
-
40
- export default preview;
@@ -1,52 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
-
18
- import type Client from 'fhirclient/lib/Client';
19
-
20
- const iss = 'https://proxy.smartforms.io/v/r4/fhir';
21
-
22
- const clientId = 'smart-forms-storybook';
23
-
24
- const scope =
25
- 'fhirUser online_access openid profile patient/Condition.rs patient/Observation.rs launch patient/Encounter.rs patient/Patient.rs';
26
-
27
- // This must be a patient ID that exists in the EHR
28
- const patientId = 'pat-sf';
29
-
30
- // This must be a practitioner ID that exists in the EHR
31
- const userId = 'primary-peter';
32
-
33
- export const mockFhirClient = {
34
- state: {
35
- clientId: clientId,
36
- scope: scope,
37
- serverUrl: iss,
38
- tokenResponse: {
39
- access_token: 'mock_access_token'
40
- }
41
- },
42
- patient: {
43
- id: patientId
44
- },
45
- encounter: { id: null },
46
-
47
- user: {
48
- id: userId,
49
- fhirUser: `Practitioner/${userId}`,
50
- resourceType: 'Practitioner'
51
- }
52
- } as unknown as Client;
@@ -1,281 +0,0 @@
1
- import type { Patient } from 'fhir/r4';
2
-
3
- export const patSmartForm: Patient = {
4
- resourceType: 'Patient',
5
- id: 'pat-sf',
6
- meta: {
7
- versionId: '1',
8
- lastUpdated: '2024-05-14T04:18:27.156+00:00',
9
- source: '#7awrHf9svvQ9oRrA',
10
- profile: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient']
11
- },
12
- text: {
13
- status: 'generated',
14
- div: '<div xmlns="http://www.w3.org/1999/xhtml"><p style="border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;"><b>Clever Form</b> female, DoB: 1968-10-11 ( Medicare Number/69514496771 (period: (?) --&gt; 2024-08))</p><hr/><table class="grid"><tr><td style="background-color: #f3f5da" title="Other Ids (see the one above)">Other Id:</td><td colspan="3">IHI/8003608833357361</td></tr><tr><td style="background-color: #f3f5da" title="Alternate names (see the one above)">Alt. Name:</td><td colspan="3">Mrs. Smart Form(OFFICIAL)</td></tr><tr><td style="background-color: #f3f5da" title="Ways to contact the Patient">Contact Details:</td><td colspan="3"><ul><li>ph: 0491 572 665(MOBILE)</li><li>ph: 0123456879(HOME)</li><li>4 Brisbane Street Brisbane QLD 4112 AU (HOME)</li><li>PO Box Number Brisbane QLD 4112 AU (TEMP)</li></ul></td></tr><tr><td style="background-color: #f3f5da" title="Languages spoken">Language:</td><td colspan="3"><span title="Codes: {urn:ietf:bcp:47 yub}">Yugambal</span></td></tr><tr><td style="background-color: #f3f5da" title="Nominated Contact: Emergency Contact">Emergency Contact:</td><td colspan="3"><ul><li>Ms Phone A Friend</li><li>0987654321</li></ul></td></tr><tr><td style="background-color: #f3f5da" title="The pronouns to use when referring to an individual in verbal or written communication.">Individual Pronouns:</td><td colspan="3"><ul><li>value: <span title="Codes: {http://loinc.org LA29520-6}">they/them/their/theirs/themselves</span></li><li>period: 2018-02 --&gt; 2022-06</li></ul></td></tr><tr><td style="background-color: #f3f5da" title="The pronouns to use when referring to an individual in verbal or written communication.">Individual Pronouns:</td><td colspan="3"><ul><li>value: <span title="Codes: {http://loinc.org LA29519-8}">she/her/her/hers/herself</span></li><li>period: 2022-06 --&gt; (ongoing)</li></ul></td></tr><tr><td style="background-color: #f3f5da" title="Recorded sex or gender (RSG) information includes the various sex and gender concepts that are often used in existing systems but are known NOT to represent a gender identity, sex parameter for clinical use, or attributes related to sexuality, such as sexual orientation, sexual activity, or sexual attraction. Examples of recorded sex or gender concepts include administrative gender, administrative sex, and sex assigned at birth. When exchanging this concept, refer to the guidance in the [Gender Harmony Implementation Guide](http://hl7.org/xprod/ig/uv/gender-harmony/).\n\nThis extension is published in this guide to pre-adopt an extension published in the R5 [FHIR Extensions Pack](http://hl7.org/fhir/extensions/StructureDefinition-individual-recordedSexOrGender.html). The only material difference is the data type for extension part sourceDocument (R5 CodeableReference to a choice between R4 CodeableConcept or Reference).">Person Recorded Sex Or Gender:</td><td colspan="3"><ul><li>value: <span title="Codes: {http://snomed.info/sct 248152002}">Female</span></li><li>type: <span title="Codes: {http://snomed.info/sct 1515311000168102}">Sex at Birth</span></li><li>effectivePeriod: 2022-06 --&gt; (ongoing)</li></ul></td></tr><tr><td style="background-color: #f3f5da" title="Recorded sex or gender (RSG) information includes the various sex and gender concepts that are often used in existing systems but are known NOT to represent a gender identity, sex parameter for clinical use, or attributes related to sexuality, such as sexual orientation, sexual activity, or sexual attraction. Examples of recorded sex or gender concepts include administrative gender, administrative sex, and sex assigned at birth. When exchanging this concept, refer to the guidance in the [Gender Harmony Implementation Guide](http://hl7.org/xprod/ig/uv/gender-harmony/).\n\nThis extension is published in this guide to pre-adopt an extension published in the R5 [FHIR Extensions Pack](http://hl7.org/fhir/extensions/StructureDefinition-individual-recordedSexOrGender.html). The only material difference is the data type for extension part sourceDocument (R5 CodeableReference to a choice between R4 CodeableConcept or Reference).">Person Recorded Sex Or Gender:</td><td colspan="3"><ul><li>value: <span title="Codes: {http://snomed.info/sct 32570681000036106}">Indeterminate sex</span></li><li>type: <span title="Codes: {http://snomed.info/sct 1515311000168102}">Sex at Birth</span></li><li>effectivePeriod: 2018-02 --&gt; 2022-06</li></ul></td></tr><tr><td style="background-color: #f3f5da" title="This extension applies to the Patient, Person, and RelatedPerson resources and is used to indicate whether a person identifies as being of Aboriginal or Torres Strait Islander origin."><a href="https://build.fhir.org/ig/hl7au/au-fhir-base//StructureDefinition-indigenous-status.html">Australian Indigenous Status:</a></td><td colspan="3"><ul><li>https://healthterminologies.gov.au/fhir/CodeSystem/australian-indigenous-status-1 1: Aboriginal but not Torres Strait Islander origin</li></ul></td></tr><tr><td style="background-color: #f3f5da" title="An individual\'s personal sense of being a man, woman, boy, girl, nonbinary, or something else. This represents an individual’s identity, ascertained by asking them what that identity is. \n In the case where the gender identity is communicated by a third party, for example, if a spouse indicates the gender identity of their partner on an intake form, a Provenance resource can be used with a Provenance.target referring to the Patient, with a targetElement extension identifying the gender identity extension as the target element within the Patient resource. When exchanging this concept, refer to the guidance in the [Gender Harmony Implementation Guide](http://hl7.org/xprod/ig/uv/gender-harmony/).">Individual Gender Identity:</td><td colspan="3"><ul><li>value: <span title="Codes: {http://snomed.info/sct 446141000124107}">Identifies as female gender</span></li></ul></td></tr></table></div>'
15
- },
16
- extension: [
17
- {
18
- url: 'http://hl7.org.au/fhir/StructureDefinition/indigenous-status',
19
- valueCoding: {
20
- system: 'https://healthterminologies.gov.au/fhir/CodeSystem/australian-indigenous-status-1',
21
- code: '1',
22
- display: 'Aboriginal but not Torres Strait Islander origin'
23
- }
24
- },
25
- {
26
- url: 'http://hl7.org/fhir/StructureDefinition/individual-genderIdentity',
27
- extension: [
28
- {
29
- url: 'value',
30
- valueCodeableConcept: {
31
- coding: [
32
- {
33
- system: 'http://snomed.info/sct',
34
- code: '446141000124107',
35
- display: 'Identifies as female gender'
36
- }
37
- ]
38
- }
39
- }
40
- ]
41
- },
42
- {
43
- url: 'http://hl7.org/fhir/StructureDefinition/individual-pronouns',
44
- extension: [
45
- {
46
- url: 'value',
47
- valueCodeableConcept: {
48
- coding: [
49
- {
50
- system: 'http://loinc.org',
51
- code: 'LA29520-6',
52
- display: 'they/them/their/theirs/themselves'
53
- }
54
- ]
55
- }
56
- },
57
- {
58
- url: 'period',
59
- valuePeriod: {
60
- start: '2018-02',
61
- end: '2022-06'
62
- }
63
- }
64
- ]
65
- },
66
- {
67
- url: 'http://hl7.org/fhir/StructureDefinition/individual-pronouns',
68
- extension: [
69
- {
70
- url: 'value',
71
- valueCodeableConcept: {
72
- coding: [
73
- {
74
- system: 'http://loinc.org',
75
- code: 'LA29519-8',
76
- display: 'she/her/her/hers/herself'
77
- }
78
- ]
79
- }
80
- },
81
- {
82
- url: 'period',
83
- valuePeriod: {
84
- start: '2022-06'
85
- }
86
- }
87
- ]
88
- },
89
- {
90
- url: 'http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender',
91
- extension: [
92
- {
93
- url: 'value',
94
- valueCodeableConcept: {
95
- coding: [
96
- {
97
- system: 'http://snomed.info/sct',
98
- code: '248152002',
99
- display: 'Female'
100
- }
101
- ],
102
- text: 'Female'
103
- }
104
- },
105
- {
106
- url: 'type',
107
- valueCodeableConcept: {
108
- coding: [
109
- {
110
- system: 'http://snomed.info/sct',
111
- code: '1515311000168102',
112
- display: 'Biological sex at birth'
113
- }
114
- ],
115
- text: 'Sex at Birth'
116
- }
117
- },
118
- {
119
- url: 'effectivePeriod',
120
- valuePeriod: {
121
- start: '2022-06'
122
- }
123
- }
124
- ]
125
- },
126
- {
127
- url: 'http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender',
128
- extension: [
129
- {
130
- url: 'value',
131
- valueCodeableConcept: {
132
- coding: [
133
- {
134
- system: 'http://snomed.info/sct',
135
- code: '32570681000036106',
136
- display: 'Indeterminate sex'
137
- }
138
- ],
139
- text: 'Indeterminate sex'
140
- }
141
- },
142
- {
143
- url: 'type',
144
- valueCodeableConcept: {
145
- coding: [
146
- {
147
- system: 'http://snomed.info/sct',
148
- code: '1515311000168102',
149
- display: 'Biological sex at birth'
150
- }
151
- ],
152
- text: 'Sex at Birth'
153
- }
154
- },
155
- {
156
- url: 'effectivePeriod',
157
- valuePeriod: {
158
- start: '2018-02',
159
- end: '2022-06'
160
- }
161
- }
162
- ]
163
- }
164
- ],
165
- identifier: [
166
- {
167
- type: {
168
- coding: [
169
- {
170
- system: 'http://terminology.hl7.org/CodeSystem/v2-0203',
171
- code: 'MC'
172
- }
173
- ],
174
- text: 'Medicare Number'
175
- },
176
- system: 'http://ns.electronichealth.net.au/id/medicare-number',
177
- value: '69514496771',
178
- period: {
179
- end: '2024-08'
180
- }
181
- },
182
- {
183
- type: {
184
- coding: [
185
- {
186
- system: 'http://terminology.hl7.org/CodeSystem/v2-0203',
187
- code: 'NI',
188
- display: 'National unique individual identifier'
189
- }
190
- ],
191
- text: 'IHI'
192
- },
193
- system: 'http://ns.electronichealth.net.au/id/hi/ihi/1.0',
194
- value: '8003608833357361'
195
- }
196
- ],
197
- name: [
198
- {
199
- use: 'official',
200
- text: 'Mrs. Smart Form',
201
- family: 'Form',
202
- given: ['Smart'],
203
- prefix: ['Mrs']
204
- },
205
- {
206
- use: 'usual',
207
- text: 'Clever Form'
208
- }
209
- ],
210
- telecom: [
211
- {
212
- system: 'phone',
213
- value: '0491 572 665',
214
- use: 'mobile'
215
- },
216
- {
217
- system: 'phone',
218
- value: '0123456879',
219
- use: 'home'
220
- }
221
- ],
222
- gender: 'female',
223
- birthDate: '1968-10-11',
224
- address: [
225
- {
226
- use: 'home',
227
- type: 'physical',
228
- line: ['4 Brisbane Street'],
229
- city: 'Brisbane',
230
- state: 'QLD',
231
- postalCode: '4112',
232
- country: 'AU'
233
- },
234
- {
235
- use: 'temp',
236
- type: 'postal',
237
- line: ['PO Box Number'],
238
- city: 'Brisbane',
239
- state: 'QLD',
240
- postalCode: '4112',
241
- country: 'AU'
242
- }
243
- ],
244
- contact: [
245
- {
246
- relationship: [
247
- {
248
- coding: [
249
- {
250
- system: 'http://terminology.hl7.org/CodeSystem/v2-0131',
251
- code: 'C'
252
- }
253
- ]
254
- }
255
- ],
256
- name: {
257
- use: 'usual',
258
- text: 'Ms Phone A Friend'
259
- },
260
- telecom: [
261
- {
262
- system: 'phone',
263
- value: '0987654321'
264
- }
265
- ]
266
- }
267
- ],
268
- communication: [
269
- {
270
- language: {
271
- coding: [
272
- {
273
- system: 'urn:ietf:bcp:47',
274
- code: 'yub'
275
- }
276
- ],
277
- text: 'Yugambal'
278
- }
279
- }
280
- ]
281
- };
@@ -1,38 +0,0 @@
1
- import type { Practitioner } from 'fhir/r4';
2
-
3
- export const pracPrimaryPeter: Practitioner = {
4
- resourceType: 'Practitioner',
5
- id: 'primary-peter',
6
- meta: {
7
- versionId: '1',
8
- lastUpdated: '2024-05-14T04:18:27.156+00:00',
9
- source: '#7awrHf9svvQ9oRrA',
10
- profile: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitioner']
11
- },
12
- text: {
13
- status: 'generated',
14
- div: '<div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: Practitioner</b><a name="primary-peter"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource Practitioner &quot;primary-peter&quot; Version &quot;2&quot; Updated &quot;2022-04-21 20:04:20+0000&quot; </p><p style="margin-bottom: 0px">Information Source: #PFl2LJ5HsUkESlP1!</p><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-au-core-practitioner.html">AU Core Practitioner</a></p></div><p><b>identifier</b>: <code>http://www.acme.org/practitioners</code>/25456</p><p><b>name</b>: Peter Primary </p><p><b>address</b>: 310 Hay St East Perth WA 6004 (WORK)</p></div>'
15
- },
16
- identifier: [
17
- {
18
- system: 'http://www.acme.org/practitioners',
19
- value: '25456'
20
- }
21
- ],
22
- name: [
23
- {
24
- family: 'Primary',
25
- given: ['Peter'],
26
- prefix: ['Dr']
27
- }
28
- ],
29
- address: [
30
- {
31
- use: 'work',
32
- line: ['310 Hay St'],
33
- city: 'East Perth',
34
- state: 'WA',
35
- postalCode: '6004'
36
- }
37
- ]
38
- };