@phenyxhealth/importer 1.1.15 → 1.1.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phenyxhealth/importer",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "type": "module",
5
5
  "description": "Imports a Phenyx-compatible JSON file with patients into a PhenyxHealth instance.",
6
6
  "publishConfig": {
@@ -169,7 +169,7 @@ const importer = async (config) => {
169
169
  sendingDepartment: ApiInstance.getSendingDepartmentIdByName(registration.sendingDepartment),
170
170
  },
171
171
  consultation: {
172
- cie: ApiInstance.getCie10ByCode(consultation.cie10).id,
172
+ cie: ApiInstance.getCie10ByCode(consultation.cie10)?.id,
173
173
  tnm: consultation.tnm,
174
174
  estadio: consultation.stage,
175
175
  treatmentClass: ApiInstance.getGlobalInfoElementId(ApiInstance.globalTypes.treatmentClass, consultation.treatmentClass),
@@ -293,7 +293,7 @@ const importer = async (config) => {
293
293
  confirmedLinac: linacs.find(linac => linac.name === dosimetry.confirmedLinac)?.id || '',
294
294
  treatmentTechnique: ApiInstance.getGlobalInfoElementId(ApiInstance.globalTypes.treatmentTechnique, treatmentDefinition.treatmentTechnique),
295
295
  tentativeTreatmentStart: treatmentDelivery.tentativeTreatmentStartDate,
296
- confirmedTreatmentStart: treatmentDelivery.confirmedTreatmentStartingDate,
296
+ confirmedTreatmentStart: treatmentDelivery.confirmedTreatmentStartDate,
297
297
  numberOfCompleteSessions: treatmentDelivery.completedSessions || 0,
298
298
  numberOfPendingSessions: treatmentDelivery.totalSessions
299
299
  ? treatmentDelivery.totalSessions - (treatmentDelivery.completedSessions || 0)