@claudebernard/fhir-prescription-mocks 2.3.1 → 2.4.1

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/README.md CHANGED
@@ -38,6 +38,7 @@ expect(myValidator.validate(patientComplete)).toBe(true);
38
38
  | `patientRenalCreatinineClearance` | Renal patient — creatinine clearance observation |
39
39
  | `patientRenalGfrAbsolute` | Renal patient — absolute GFR observation |
40
40
  | `patientRenalGfrNormalized` | Renal patient — normalized GFR observation |
41
+ | `patientUnderweightPastObservation` | Underweight patient with a past observation |
41
42
 
42
43
  ### Prescription bundles
43
44
 
package/dist/index.d.mts CHANGED
@@ -7,6 +7,7 @@ declare const patientPediatric: Bundle;
7
7
  declare const patientRenalCreatinineClearance: Bundle;
8
8
  declare const patientRenalGfrAbsolute: Bundle;
9
9
  declare const patientRenalGfrNormalized: Bundle;
10
+ declare const patientUnderweightPastObservation: Bundle;
10
11
  declare const prescriptionComplete: Bundle;
11
12
  declare const prescriptionWithAlternative: Bundle;
12
13
  declare const prescriptionSingleMedication: Bundle;
@@ -14,4 +15,4 @@ declare const prescriptionWithDocumentReference: Bundle;
14
15
  declare const prescriptionPosology: Bundle;
15
16
  declare const automedicationComplete: Bundle;
16
17
 
17
- export { automedicationComplete, patientComplete, patientMinimal, patientMultipleConditions, patientPediatric, patientRenalCreatinineClearance, patientRenalGfrAbsolute, patientRenalGfrNormalized, prescriptionComplete, prescriptionPosology, prescriptionSingleMedication, prescriptionWithAlternative, prescriptionWithDocumentReference };
18
+ export { automedicationComplete, patientComplete, patientMinimal, patientMultipleConditions, patientPediatric, patientRenalCreatinineClearance, patientRenalGfrAbsolute, patientRenalGfrNormalized, patientUnderweightPastObservation, prescriptionComplete, prescriptionPosology, prescriptionSingleMedication, prescriptionWithAlternative, prescriptionWithDocumentReference };
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ declare const patientPediatric: Bundle;
7
7
  declare const patientRenalCreatinineClearance: Bundle;
8
8
  declare const patientRenalGfrAbsolute: Bundle;
9
9
  declare const patientRenalGfrNormalized: Bundle;
10
+ declare const patientUnderweightPastObservation: Bundle;
10
11
  declare const prescriptionComplete: Bundle;
11
12
  declare const prescriptionWithAlternative: Bundle;
12
13
  declare const prescriptionSingleMedication: Bundle;
@@ -14,4 +15,4 @@ declare const prescriptionWithDocumentReference: Bundle;
14
15
  declare const prescriptionPosology: Bundle;
15
16
  declare const automedicationComplete: Bundle;
16
17
 
17
- export { automedicationComplete, patientComplete, patientMinimal, patientMultipleConditions, patientPediatric, patientRenalCreatinineClearance, patientRenalGfrAbsolute, patientRenalGfrNormalized, prescriptionComplete, prescriptionPosology, prescriptionSingleMedication, prescriptionWithAlternative, prescriptionWithDocumentReference };
18
+ export { automedicationComplete, patientComplete, patientMinimal, patientMultipleConditions, patientPediatric, patientRenalCreatinineClearance, patientRenalGfrAbsolute, patientRenalGfrNormalized, patientUnderweightPastObservation, prescriptionComplete, prescriptionPosology, prescriptionSingleMedication, prescriptionWithAlternative, prescriptionWithDocumentReference };
package/dist/index.js CHANGED
@@ -28,6 +28,7 @@ __export(index_exports, {
28
28
  patientRenalCreatinineClearance: () => patientRenalCreatinineClearance,
29
29
  patientRenalGfrAbsolute: () => patientRenalGfrAbsolute,
30
30
  patientRenalGfrNormalized: () => patientRenalGfrNormalized,
31
+ patientUnderweightPastObservation: () => patientUnderweightPastObservation,
31
32
  prescriptionComplete: () => prescriptionComplete,
32
33
  prescriptionPosology: () => prescriptionPosology,
33
34
  prescriptionSingleMedication: () => prescriptionSingleMedication,
@@ -262,6 +263,7 @@ var patient_complete_default = {
262
263
  subject: {
263
264
  reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
264
265
  },
266
+ effectiveDateTime: "2023-09-09",
265
267
  valueQuantity: {
266
268
  value: 45,
267
269
  unit: "mL/min/1.73.m2",
@@ -326,6 +328,7 @@ var patient_complete_default = {
326
328
  subject: {
327
329
  reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
328
330
  },
331
+ effectiveDateTime: "2023-09-09",
329
332
  valueQuantity: {
330
333
  value: 84,
331
334
  unit: "kg",
@@ -353,6 +356,7 @@ var patient_complete_default = {
353
356
  subject: {
354
357
  reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
355
358
  },
359
+ effectiveDateTime: "2023-09-09",
356
360
  valueQuantity: {
357
361
  value: 170,
358
362
  unit: "cm",
@@ -1163,6 +1167,60 @@ var patient_renal_gfr_normalized_default = {
1163
1167
  ]
1164
1168
  };
1165
1169
 
1170
+ // ../data/bundle/patient-underweight-past-observation.json
1171
+ var patient_underweight_past_observation_default = {
1172
+ resourceType: "Bundle",
1173
+ id: "1f914f97-dfc9-4c57-9a33-7505f6f5f041",
1174
+ type: "collection",
1175
+ entry: [
1176
+ {
1177
+ fullUrl: "Patient/1f914f97-dfc9-4c57-9a33-7505f6f5f041",
1178
+ resource: {
1179
+ resourceType: "Patient",
1180
+ id: "1f914f97-dfc9-4c57-9a33-7505f6f5f041",
1181
+ gender: "female",
1182
+ birthDate: "2018-03-14",
1183
+ name: [
1184
+ {
1185
+ family: "Dupont",
1186
+ given: [
1187
+ "Jeanne"
1188
+ ]
1189
+ }
1190
+ ]
1191
+ }
1192
+ },
1193
+ {
1194
+ fullUrl: "Observation/e7fbe958-22fb-4d34-ab23-559478142b26",
1195
+ resource: {
1196
+ resourceType: "Observation",
1197
+ id: "e7fbe958-22fb-4d34-ab23-559478142b26",
1198
+ status: "final",
1199
+ code: {
1200
+ coding: [
1201
+ {
1202
+ system: "http://loinc.org",
1203
+ code: "29463-7",
1204
+ display: "Body weight"
1205
+ }
1206
+ ],
1207
+ text: "Poids corporel"
1208
+ },
1209
+ subject: {
1210
+ reference: "Patient/1f914f97-dfc9-4c57-9a33-7505f6f5f041"
1211
+ },
1212
+ effectiveDateTime: "2023-09-09",
1213
+ valueQuantity: {
1214
+ value: 28,
1215
+ unit: "kg",
1216
+ system: "http://unitsofmeasure.org",
1217
+ code: "kg"
1218
+ }
1219
+ }
1220
+ }
1221
+ ]
1222
+ };
1223
+
1166
1224
  // ../data/bundle/prescription-complete.json
1167
1225
  var prescription_complete_default = {
1168
1226
  resourceType: "Bundle",
@@ -3143,6 +3201,7 @@ var patientPediatric = patient_pediatric_default;
3143
3201
  var patientRenalCreatinineClearance = patient_renal_creatinine_clearance_default;
3144
3202
  var patientRenalGfrAbsolute = patient_renal_gfr_absolute_default;
3145
3203
  var patientRenalGfrNormalized = patient_renal_gfr_normalized_default;
3204
+ var patientUnderweightPastObservation = patient_underweight_past_observation_default;
3146
3205
  var prescriptionComplete = prescription_complete_default;
3147
3206
  var prescriptionWithAlternative = prescription_with_alternative_default;
3148
3207
  var prescriptionSingleMedication = prescription_single_medication_default;
@@ -3159,6 +3218,7 @@ var automedicationComplete = automedication_complete_default;
3159
3218
  patientRenalCreatinineClearance,
3160
3219
  patientRenalGfrAbsolute,
3161
3220
  patientRenalGfrNormalized,
3221
+ patientUnderweightPastObservation,
3162
3222
  prescriptionComplete,
3163
3223
  prescriptionPosology,
3164
3224
  prescriptionSingleMedication,
package/dist/index.mjs CHANGED
@@ -224,6 +224,7 @@ var patient_complete_default = {
224
224
  subject: {
225
225
  reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
226
226
  },
227
+ effectiveDateTime: "2023-09-09",
227
228
  valueQuantity: {
228
229
  value: 45,
229
230
  unit: "mL/min/1.73.m2",
@@ -288,6 +289,7 @@ var patient_complete_default = {
288
289
  subject: {
289
290
  reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
290
291
  },
292
+ effectiveDateTime: "2023-09-09",
291
293
  valueQuantity: {
292
294
  value: 84,
293
295
  unit: "kg",
@@ -315,6 +317,7 @@ var patient_complete_default = {
315
317
  subject: {
316
318
  reference: "Patient/a362bb19-6db4-0149-8854-d0230acbb45d"
317
319
  },
320
+ effectiveDateTime: "2023-09-09",
318
321
  valueQuantity: {
319
322
  value: 170,
320
323
  unit: "cm",
@@ -1125,6 +1128,60 @@ var patient_renal_gfr_normalized_default = {
1125
1128
  ]
1126
1129
  };
1127
1130
 
1131
+ // ../data/bundle/patient-underweight-past-observation.json
1132
+ var patient_underweight_past_observation_default = {
1133
+ resourceType: "Bundle",
1134
+ id: "1f914f97-dfc9-4c57-9a33-7505f6f5f041",
1135
+ type: "collection",
1136
+ entry: [
1137
+ {
1138
+ fullUrl: "Patient/1f914f97-dfc9-4c57-9a33-7505f6f5f041",
1139
+ resource: {
1140
+ resourceType: "Patient",
1141
+ id: "1f914f97-dfc9-4c57-9a33-7505f6f5f041",
1142
+ gender: "female",
1143
+ birthDate: "2018-03-14",
1144
+ name: [
1145
+ {
1146
+ family: "Dupont",
1147
+ given: [
1148
+ "Jeanne"
1149
+ ]
1150
+ }
1151
+ ]
1152
+ }
1153
+ },
1154
+ {
1155
+ fullUrl: "Observation/e7fbe958-22fb-4d34-ab23-559478142b26",
1156
+ resource: {
1157
+ resourceType: "Observation",
1158
+ id: "e7fbe958-22fb-4d34-ab23-559478142b26",
1159
+ status: "final",
1160
+ code: {
1161
+ coding: [
1162
+ {
1163
+ system: "http://loinc.org",
1164
+ code: "29463-7",
1165
+ display: "Body weight"
1166
+ }
1167
+ ],
1168
+ text: "Poids corporel"
1169
+ },
1170
+ subject: {
1171
+ reference: "Patient/1f914f97-dfc9-4c57-9a33-7505f6f5f041"
1172
+ },
1173
+ effectiveDateTime: "2023-09-09",
1174
+ valueQuantity: {
1175
+ value: 28,
1176
+ unit: "kg",
1177
+ system: "http://unitsofmeasure.org",
1178
+ code: "kg"
1179
+ }
1180
+ }
1181
+ }
1182
+ ]
1183
+ };
1184
+
1128
1185
  // ../data/bundle/prescription-complete.json
1129
1186
  var prescription_complete_default = {
1130
1187
  resourceType: "Bundle",
@@ -3105,6 +3162,7 @@ var patientPediatric = patient_pediatric_default;
3105
3162
  var patientRenalCreatinineClearance = patient_renal_creatinine_clearance_default;
3106
3163
  var patientRenalGfrAbsolute = patient_renal_gfr_absolute_default;
3107
3164
  var patientRenalGfrNormalized = patient_renal_gfr_normalized_default;
3165
+ var patientUnderweightPastObservation = patient_underweight_past_observation_default;
3108
3166
  var prescriptionComplete = prescription_complete_default;
3109
3167
  var prescriptionWithAlternative = prescription_with_alternative_default;
3110
3168
  var prescriptionSingleMedication = prescription_single_medication_default;
@@ -3120,6 +3178,7 @@ export {
3120
3178
  patientRenalCreatinineClearance,
3121
3179
  patientRenalGfrAbsolute,
3122
3180
  patientRenalGfrNormalized,
3181
+ patientUnderweightPastObservation,
3123
3182
  prescriptionComplete,
3124
3183
  prescriptionPosology,
3125
3184
  prescriptionSingleMedication,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudebernard/fhir-prescription-mocks",
3
- "version": "2.3.1",
3
+ "version": "2.4.1",
4
4
  "description": "FHIR R5 mock data for prescription control — shared test fixtures",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",