@aehrc/smart-forms-renderer 1.0.0-alpha.3 → 1.0.0-alpha.4

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.
@@ -0,0 +1 @@
1
+ export { default as DecimalField } from './DecimalField';
@@ -0,0 +1,18 @@
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
+ export { default as DecimalField } from './DecimalField';
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/DecimalItem/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aehrc/smart-forms-renderer",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-alpha.4",
4
4
  "description": "FHIR Structured Data Captured (SDC) rendering engine for Smart Forms",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -1528,775 +1528,3 @@ export const qItemControlGroupPageNonTopLevelPageContainer: Questionnaire = {
1528
1528
  }
1529
1529
  ]
1530
1530
  };
1531
-
1532
- export const QAusCVDRisk: Questionnaire = {
1533
- resourceType: 'Questionnaire',
1534
- id: 'CalculatedExpressionCvdRiskCalculator',
1535
- name: 'CalculatedExpressionCvdRiskCalculator',
1536
- title: 'Calculated Expression CVD Risk Calculator',
1537
- version: '0.1.0',
1538
- status: 'draft',
1539
- publisher: 'AEHRC CSIRO',
1540
- date: '2024-05-01',
1541
- url: 'https://smartforms.csiro.au/docs/behavior/choice-restrictions/calculated-expression-2',
1542
- extension: [
1543
- {
1544
- url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext',
1545
- extension: [
1546
- {
1547
- url: 'name',
1548
- valueCoding: {
1549
- system: 'http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext',
1550
- code: 'patient'
1551
- }
1552
- },
1553
- {
1554
- url: 'type',
1555
- valueCode: 'Patient'
1556
- },
1557
- {
1558
- url: 'description',
1559
- valueString: 'The patient that is to be used to pre-populate the form'
1560
- }
1561
- ]
1562
- }
1563
- ],
1564
- item: [
1565
- {
1566
- linkId: '1',
1567
- text: 'Page 1',
1568
- type: 'group',
1569
- extension: [
1570
- {
1571
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
1572
- valueCodeableConcept: {
1573
- coding: [
1574
- {
1575
- system: 'http://hl7.org/fhir/questionnaire-item-control',
1576
- code: 'page',
1577
- display: 'Page'
1578
- }
1579
- ],
1580
- text: 'Page'
1581
- }
1582
- }
1583
- ],
1584
- item: [
1585
- {
1586
- linkId: 'instruction-use-updated-cvd-risk-calculator',
1587
- _text: {
1588
- extension: [
1589
- {
1590
- url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
1591
- valueString:
1592
- '<div xmlns="http://www.w3.org/1999/xhtml">\r\n<p style="font-weight: 500;">This risk assessment is recommended for the following individuals without known atherosclerotic cardiovascular disease:</></p>\r\n' +
1593
- '<ul style="color: #546E7A; font-size: 14px">\n' +
1594
- ' <li>All people aged 45-79 years</li>\n' +
1595
- ' <li>People with diabetes aged 35-79 years</li>\n' +
1596
- ' <li>First Nations people aged 30-79 years (assess individual risk factors 18-29 years)</li>\n' +
1597
- '</ul>\n\r\n</div>'
1598
- }
1599
- ]
1600
- },
1601
- text: 'NOTE: The Australian guideline for assessing and managing cardiovascular disease risk recommends the use of the online Australian CVD risk calculator (https://www.cvdcheck.org.au/calculator). The calculator below should only be used for technology demonstration purposes.',
1602
- type: 'display',
1603
- repeats: false
1604
- },
1605
- {
1606
- linkId: 'clinically-determined-high-risk-group',
1607
- type: 'group',
1608
- repeats: false,
1609
- required: true,
1610
- text: 'Clinically determined high risk',
1611
- item: [
1612
- {
1613
- linkId: 'high-risk-info',
1614
- type: 'display',
1615
- repeats: false,
1616
- _text: {
1617
- extension: [
1618
- {
1619
- url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
1620
- valueString:
1621
- '<div xmlns="http://www.w3.org/1999/xhtml">\r\n<p style="color: #546E7A; font-size: 14px">Clinical conditions that automatically confer high risk. If either of these apply, you will be redirected to management for high risk category.</></p>\r\n'
1622
- }
1623
- ]
1624
- },
1625
- text: 'Clinical conditions that automatically confer high risk. If either of these apply, you will be redirected to management for high risk category.'
1626
- },
1627
- {
1628
- linkId: 'moderate-severe-chronic-kidney-disease',
1629
- type: 'boolean',
1630
- repeats: false,
1631
- text: 'Moderate-severe chronic kidney disease',
1632
- enableWhen: [
1633
- {
1634
- question: 'neither-present',
1635
- operator: '!=',
1636
- answerBoolean: true
1637
- }
1638
- ],
1639
- item: [
1640
- {
1641
- extension: [
1642
- {
1643
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
1644
- valueCodeableConcept: {
1645
- coding: [
1646
- {
1647
- system: 'http://hl7.org/fhir/questionnaire-item-control',
1648
- code: 'flyover'
1649
- }
1650
- ]
1651
- }
1652
- }
1653
- ],
1654
- linkId: 'moderate-severe-chronic-kidney-disease-flyover',
1655
- text:
1656
- 'People with moderate-to-severe chronic kidney disease are automatically considered to be at high risk of CVD. This includes people with any of the following:\n' +
1657
- '\n' +
1658
- ' sustained eGFR <45 mL/min/1.73 m²\n' +
1659
- ' persistent uACR >25 mg/mmol (men) or persistent uACR >35 mg/mmol(women)',
1660
- type: 'display'
1661
- }
1662
- ]
1663
- },
1664
- {
1665
- linkId: 'familial-hypercholesterolaemia',
1666
- type: 'boolean',
1667
- repeats: false,
1668
- text: 'Familial hypercholesterolaemia',
1669
- enableWhen: [
1670
- {
1671
- question: 'neither-present',
1672
- operator: '!=',
1673
- answerBoolean: true
1674
- }
1675
- ],
1676
- item: [
1677
- {
1678
- extension: [
1679
- {
1680
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
1681
- valueCodeableConcept: {
1682
- coding: [
1683
- {
1684
- system: 'http://hl7.org/fhir/questionnaire-item-control',
1685
- code: 'flyover'
1686
- }
1687
- ]
1688
- }
1689
- }
1690
- ],
1691
- linkId: 'familial-hypercholesterolaemia-flyover',
1692
- text: 'People with diagnosed familial hypercholesterolaemia (FH) are automatically considered to be at high risk of CVD. Treat according to Australian guidelines for managing FH. FH-specific calculators may be useful.',
1693
- type: 'display'
1694
- }
1695
- ]
1696
- },
1697
- {
1698
- linkId: 'neither-present',
1699
- type: 'boolean',
1700
- repeats: false,
1701
- text: 'Neither present',
1702
- enableWhen: [
1703
- {
1704
- question: 'moderate-severe-chronic-kidney-disease',
1705
- operator: '!=',
1706
- answerBoolean: true
1707
- },
1708
- {
1709
- question: 'familial-hypercholesterolaemia',
1710
- operator: '!=',
1711
- answerBoolean: true
1712
- }
1713
- ]
1714
- }
1715
- ]
1716
- },
1717
- {
1718
- extension: [
1719
- {
1720
- url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression',
1721
- valueExpression: {
1722
- language: 'text/fhirpath',
1723
- expression:
1724
- 'iif(today().toString().select(substring(5,2) & substring(8,2)).toInteger() > %patient.birthDate.toString().select(substring(5,2) & substring(8,2)).toInteger(), today().toString().substring(0,4).toInteger() - %patient.birthDate.toString().substring(0,4).toInteger(), today().toString().substring(0,4).toInteger() - %patient.birthDate.toString().substring(0,4).toInteger() - 1)'
1725
- }
1726
- },
1727
- {
1728
- url: 'http://hl7.org/fhir/StructureDefinition/entryFormat',
1729
- valueString: 'Enter age 30-79'
1730
- },
1731
- {
1732
- url: 'http://hl7.org/fhir/StructureDefinition/minValue',
1733
- valueInteger: 30
1734
- },
1735
- {
1736
- url: 'http://hl7.org/fhir/StructureDefinition/maxValue',
1737
- valueInteger: 79
1738
- }
1739
- ],
1740
- linkId: 'patient-age',
1741
- text: 'Age',
1742
- type: 'integer',
1743
- repeats: false,
1744
- required: true,
1745
- item: [
1746
- {
1747
- extension: [
1748
- {
1749
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
1750
- valueCodeableConcept: {
1751
- coding: [
1752
- {
1753
- system: 'http://hl7.org/fhir/questionnaire-item-control',
1754
- code: 'flyover'
1755
- }
1756
- ]
1757
- }
1758
- }
1759
- ],
1760
- linkId: 'patient-age-flyover',
1761
- text: 'People with diagnosed familial hypercholesterolaemia (FH) are automatically considered to be at high risk of CVD. Treat according to Australian guidelines for managing FH. FH-specific calculators may be useful.',
1762
- type: 'display'
1763
- },
1764
- {
1765
- extension: [
1766
- {
1767
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
1768
- valueCodeableConcept: {
1769
- coding: [
1770
- {
1771
- system: 'http://hl7.org/fhir/questionnaire-item-control',
1772
- code: 'unit'
1773
- }
1774
- ]
1775
- }
1776
- }
1777
- ],
1778
- linkId: 'patient-age-unit',
1779
- text: 'Years',
1780
- type: 'display'
1781
- }
1782
- ]
1783
- },
1784
- {
1785
- extension: [
1786
- {
1787
- url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression',
1788
- valueExpression: {
1789
- language: 'text/fhirpath',
1790
- expression: '%patient.gender'
1791
- }
1792
- },
1793
- {
1794
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
1795
- valueCodeableConcept: {
1796
- coding: [
1797
- {
1798
- system: 'http://hl7.org/fhir/questionnaire-item-control',
1799
- code: 'radio-button'
1800
- }
1801
- ]
1802
- }
1803
- },
1804
- {
1805
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation',
1806
- valueCode: 'horizontal'
1807
- }
1808
- ],
1809
- linkId: 'gender',
1810
- text: 'Sex at birth',
1811
- type: 'choice',
1812
- repeats: false,
1813
- required: true,
1814
- answerOption: [
1815
- {
1816
- valueCoding: {
1817
- system: 'http://snomed.info/sct',
1818
- code: '248152002',
1819
- display: 'Female'
1820
- }
1821
- },
1822
- {
1823
- valueCoding: {
1824
- system: 'http://snomed.info/sct',
1825
- code: '248153007',
1826
- display: 'Male'
1827
- }
1828
- }
1829
- // 32570681000036106 Indeterminate sex http://snomed.info/sct
1830
- // 32570691000036108 Intersex http://snomed.info/sct
1831
- ],
1832
- item: [
1833
- {
1834
- extension: [
1835
- {
1836
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
1837
- valueCodeableConcept: {
1838
- coding: [
1839
- {
1840
- system: 'http://hl7.org/fhir/questionnaire-item-control',
1841
- code: 'flyover'
1842
- }
1843
- ]
1844
- }
1845
- }
1846
- ],
1847
- linkId: 'gender-flyover',
1848
- text: 'There is currently insufficient data to stratify risk for people who are intersex or non-binary sex.',
1849
- type: 'display'
1850
- }
1851
- ]
1852
- },
1853
- {
1854
- extension: [
1855
- {
1856
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
1857
- valueCodeableConcept: {
1858
- coding: [
1859
- {
1860
- system: 'http://hl7.org/fhir/questionnaire-item-control',
1861
- code: 'radio-button'
1862
- }
1863
- ]
1864
- }
1865
- }
1866
- ],
1867
- linkId: 'smoking-status',
1868
- text: 'Smoking status',
1869
- type: 'choice',
1870
- repeats: false,
1871
- required: true,
1872
- answerOption: [
1873
- {
1874
- valueCoding: {
1875
- system: 'http://snomed.info/sct',
1876
- code: '266919005',
1877
- display: 'Never smoked'
1878
- }
1879
- },
1880
- {
1881
- valueCoding: {
1882
- system: 'http://snomed.info/sct',
1883
- code: '77176002',
1884
- display: 'Smoker'
1885
- }
1886
- },
1887
- {
1888
- valueCoding: {
1889
- system: 'http://snomed.info/sct',
1890
- code: '8517006',
1891
- display: 'Ex-Smoker'
1892
- }
1893
- },
1894
- {
1895
- valueCoding: {
1896
- system: 'http://snomed.info/sct',
1897
- code: '16090371000119103',
1898
- display: 'Environmental exposure to tobacco smoke (home, car, etc)'
1899
- }
1900
- },
1901
- {
1902
- valueString: 'Wants to quit'
1903
- },
1904
- {
1905
- valueString: 'Other tobacco use'
1906
- }
1907
- ]
1908
- },
1909
- {
1910
- extension: [
1911
- {
1912
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
1913
- valueCoding: {
1914
- system: 'http://unitsofmeasure.org',
1915
- code: 'mm[Hg]',
1916
- display: 'mm Hg'
1917
- }
1918
- },
1919
- {
1920
- url: 'http://hl7.org/fhir/StructureDefinition/entryFormat',
1921
- valueString: 'SBP'
1922
- }
1923
- ],
1924
- linkId: 'systolic-blood-pressure',
1925
- text: 'Systolic Blood Pressure',
1926
- type: 'decimal',
1927
- required: true,
1928
- item: [
1929
- {
1930
- extension: [
1931
- {
1932
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
1933
- valueCodeableConcept: {
1934
- coding: [
1935
- {
1936
- system: 'http://hl7.org/fhir/questionnaire-item-control',
1937
- code: 'flyover'
1938
- }
1939
- ]
1940
- }
1941
- }
1942
- ],
1943
- linkId: 'systolic-blood-pressure-flyover',
1944
- text: 'Use the average of the last two seated, in-clinic BP measurements. Convert home and ambulatory blood pressure readings to in-clinic equivalents before entering into calculator.',
1945
- type: 'display'
1946
- }
1947
- ]
1948
- },
1949
- {
1950
- linkId: 'ratio-tbd',
1951
- _text: {
1952
- extension: [
1953
- {
1954
- url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
1955
- valueString:
1956
- '<div xmlns="http://www.w3.org/1999/xhtml">\r\n<p style="font-weight: 500; margin: 0 0 8px 0;">Ratio of total cholesterol to HDL cholesterol: TBD</></p></div>'
1957
- }
1958
- ]
1959
- },
1960
- text: 'Ratio of total cholesterol to HDL cholesterol TBD',
1961
- type: 'display',
1962
- required: true,
1963
- repeats: false
1964
- },
1965
- {
1966
- linkId: 'use-of-cvd-meds-group',
1967
- type: 'group',
1968
- repeats: false,
1969
- required: true,
1970
- text: 'Use of CVD medicines within last 6 months',
1971
- item: [
1972
- {
1973
- linkId: 'bp-lowering-meds',
1974
- type: 'boolean',
1975
- repeats: false,
1976
- text: 'Blood pressure-lowering medicines',
1977
- enableWhen: [
1978
- {
1979
- question: 'use-of-cvd-meds-none',
1980
- operator: '!=',
1981
- answerBoolean: true
1982
- }
1983
- ],
1984
- item: [
1985
- {
1986
- extension: [
1987
- {
1988
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
1989
- valueCodeableConcept: {
1990
- coding: [
1991
- {
1992
- system: 'http://hl7.org/fhir/questionnaire-item-control',
1993
- code: 'flyover'
1994
- }
1995
- ]
1996
- }
1997
- }
1998
- ],
1999
- linkId: 'bp-lowering-meds-flyover',
2000
- text: 'Blood pressure lowering medicines include: angiotensin converting enzyme inhibitors, betablockers, thiazide, angiotensin II receptor blockers and calcium channel blockers.',
2001
- type: 'display'
2002
- }
2003
- ]
2004
- },
2005
- {
2006
- linkId: 'lipid-modifying-medicines',
2007
- type: 'boolean',
2008
- repeats: false,
2009
- text: 'Lipid-modifying medicines',
2010
- enableWhen: [
2011
- {
2012
- question: 'use-of-cvd-meds-none',
2013
- operator: '!=',
2014
- answerBoolean: true
2015
- }
2016
- ],
2017
- item: [
2018
- {
2019
- extension: [
2020
- {
2021
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
2022
- valueCodeableConcept: {
2023
- coding: [
2024
- {
2025
- system: 'http://hl7.org/fhir/questionnaire-item-control',
2026
- code: 'flyover'
2027
- }
2028
- ]
2029
- }
2030
- }
2031
- ],
2032
- linkId: 'lipid-modifying-medicines-flyover',
2033
- text: 'Lipid-modifying medicines include: atorvastatin, fluvastatin, pravastatin, simvastatin, acipimox, bezafibrate, cholestyramine, clofibrate, colestipol, ezetimibe, ezetimibe + simvastatin, gemfibrozil and nicotinic acid.',
2034
- type: 'display'
2035
- }
2036
- ]
2037
- },
2038
- {
2039
- linkId: 'antithrombotic-medicines',
2040
- type: 'boolean',
2041
- repeats: false,
2042
- text: 'Antithrombotic medicines',
2043
- enableWhen: [
2044
- {
2045
- question: 'use-of-cvd-meds-none',
2046
- operator: '!=',
2047
- answerBoolean: true
2048
- }
2049
- ],
2050
- item: [
2051
- {
2052
- extension: [
2053
- {
2054
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
2055
- valueCodeableConcept: {
2056
- coding: [
2057
- {
2058
- system: 'http://hl7.org/fhir/questionnaire-item-control',
2059
- code: 'flyover'
2060
- }
2061
- ]
2062
- }
2063
- }
2064
- ],
2065
- linkId: 'antithrombotic-medicines-flyover',
2066
- text: 'Antithrombotic medicines include: aspirin, clopidogrel, dipyridamole, prasugrel, ticagrelor, ticlopidine, warfarin, dabigatran, phenindione, rivaroxaban and apixaban.',
2067
- type: 'display'
2068
- }
2069
- ]
2070
- },
2071
- {
2072
- linkId: 'use-of-cvd-meds-none',
2073
- type: 'boolean',
2074
- repeats: false,
2075
- text: 'None',
2076
- enableWhen: [
2077
- {
2078
- question: 'bp-lowering-meds',
2079
- operator: '!=',
2080
- answerBoolean: true
2081
- },
2082
- {
2083
- question: 'lipid-modifying-medicines',
2084
- operator: '!=',
2085
- answerBoolean: true
2086
- },
2087
- {
2088
- question: 'antithrombotic-medicines',
2089
- operator: '!=',
2090
- answerBoolean: true
2091
- }
2092
- ]
2093
- }
2094
- ]
2095
- },
2096
- {
2097
- linkId: 'history-of-atrial-fibrillation',
2098
- type: 'boolean',
2099
- repeats: false,
2100
- text: 'History of atrial fibrillation',
2101
- item: [
2102
- {
2103
- extension: [
2104
- {
2105
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
2106
- valueCodeableConcept: {
2107
- coding: [
2108
- {
2109
- system: 'http://hl7.org/fhir/questionnaire-item-control',
2110
- code: 'flyover'
2111
- }
2112
- ]
2113
- }
2114
- }
2115
- ],
2116
- linkId: 'history-of-atrial-fibrillation-flyover',
2117
- text: 'Known history of electrocardiogram (ECG) confirmed atrial fibrillation. Includes both paroxysmal and persistent AF. CHA2DS2-VASc score is recommended for predicting stroke risk in AF. Calculator will default to no history of AF.',
2118
- type: 'display'
2119
- }
2120
- ]
2121
- },
2122
- {
2123
- extension: [
2124
- {
2125
- url: 'http://hl7.org/fhir/StructureDefinition/regex',
2126
- valueString: "matches('^[0-9]{4}$')"
2127
- },
2128
- {
2129
- url: 'http://hl7.org/fhir/StructureDefinition/entryFormat',
2130
- valueString: 'Enter postcode to generate SEIFA quintile'
2131
- }
2132
- ],
2133
- linkId: 'postcode',
2134
- text: 'Postcode',
2135
- type: 'string',
2136
- repeats: false,
2137
- item: [
2138
- {
2139
- extension: [
2140
- {
2141
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
2142
- valueCodeableConcept: {
2143
- coding: [
2144
- {
2145
- system: 'http://hl7.org/fhir/questionnaire-item-control',
2146
- code: 'flyover'
2147
- }
2148
- ]
2149
- }
2150
- }
2151
- ],
2152
- linkId: 'history-of-atrial-fibrillation-flyover',
2153
- text: "Info The Aus CVD risk calculator uses Socio-Economic Indexes for Areas (SEIFA) quintiles obtained from residential postcodes as a measure of socioeconomic status. CVD risk varies according to socioeconomic status, with greater disadvantage associated with higher incidences of primary and secondary cardiovascular events. SEIFA is a population-level summary measure that reflects determinants such as education, housing, employment and income. Since SEIFA is an average based on postcode, it may not accurately reflect the socioeconomic status of all individuals within that postcode. If the person has a level of disadvantage that differs markedly from their postcode, their socioeconomic quintile can be manually adjusted up or down at the clinician's discretion, which may change the person’s risk score.",
2154
- type: 'display'
2155
- }
2156
- ]
2157
- },
2158
- {
2159
- linkId: 'diabetes',
2160
- type: 'boolean',
2161
- repeats: false,
2162
- required: true,
2163
- text: 'Diabetes',
2164
- item: [
2165
- {
2166
- extension: [
2167
- {
2168
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
2169
- valueCodeableConcept: {
2170
- coding: [
2171
- {
2172
- system: 'http://hl7.org/fhir/questionnaire-item-control',
2173
- code: 'flyover'
2174
- }
2175
- ]
2176
- }
2177
- }
2178
- ],
2179
- linkId: 'history-of-atrial-fibrillation-flyover',
2180
- text: 'The risk equation is not validated for type 1 diabetes. Using the Aus CVD risk calculator in people with type 1 diabetes is likely to give an inaccurate risk score.',
2181
- type: 'display'
2182
- }
2183
- ]
2184
- },
2185
- {
2186
- linkId: 'risk-percentage',
2187
- text: 'Risk percentage',
2188
- type: 'integer',
2189
- repeats: false,
2190
- readOnly: true,
2191
- item: [
2192
- {
2193
- extension: [
2194
- {
2195
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
2196
- valueCodeableConcept: {
2197
- coding: [
2198
- {
2199
- system: 'http://hl7.org/fhir/questionnaire-item-control',
2200
- code: 'unit'
2201
- }
2202
- ]
2203
- }
2204
- }
2205
- ],
2206
- linkId: 'risk-percentage-unit',
2207
- text: '%',
2208
- type: 'display'
2209
- }
2210
- ]
2211
- }
2212
- ]
2213
- },
2214
- {
2215
- linkId: '2',
2216
- text: 'Page 2',
2217
- type: 'group',
2218
- extension: [
2219
- {
2220
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
2221
- valueCodeableConcept: {
2222
- coding: [
2223
- {
2224
- system: 'http://hl7.org/fhir/questionnaire-item-control',
2225
- code: 'page',
2226
- display: 'Page'
2227
- }
2228
- ],
2229
- text: 'Page'
2230
- }
2231
- }
2232
- ],
2233
- item: [
2234
- {
2235
- linkId: 'reclassify-down',
2236
- type: 'group',
2237
- repeats: false,
2238
- required: true,
2239
- text: 'Consider reclassifying down a category if',
2240
- item: [
2241
- {
2242
- linkId: 'coronary-artery-calcium-score-of-0',
2243
- type: 'boolean',
2244
- repeats: false,
2245
- text: 'Coronary artery calcium score of 0',
2246
- item: [
2247
- {
2248
- extension: [
2249
- {
2250
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
2251
- valueCodeableConcept: {
2252
- coding: [
2253
- {
2254
- system: 'http://hl7.org/fhir/questionnaire-item-control',
2255
- code: 'flyover'
2256
- }
2257
- ]
2258
- }
2259
- }
2260
- ],
2261
- linkId: 'moderate-severe-chronic-kidney-disease-flyover',
2262
- text:
2263
- 'People with moderate-to-severe chronic kidney disease are automatically considered to be at high risk of CVD. This includes people with any of the following:\n' +
2264
- '\n' +
2265
- ' sustained eGFR <45 mL/min/1.73 m²\n' +
2266
- ' persistent uACR >25 mg/mmol (men) or persistent uACR >35 mg/mmol(women)',
2267
- type: 'display'
2268
- }
2269
- ]
2270
- },
2271
- {
2272
- linkId: 'east-asian-ethnicity',
2273
- type: 'boolean',
2274
- repeats: false,
2275
- text: 'East Asian ethnicity (Chinese, Japanese, Korean, Taiwanese, or Mongolian ethnicities)',
2276
- item: [
2277
- {
2278
- extension: [
2279
- {
2280
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
2281
- valueCodeableConcept: {
2282
- coding: [
2283
- {
2284
- system: 'http://hl7.org/fhir/questionnaire-item-control',
2285
- code: 'flyover'
2286
- }
2287
- ]
2288
- }
2289
- }
2290
- ],
2291
- linkId: 'familial-hypercholesterolaemia-flyover',
2292
- text: 'People with diagnosed familial hypercholesterolaemia (FH) are automatically considered to be at high risk of CVD. Treat according to Australian guidelines for managing FH. FH-specific calculators may be useful.',
2293
- type: 'display'
2294
- }
2295
- ]
2296
- }
2297
- ]
2298
- }
2299
- ]
2300
- }
2301
- ]
2302
- };
@@ -18,7 +18,6 @@
18
18
  import type { Meta, StoryObj } from '@storybook/react';
19
19
  import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
20
20
  import {
21
- QAusCVDRisk,
22
21
  qItemControlDisplayTabContainer,
23
22
  qItemControlGroupGridMultiRow,
24
23
  qItemControlGroupGridSingleRow,
@@ -89,9 +88,3 @@ export const PageContainerNonSingleTopLevel: Story = {
89
88
  questionnaire: qItemControlGroupPageNonTopLevelPageContainer
90
89
  }
91
90
  };
92
-
93
- export const PageQAusCVDRisk: Story = {
94
- args: {
95
- questionnaire: QAusCVDRisk
96
- }
97
- };