@phenyxhealth/importer 1.1.16 → 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.16",
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),