@imranq2/fhirpatientsummary 1.0.21 → 1.0.22
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.
- package/dist/index.cjs +9 -2
- package/dist/index.js +9 -2
- package/package.json +21 -20
package/dist/index.cjs
CHANGED
|
@@ -152,6 +152,11 @@ var IPSSectionResourceHelper = class {
|
|
|
152
152
|
static getResourceFilterForSection(section) {
|
|
153
153
|
return IPSSectionResourceFilters[section];
|
|
154
154
|
}
|
|
155
|
+
static getSectionResources(section, resources) {
|
|
156
|
+
const filter = IPSSectionResourceFilters[section];
|
|
157
|
+
if (!filter) return [];
|
|
158
|
+
return resources.filter(filter);
|
|
159
|
+
}
|
|
155
160
|
static getSummaryCompositionFilterForSection(section) {
|
|
156
161
|
return IPSSectionSummaryCompositionFilter[section];
|
|
157
162
|
}
|
|
@@ -331,7 +336,7 @@ var TemplateUtilities = class {
|
|
|
331
336
|
* @returns Formatted date string (date only, no time component)
|
|
332
337
|
*/
|
|
333
338
|
renderDate(date) {
|
|
334
|
-
return this.formatDateTime(date,
|
|
339
|
+
return this.formatDateTime(date, "UTC", true);
|
|
335
340
|
}
|
|
336
341
|
/**
|
|
337
342
|
* Renders a recorded date
|
|
@@ -855,7 +860,9 @@ var TemplateUtilities = class {
|
|
|
855
860
|
if (!dateTime.isValid) {
|
|
856
861
|
return String(dateValue);
|
|
857
862
|
}
|
|
858
|
-
if (
|
|
863
|
+
if (dateOnly) {
|
|
864
|
+
dateTime = dateTime.toUTC();
|
|
865
|
+
} else if (timezone) {
|
|
859
866
|
dateTime = dateTime.toUTC().setZone(timezone);
|
|
860
867
|
}
|
|
861
868
|
const formatOptions = dateOnly ? { year: "numeric", month: "2-digit", day: "2-digit" } : {
|
package/dist/index.js
CHANGED
|
@@ -124,6 +124,11 @@ var IPSSectionResourceHelper = class {
|
|
|
124
124
|
static getResourceFilterForSection(section) {
|
|
125
125
|
return IPSSectionResourceFilters[section];
|
|
126
126
|
}
|
|
127
|
+
static getSectionResources(section, resources) {
|
|
128
|
+
const filter = IPSSectionResourceFilters[section];
|
|
129
|
+
if (!filter) return [];
|
|
130
|
+
return resources.filter(filter);
|
|
131
|
+
}
|
|
127
132
|
static getSummaryCompositionFilterForSection(section) {
|
|
128
133
|
return IPSSectionSummaryCompositionFilter[section];
|
|
129
134
|
}
|
|
@@ -303,7 +308,7 @@ var TemplateUtilities = class {
|
|
|
303
308
|
* @returns Formatted date string (date only, no time component)
|
|
304
309
|
*/
|
|
305
310
|
renderDate(date) {
|
|
306
|
-
return this.formatDateTime(date,
|
|
311
|
+
return this.formatDateTime(date, "UTC", true);
|
|
307
312
|
}
|
|
308
313
|
/**
|
|
309
314
|
* Renders a recorded date
|
|
@@ -827,7 +832,9 @@ var TemplateUtilities = class {
|
|
|
827
832
|
if (!dateTime.isValid) {
|
|
828
833
|
return String(dateValue);
|
|
829
834
|
}
|
|
830
|
-
if (
|
|
835
|
+
if (dateOnly) {
|
|
836
|
+
dateTime = dateTime.toUTC();
|
|
837
|
+
} else if (timezone) {
|
|
831
838
|
dateTime = dateTime.toUTC().setZone(timezone);
|
|
832
839
|
}
|
|
833
840
|
const formatOptions = dateOnly ? { year: "numeric", month: "2-digit", day: "2-digit" } : {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imranq2/fhirpatientsummary",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"description": "A template for creating npm packages using TypeScript and VSCode",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"prebuild": "npm run clean:dist",
|
|
29
29
|
"pretest": "npm run clean:coverage",
|
|
30
30
|
"cm": "cz",
|
|
31
|
-
"lint": "eslint ./src/ --ext .ts --fix",
|
|
31
|
+
"lint": "eslint ./src/ ./tests/ --ext .ts --fix",
|
|
32
32
|
"prepare": "husky",
|
|
33
33
|
"semantic-release": "semantic-release",
|
|
34
34
|
"test:watch": "jest --watch",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"typecheck": "tsc --noEmit",
|
|
37
37
|
"check:cjs-import": "node tests/build/cjs-import-check.cjs",
|
|
38
38
|
"check:esm-import": "node --experimental-vm-modules tests/build/esm-import-check.mjs",
|
|
39
|
-
"check:ts-import": "ts-node --project tsconfig.json tests/build/ts-import-check.ts"
|
|
39
|
+
"check:ts-import": "ts-node --project tsconfig.json tests/build/ts-import-check.ts",
|
|
40
|
+
"split:bundle": "node tests/full_record/split_bundle.cjs"
|
|
40
41
|
},
|
|
41
42
|
"repository": {
|
|
42
43
|
"type": "git",
|
|
@@ -68,34 +69,34 @@
|
|
|
68
69
|
"homepage": "https://github.com/icanbwell/fhir-patient-summary#readme",
|
|
69
70
|
"dependencies": {
|
|
70
71
|
"html-minifier-terser": "^7.2.0",
|
|
71
|
-
"luxon": "^3.
|
|
72
|
-
"turndown": "^7.2.
|
|
72
|
+
"luxon": "^3.7.2",
|
|
73
|
+
"turndown": "^7.2.2"
|
|
73
74
|
},
|
|
74
75
|
"devDependencies": {
|
|
75
|
-
"@eslint/js": "^9.
|
|
76
|
+
"@eslint/js": "^9.39.1",
|
|
76
77
|
"@types/html-minifier-terser": "^7.0.2",
|
|
77
78
|
"@types/jest": "^30.0.0",
|
|
78
79
|
"@types/js-beautify": "^1.14.3",
|
|
79
|
-
"@types/luxon": "^3.
|
|
80
|
-
"@types/node": "^24.
|
|
81
|
-
"@types/turndown": "^5.0.
|
|
80
|
+
"@types/luxon": "^3.7.1",
|
|
81
|
+
"@types/node": "^24.10.1",
|
|
82
|
+
"@types/turndown": "^5.0.6",
|
|
82
83
|
"commitizen": "^4.3.1",
|
|
83
|
-
"conventional-changelog-conventionalcommits": "^
|
|
84
|
-
"eslint": "^9.
|
|
85
|
-
"eslint-config-prettier": "^10.1.
|
|
84
|
+
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
85
|
+
"eslint": "^9.39.1",
|
|
86
|
+
"eslint-config-prettier": "^10.1.8",
|
|
86
87
|
"eslint-plugin-node": "^11.1.0",
|
|
87
|
-
"eslint-plugin-prettier": "^5.5.
|
|
88
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
88
89
|
"husky": "^9.1.7",
|
|
89
|
-
"jest": "^30.
|
|
90
|
+
"jest": "^30.2.0",
|
|
90
91
|
"js-beautify": "^1.15.4",
|
|
91
|
-
"lint-staged": "^16.
|
|
92
|
-
"prettier": "^3.
|
|
93
|
-
"semantic-release": "^
|
|
94
|
-
"ts-jest": "^29.4.
|
|
92
|
+
"lint-staged": "^16.2.7",
|
|
93
|
+
"prettier": "^3.7.4",
|
|
94
|
+
"semantic-release": "^25.0.2",
|
|
95
|
+
"ts-jest": "^29.4.6",
|
|
95
96
|
"ts-node": "^10.9.2",
|
|
96
97
|
"tsup": "8.5.1",
|
|
97
|
-
"typescript": "^5.
|
|
98
|
-
"typescript-eslint": "^8.
|
|
98
|
+
"typescript": "^5.9.3",
|
|
99
|
+
"typescript-eslint": "^8.48.1"
|
|
99
100
|
},
|
|
100
101
|
"lint-staged": {
|
|
101
102
|
"src/**/*.{ts,js}": "eslint --cache --cache-location .eslintcache --fix",
|