Examples of NewBornBirthDetails


Examples of uk.nhs.interoperability.payloads.templates.NewBornBirthDetails

      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);
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.NewBornBirthDetails

   
    if (fields.getDateBirthDetailsRecorded() == null) {
      return null;
    }
   
    NewBornBirthDetails template = new NewBornBirthDetails();

    template.setId(CDAUUID.generateUUIDString());
    template.setEffectiveTime(fields.getDateBirthDetailsRecorded());
    template.setGestationalAgeInWeeks(fields.getGestationalAgeInWeeks());
    if (fields.getBirthOrder() != null) {
      template.setBirthOrder(Integer.toString(fields.getBirthOrder()));
    }
    if (fields.getNoOfFoetusInConfinement() != null) {
      template.setNoOfFoetusInConfinement(Integer.toString(fields.getNoOfFoetusInConfinement()));
    }
    template.setBirthWeightInGrams(fields.getBirthWeightInGrams());
   
    return template;
  }
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.NewBornBirthDetails

    // BloodSpotScreening
    BloodSpotScreening bloodSpot = createBloodSpotScreening();
    template.addCodedSections(new CodedSections(bloodSpot));

    //NewBornBirthDetails
    NewBornBirthDetails details = createNewBornBirthDetails();
    template.addCodedSections(new CodedSections(details));
   
    // ==== Now create the text sections ====
    template.addTextSections(new TextSections(createTextSection1()));
    template.addTextSections(new TextSections(createTextSection2()));
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.NewBornBirthDetails

    template.setPreviousLaboratoryCardSerialNumber("0902652800");
    return template;
  }
 
  public static NewBornBirthDetails createNewBornBirthDetails() {
    NewBornBirthDetails template = new NewBornBirthDetails();
    template.setId("A1265DB0-89B1-11E3-AFED-19F46188709B");
    template.setEffectiveTime(new DateValue("201209111400+0000"));
    template.setGestationalAgeInWeeks("40");
    template.setBirthOrder("01");
    template.setNoOfFoetusInConfinement("1");
    template.setBirthWeightInGrams("2887");
    return template;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.