@claudebernard/fhir-prescription-mocks 2.4.0 → 2.4.2

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,
@@ -1166,6 +1167,60 @@ var patient_renal_gfr_normalized_default = {
1166
1167
  ]
1167
1168
  };
1168
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
+
1169
1224
  // ../data/bundle/prescription-complete.json
1170
1225
  var prescription_complete_default = {
1171
1226
  resourceType: "Bundle",
@@ -1213,12 +1268,6 @@ var prescription_complete_default = {
1213
1268
  {
1214
1269
  reference: "MedicationRequest/327b7ee8-47a8-a6c3-e0ae-e5ba3e400c82"
1215
1270
  },
1216
- {
1217
- reference: "Observation/dc0e92d6-0fb3-e6d0-f12d-609c234e720a"
1218
- },
1219
- {
1220
- reference: "Observation/e94ca969-710c-bbbd-c10e-9272e25302de"
1221
- },
1222
1271
  {
1223
1272
  reference: "MedicationRequest/428ed2db-8d77-4c0e-fe99-34b0d802d52e"
1224
1273
  },
@@ -1391,6 +1440,34 @@ var prescription_complete_default = {
1391
1440
  text: "\xE0 prendre avec un grand verre d'eau"
1392
1441
  }
1393
1442
  ],
1443
+ extension: [
1444
+ {
1445
+ url: "https://platform.claudebernard.fr/fhir/StructureDefinition/medication-request-notes",
1446
+ valueCodeableConcept: {
1447
+ coding: [
1448
+ {
1449
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/medication-request-note-type",
1450
+ code: "pcp",
1451
+ display: "Notes du m\xE9decin traitant"
1452
+ }
1453
+ ],
1454
+ text: "1 comprim\xE9 1 fois par jour"
1455
+ }
1456
+ },
1457
+ {
1458
+ url: "https://platform.claudebernard.fr/fhir/StructureDefinition/medication-request-notes",
1459
+ valueCodeableConcept: {
1460
+ coding: [
1461
+ {
1462
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/medication-request-note-type",
1463
+ code: "analysis",
1464
+ display: "Remarques li\xE9es \xE0 l'analyse"
1465
+ }
1466
+ ],
1467
+ text: "Adapter la posologie"
1468
+ }
1469
+ }
1470
+ ],
1394
1471
  dosageInstruction: [
1395
1472
  {
1396
1473
  additionalInstruction: [
@@ -1423,60 +1500,6 @@ var prescription_complete_default = {
1423
1500
  ]
1424
1501
  }
1425
1502
  },
1426
- {
1427
- fullUrl: "Observation/dc0e92d6-0fb3-e6d0-f12d-609c234e720a",
1428
- resource: {
1429
- resourceType: "Observation",
1430
- id: "dc0e92d6-0fb3-e6d0-f12d-609c234e720a",
1431
- status: "final",
1432
- code: {
1433
- coding: [
1434
- {
1435
- system: "http://loinc.org",
1436
- code: "75479-6",
1437
- display: "Notes du m\xE9decin traitant"
1438
- }
1439
- ]
1440
- },
1441
- focus: [
1442
- {
1443
- reference: "Medication/7caaa527-38a9-bc63-86e7-6da2044460c7"
1444
- }
1445
- ],
1446
- note: [
1447
- {
1448
- text: "Notes du m\xE9decin traitant : 1 comprim\xE9 1 fois par jour"
1449
- }
1450
- ]
1451
- }
1452
- },
1453
- {
1454
- fullUrl: "Observation/e94ca969-710c-bbbd-c10e-9272e25302de",
1455
- resource: {
1456
- resourceType: "Observation",
1457
- id: "e94ca969-710c-bbbd-c10e-9272e25302de",
1458
- status: "final",
1459
- code: {
1460
- coding: [
1461
- {
1462
- system: "http://loinc.org",
1463
- code: "55753-8",
1464
- display: "Remarques li\xE9es \xE0 l'analyse"
1465
- }
1466
- ]
1467
- },
1468
- focus: [
1469
- {
1470
- reference: "Medication/7caaa527-38a9-bc63-86e7-6da2044460c7"
1471
- }
1472
- ],
1473
- note: [
1474
- {
1475
- text: "Remarques li\xE9es \xE0 l'analyse : Adapter la posologie"
1476
- }
1477
- ]
1478
- }
1479
- },
1480
1503
  {
1481
1504
  fullUrl: "Medication/3d37a495-3c1a-5dc5-6218-726adf28d861",
1482
1505
  resource: {
@@ -3146,6 +3169,7 @@ var patientPediatric = patient_pediatric_default;
3146
3169
  var patientRenalCreatinineClearance = patient_renal_creatinine_clearance_default;
3147
3170
  var patientRenalGfrAbsolute = patient_renal_gfr_absolute_default;
3148
3171
  var patientRenalGfrNormalized = patient_renal_gfr_normalized_default;
3172
+ var patientUnderweightPastObservation = patient_underweight_past_observation_default;
3149
3173
  var prescriptionComplete = prescription_complete_default;
3150
3174
  var prescriptionWithAlternative = prescription_with_alternative_default;
3151
3175
  var prescriptionSingleMedication = prescription_single_medication_default;
@@ -3162,6 +3186,7 @@ var automedicationComplete = automedication_complete_default;
3162
3186
  patientRenalCreatinineClearance,
3163
3187
  patientRenalGfrAbsolute,
3164
3188
  patientRenalGfrNormalized,
3189
+ patientUnderweightPastObservation,
3165
3190
  prescriptionComplete,
3166
3191
  prescriptionPosology,
3167
3192
  prescriptionSingleMedication,
package/dist/index.mjs CHANGED
@@ -1128,6 +1128,60 @@ var patient_renal_gfr_normalized_default = {
1128
1128
  ]
1129
1129
  };
1130
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
+
1131
1185
  // ../data/bundle/prescription-complete.json
1132
1186
  var prescription_complete_default = {
1133
1187
  resourceType: "Bundle",
@@ -1175,12 +1229,6 @@ var prescription_complete_default = {
1175
1229
  {
1176
1230
  reference: "MedicationRequest/327b7ee8-47a8-a6c3-e0ae-e5ba3e400c82"
1177
1231
  },
1178
- {
1179
- reference: "Observation/dc0e92d6-0fb3-e6d0-f12d-609c234e720a"
1180
- },
1181
- {
1182
- reference: "Observation/e94ca969-710c-bbbd-c10e-9272e25302de"
1183
- },
1184
1232
  {
1185
1233
  reference: "MedicationRequest/428ed2db-8d77-4c0e-fe99-34b0d802d52e"
1186
1234
  },
@@ -1353,6 +1401,34 @@ var prescription_complete_default = {
1353
1401
  text: "\xE0 prendre avec un grand verre d'eau"
1354
1402
  }
1355
1403
  ],
1404
+ extension: [
1405
+ {
1406
+ url: "https://platform.claudebernard.fr/fhir/StructureDefinition/medication-request-notes",
1407
+ valueCodeableConcept: {
1408
+ coding: [
1409
+ {
1410
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/medication-request-note-type",
1411
+ code: "pcp",
1412
+ display: "Notes du m\xE9decin traitant"
1413
+ }
1414
+ ],
1415
+ text: "1 comprim\xE9 1 fois par jour"
1416
+ }
1417
+ },
1418
+ {
1419
+ url: "https://platform.claudebernard.fr/fhir/StructureDefinition/medication-request-notes",
1420
+ valueCodeableConcept: {
1421
+ coding: [
1422
+ {
1423
+ system: "https://platform.claudebernard.fr/fhir/CodeSystem/medication-request-note-type",
1424
+ code: "analysis",
1425
+ display: "Remarques li\xE9es \xE0 l'analyse"
1426
+ }
1427
+ ],
1428
+ text: "Adapter la posologie"
1429
+ }
1430
+ }
1431
+ ],
1356
1432
  dosageInstruction: [
1357
1433
  {
1358
1434
  additionalInstruction: [
@@ -1385,60 +1461,6 @@ var prescription_complete_default = {
1385
1461
  ]
1386
1462
  }
1387
1463
  },
1388
- {
1389
- fullUrl: "Observation/dc0e92d6-0fb3-e6d0-f12d-609c234e720a",
1390
- resource: {
1391
- resourceType: "Observation",
1392
- id: "dc0e92d6-0fb3-e6d0-f12d-609c234e720a",
1393
- status: "final",
1394
- code: {
1395
- coding: [
1396
- {
1397
- system: "http://loinc.org",
1398
- code: "75479-6",
1399
- display: "Notes du m\xE9decin traitant"
1400
- }
1401
- ]
1402
- },
1403
- focus: [
1404
- {
1405
- reference: "Medication/7caaa527-38a9-bc63-86e7-6da2044460c7"
1406
- }
1407
- ],
1408
- note: [
1409
- {
1410
- text: "Notes du m\xE9decin traitant : 1 comprim\xE9 1 fois par jour"
1411
- }
1412
- ]
1413
- }
1414
- },
1415
- {
1416
- fullUrl: "Observation/e94ca969-710c-bbbd-c10e-9272e25302de",
1417
- resource: {
1418
- resourceType: "Observation",
1419
- id: "e94ca969-710c-bbbd-c10e-9272e25302de",
1420
- status: "final",
1421
- code: {
1422
- coding: [
1423
- {
1424
- system: "http://loinc.org",
1425
- code: "55753-8",
1426
- display: "Remarques li\xE9es \xE0 l'analyse"
1427
- }
1428
- ]
1429
- },
1430
- focus: [
1431
- {
1432
- reference: "Medication/7caaa527-38a9-bc63-86e7-6da2044460c7"
1433
- }
1434
- ],
1435
- note: [
1436
- {
1437
- text: "Remarques li\xE9es \xE0 l'analyse : Adapter la posologie"
1438
- }
1439
- ]
1440
- }
1441
- },
1442
1464
  {
1443
1465
  fullUrl: "Medication/3d37a495-3c1a-5dc5-6218-726adf28d861",
1444
1466
  resource: {
@@ -3108,6 +3130,7 @@ var patientPediatric = patient_pediatric_default;
3108
3130
  var patientRenalCreatinineClearance = patient_renal_creatinine_clearance_default;
3109
3131
  var patientRenalGfrAbsolute = patient_renal_gfr_absolute_default;
3110
3132
  var patientRenalGfrNormalized = patient_renal_gfr_normalized_default;
3133
+ var patientUnderweightPastObservation = patient_underweight_past_observation_default;
3111
3134
  var prescriptionComplete = prescription_complete_default;
3112
3135
  var prescriptionWithAlternative = prescription_with_alternative_default;
3113
3136
  var prescriptionSingleMedication = prescription_single_medication_default;
@@ -3123,6 +3146,7 @@ export {
3123
3146
  patientRenalCreatinineClearance,
3124
3147
  patientRenalGfrAbsolute,
3125
3148
  patientRenalGfrNormalized,
3149
+ patientUnderweightPastObservation,
3126
3150
  prescriptionComplete,
3127
3151
  prescriptionPosology,
3128
3152
  prescriptionSingleMedication,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudebernard/fhir-prescription-mocks",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
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",