@claudebernard/fhir-prescription-mocks 2.4.0 → 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 +1 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +57 -0
- package/dist/index.mjs +56 -0
- package/package.json +1 -1
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",
|
|
@@ -3146,6 +3201,7 @@ var patientPediatric = patient_pediatric_default;
|
|
|
3146
3201
|
var patientRenalCreatinineClearance = patient_renal_creatinine_clearance_default;
|
|
3147
3202
|
var patientRenalGfrAbsolute = patient_renal_gfr_absolute_default;
|
|
3148
3203
|
var patientRenalGfrNormalized = patient_renal_gfr_normalized_default;
|
|
3204
|
+
var patientUnderweightPastObservation = patient_underweight_past_observation_default;
|
|
3149
3205
|
var prescriptionComplete = prescription_complete_default;
|
|
3150
3206
|
var prescriptionWithAlternative = prescription_with_alternative_default;
|
|
3151
3207
|
var prescriptionSingleMedication = prescription_single_medication_default;
|
|
@@ -3162,6 +3218,7 @@ var automedicationComplete = automedication_complete_default;
|
|
|
3162
3218
|
patientRenalCreatinineClearance,
|
|
3163
3219
|
patientRenalGfrAbsolute,
|
|
3164
3220
|
patientRenalGfrNormalized,
|
|
3221
|
+
patientUnderweightPastObservation,
|
|
3165
3222
|
prescriptionComplete,
|
|
3166
3223
|
prescriptionPosology,
|
|
3167
3224
|
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",
|
|
@@ -3108,6 +3162,7 @@ var patientPediatric = patient_pediatric_default;
|
|
|
3108
3162
|
var patientRenalCreatinineClearance = patient_renal_creatinine_clearance_default;
|
|
3109
3163
|
var patientRenalGfrAbsolute = patient_renal_gfr_absolute_default;
|
|
3110
3164
|
var patientRenalGfrNormalized = patient_renal_gfr_normalized_default;
|
|
3165
|
+
var patientUnderweightPastObservation = patient_underweight_past_observation_default;
|
|
3111
3166
|
var prescriptionComplete = prescription_complete_default;
|
|
3112
3167
|
var prescriptionWithAlternative = prescription_with_alternative_default;
|
|
3113
3168
|
var prescriptionSingleMedication = prescription_single_medication_default;
|
|
@@ -3123,6 +3178,7 @@ export {
|
|
|
3123
3178
|
patientRenalCreatinineClearance,
|
|
3124
3179
|
patientRenalGfrAbsolute,
|
|
3125
3180
|
patientRenalGfrNormalized,
|
|
3181
|
+
patientUnderweightPastObservation,
|
|
3126
3182
|
prescriptionComplete,
|
|
3127
3183
|
prescriptionPosology,
|
|
3128
3184
|
prescriptionSingleMedication,
|
package/package.json
CHANGED