From bf0935f0044d56ad8e82010925efb2404adc3caa Mon Sep 17 00:00:00 2001 From: Vincenzo Ingenito Date: Tue, 24 Sep 2024 16:43:41 +0200 Subject: [PATCH] fix: Reference id list --- .../ms/gtw/dispatcher/service/impl/FhirSRV.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/main/java/it/finanze/sanita/fse2/ms/gtw/dispatcher/service/impl/FhirSRV.java b/src/main/java/it/finanze/sanita/fse2/ms/gtw/dispatcher/service/impl/FhirSRV.java index 59a04b3..343e355 100644 --- a/src/main/java/it/finanze/sanita/fse2/ms/gtw/dispatcher/service/impl/FhirSRV.java +++ b/src/main/java/it/finanze/sanita/fse2/ms/gtw/dispatcher/service/impl/FhirSRV.java @@ -243,21 +243,7 @@ private DocumentEntryDTO createDocumentEntry(final org.jsoup.nodes.Document docC de.setServiceStopTime(requestBody.getDataFinePrestazione()); } - String path = ""; - final String code = docCDA.select("code").get(0).attr("code"); - DocumentTypeEnum extractedDocType = DocumentTypeEnum.getByCode(code); - - //Se รจ uguale a VPS - String oid = ""; - if(DocumentTypeEnum.CODE_59258_4.equals(extractedDocType)) { - path = "ClinicalDocument > component > structuredBody > component > section[ID='Piano_Cura_Dimissione'] > entry > act > reference > externalAct > id "; - oid = "2.16.840.1.113883.2.9.4.3.13"; - } else { - path = "ClinicalDocument > inFulfillmentOf > order > id "; - oid = "2.16.840.1.113883.2.9.4.3.8"; - } - - List referenceIdList = buildReferenceIdList(docCDA, path,oid); + List referenceIdList = buildReferenceIdList(docCDA, "ClinicalDocument > inFulfillmentOf > order > id","2.16.840.1.113883.2.9.4.3.8"); de.setReferenceIdList(referenceIdList); } catch(final Exception ex) {