// Blood Spot Screening
try {
BloodSpotScreening bloodspot = createBloodSpotScreening(childScreeningFields);
if (bloodspot != null) {
template.addCodedSections(new CodedSections(bloodspot));
}
} catch (MissingMandatoryFieldException e) {
missingFields.addMissingFields(e);
}
// New Born Birth Details
try {
NewBornBirthDetails birthdetails = createBirthDetails(childScreeningFields);
if (birthdetails != null) {
template.addCodedSections(new CodedSections(birthdetails));
}
} catch (MissingMandatoryFieldException e) {
missingFields.addMissingFields(e);
}
// Hearing Screening
try {
NewBornHearingScreening hearing = createHearingScreening(childScreeningFields);
if (hearing != null) {
template.addCodedSections(new CodedSections(hearing));
}
} catch (MissingMandatoryFieldException e) {
missingFields.addMissingFields(e);
}
// Hearing Screening
try {
NewBornPhysicalExamination physical = createPhysicalExam(childScreeningFields);
if (physical != null) {
template.addCodedSections(new CodedSections(physical));
}
} catch (MissingMandatoryFieldException e) {
missingFields.addMissingFields(e);
}