Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public class ManageDocumentsCategoryConstants {
public static final String DRUG_AND_ALCOHOL_TEST = "drugAndAlcoholTest(toxicology)";
public static final String POLICE_REPORT = "policeReport";
public static final String SEC37_REPORT = "sec37Report";
public static final String CIR_EXTENSION_REQUEST_CAFCASS = "cirExtensionRequestCafCass";
public static final String CIR_TRANSFER_REQUEST_CAFCASS = "cirTransferRequestCafCass";
public static final String LA_OTHER_DOCS = "localAuthorityOtherDoc";
public static final String ORDERS_SUBMITTED_WITH_APPLICATION = "ordersSubmittedWithApplication";
public static final String APPROVED_ORDERS = "approvedOrders";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@ public enum BundlingDocGroupEnum {
@JsonProperty("laSection37Report")
laSection37Report("laSection37Report", "laSection37Report"),

@JsonProperty("cafcassSection16AReport")
cafcassSection16AReport("cafcassSection16AReport", "cafcassSection16AReport"),

@JsonProperty("cafcassSectionCirExtensionRequestReport")
cafcassSectionCirExtensionRequestReport("cafcassSectionCirExtensionRequestReport", "cafcassSectionCirExtensionRequestReport"),

@JsonProperty("cafcassSectionCirTransferRequestReport")
cafcassSectionCirTransferRequestReport("cafcassSectionCirTransferRequestReport", "cafcassSectionCirTransferRequestReport"),

@JsonProperty("laOtherDocuments")
laOtherDocuments("laOtherDocuments", "laOtherDocuments"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
import static uk.gov.hmcts.reform.prl.constants.ManageDocumentsCategoryConstants.CASE_SUMMARY;
import static uk.gov.hmcts.reform.prl.constants.ManageDocumentsCategoryConstants.CHILD_IMPACT_REPORT1;
import static uk.gov.hmcts.reform.prl.constants.ManageDocumentsCategoryConstants.CHILD_IMPACT_REPORT2;
import static uk.gov.hmcts.reform.prl.constants.ManageDocumentsCategoryConstants.CIR_EXTENSION_REQUEST_CAFCASS;
import static uk.gov.hmcts.reform.prl.constants.ManageDocumentsCategoryConstants.CIR_TRANSFER_REQUEST_CAFCASS;
import static uk.gov.hmcts.reform.prl.constants.ManageDocumentsCategoryConstants.DNA_REPORTS_EXPERT_REPORT;
import static uk.gov.hmcts.reform.prl.constants.ManageDocumentsCategoryConstants.DRUG_AND_ALCOHOL_TEST;
import static uk.gov.hmcts.reform.prl.constants.ManageDocumentsCategoryConstants.FM5_STATEMENTS;
Expand Down Expand Up @@ -637,6 +639,7 @@ private static void mapCafcassLaReports(QuarantineLegalDoc doc, HashMap<String,
.documentLink(doc.getOtherDocsDocument())
.documentFileName(doc.getOtherDocsDocument().getDocumentFileName())
.documentGroup(BundlingDocGroupEnum.cafcassOtherDocuments).build() : null);

bundleMap.put(SEC37_REPORT, Objects.nonNull(doc.getSec37ReportDocument()) ? BundlingRequestDocument.builder()
.documentLink(doc.getSec37ReportDocument())
.documentFileName(doc.getSec37ReportDocument().getDocumentFileName())
Expand All @@ -648,6 +651,15 @@ private static void mapCafcassLaReports(QuarantineLegalDoc doc, HashMap<String,
.documentFileName(doc.getLocalAuthorityOtherDocDocument().getDocumentFileName())
.documentGroup(BundlingDocGroupEnum.laOtherDocuments).build() : null
);

bundleMap.put(CIR_EXTENSION_REQUEST_CAFCASS, Objects.nonNull(doc.getCirExtensionRequestCafcassDocument()) ? BundlingRequestDocument.builder()
.documentLink(doc.getCirExtensionRequestCafcassDocument())
.documentFileName(doc.getCirExtensionRequestCafcassDocument().getDocumentFileName())
.documentGroup(BundlingDocGroupEnum.cafcassSectionCirExtensionRequestReport).build() : null);
bundleMap.put(CIR_TRANSFER_REQUEST_CAFCASS, Objects.nonNull(doc.getCirTransferRequestCafcassDocument()) ? BundlingRequestDocument.builder()
.documentLink(doc.getCirTransferRequestCafcassDocument())
.documentFileName(doc.getCirTransferRequestCafcassDocument().getDocumentFileName())
.documentGroup(BundlingDocGroupEnum.cafcassSectionCirTransferRequestReport).build() : null);
}

private static void mapPreliminaryDocuments(QuarantineLegalDoc doc, HashMap<String, BundlingRequestDocument> bundleMap) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public class QuarantineLegalDoc {
private final Document pathfinderDocument;
private final Document draftOrdersDocument;
private final Document courtNavQuarantineDocument;
private final Document cirExtensionRequestCafcassDocument;
private final Document cirTransferRequestCafcassDocument;

// Adding Bulk scan attributes
public final String fileName;
Expand Down