Skip to content

Commit

Permalink
fix: Reference id list
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenzo-ingenito committed Sep 24, 2024
1 parent 51e23d7 commit bf0935f
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> referenceIdList = buildReferenceIdList(docCDA, path,oid);
List<String> referenceIdList = buildReferenceIdList(docCDA, "ClinicalDocument > inFulfillmentOf > order > id","2.16.840.1.113883.2.9.4.3.8");
de.setReferenceIdList(referenceIdList);

} catch(final Exception ex) {
Expand Down

0 comments on commit bf0935f

Please sign in to comment.