Examples of BloodSpotScreening


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

    // ==== Now create the coded sections ====
   
    // Blood Spot Screening
    try {
      BloodSpotScreening bloodspot = createBloodSpotScreening(childScreeningFields);
      if (bloodspot != null) {
        template.addCodedSections(new CodedSections(bloodspot));
      }
    } catch (MissingMandatoryFieldException e) {
      missingFields.addMissingFields(e);
View Full Code Here

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

   
    if (fields.getDateOfBloodSpotScreening() == null) {
      return null;
    }
   
    BloodSpotScreening template = new BloodSpotScreening();
   
    template.setId(CDAUUID.generateUUIDString());
    template.setEffectiveTime(fields.getDateOfBloodSpotScreening());
    // Performer
    template.setSampleCollectedTime(fields.getBloodSpotSampleCollectedTime());
    template.addPerformerPersonId(new PersonID().setID(fields.getBloodSpotPerformerPersonSDSID()).setType(PersonIDType.SDSID.code));
    template.setPerformerPersonName(fields.getBloodSpotPerformerPersonName());
    template.setPerformerOrgId(new OrgID()
                      .setID(fields.getBloodSpotPerformerOrganisationODSID())
                      .setType(OrgIDType.ODSOrgID.code));
    template.setPerformerOrgName(fields.getBloodSpotPerformerOrganisationName());
    // Lab
    template.setTimeReceivedAtLab(fields.getBloodSpotTimeReceivedAtLab());
    template.setLabOrganisationId(new OrgID()
                      .setID(fields.getBloodSpotLabOrganisationODSID())
                      .setType(OrgIDType.ODSOrgID.code));
    template.setLabOrganisationDescription(fields.getBloodSpotLabOrganisationName());
   
    // Screening results
    template.setPKUScreeningValue(fields.getPKUScreeningValue());
    if (fields.getLaboratoryConfirmPKUasCorrect()) {
      template.setPKUBSLaboratoryInterpretationCode(BSLaboratoryInterpretationCode._ReevaluatedResultLaboratoryConfirmasCorrect);
    }
    template.setPKUScreeningSubStatus(fields.getPKUScreeningSubStatus());
    template.setPKUReasonText(fields.getPKUReasonText());
    template.setPKUSupplementaryText(fields.getPKUSupplementaryText());
   
    template.setSCDScreeningValue(fields.getSCDScreeningValue());
    if (fields.getLaboratoryConfirmSCDasCorrect()) {
      template.setSCDBSLaboratoryInterpretationCode(BSLaboratoryInterpretationCode._ReevaluatedResultLaboratoryConfirmasCorrect);
    }
    template.setSCDScreeningSubStatus(fields.getSCDScreeningSubStatus());
    template.setSCDReasonText(fields.getSCDReasonText());
    template.setSCDSupplementaryText(fields.getSCDSupplementaryText());
   
    template.setCFScreeningValue(fields.getCFScreeningValue());
    if (fields.getLaboratoryConfirmCFasCorrect()) {
      template.setCFBSLaboratoryInterpretationCode(BSLaboratoryInterpretationCode._ReevaluatedResultLaboratoryConfirmasCorrect);
    }
    template.setCFScreeningSubStatus(fields.getCFScreeningSubStatus());
    template.setCFReasonText(fields.getCFReasonText());
    template.setCFSupplementaryText(fields.getCFSupplementaryText());
   
    template.setCHTScreeningValue(fields.getCHTScreeningValue());
    if (fields.getLaboratoryConfirmCHTasCorrect()) {
      template.setCHTBSLaboratoryInterpretationCode(BSLaboratoryInterpretationCode._ReevaluatedResultLaboratoryConfirmasCorrect);
    }
    template.setCHTScreeningSubStatus(fields.getCHTScreeningSubStatus());
    template.setCHTReasonText(fields.getCHTReasonText());
    template.setCHTSupplementaryText(fields.getCHTSupplementaryText());
   
    template.setMCADDScreeningValue(fields.getMCADDScreeningValue());
    if (fields.getLaboratoryConfirmMCADDasCorrect()) {
      template.setMCADDBSLaboratoryInterpretationCode(BSLaboratoryInterpretationCode._ReevaluatedResultLaboratoryConfirmasCorrect);
    }
    template.setMCADDScreeningSubStatus(fields.getMCADDScreeningSubStatus());
    template.setMCADDReasonText(fields.getMCADDReasonText());
    template.setMCADDSupplementaryText(fields.getMCADDSupplementaryText());
   
    // Other observations
    template.setScreeningLocationStatus(fields.getScreeningLocationStatus());
    template.setLaboratoryCardSerialNumber(fields.getLaboratoryCardSerialNumber());
    template.setPreviousLaboratoryCardSerialNumber(fields.getPreviousLaboratoryCardSerialNumber());
    return template;
  }
View Full Code Here

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

    // ==== Now create the coded sections ====
   
    template.setMainDocumentSectionID("5476CF02-89C2-11E3-A295-9E296288709B");
   
    // BloodSpotScreening
    BloodSpotScreening bloodSpot = createBloodSpotScreening();
    template.addCodedSections(new CodedSections(bloodSpot));

    //NewBornBirthDetails
    NewBornBirthDetails details = createNewBornBirthDetails();
    template.addCodedSections(new CodedSections(details));
View Full Code Here

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

    template.setOrgName("Dr De Hopper and Partners");
    return template;
  }
 
  public static BloodSpotScreening createBloodSpotScreening() {
    BloodSpotScreening template = new BloodSpotScreening();
    template.setId("2B6D3E28-3B0A-11E2-B7AF-B4F66183783C");
    template.setEffectiveTime(new DateValue("201209111400+0000"));
    // Performer
    template.setSampleCollectedTime(new DateValue("201209111300"));
    template.addPerformerPersonId(new PersonID().setNullFlavour(NullFlavour.Unknown.code));
    template.setPerformerPersonName(new PersonName("Mr", "Brian", "Weberly"));
    template.setPerformerOrgId(new OrgID()
                      .setID("A0991")
                      .setType(OrgIDType.ODSOrgID.code));
    template.setPerformerOrgName("St James Hospital");
    // Lab
    template.setTimeReceivedAtLab(new DateValue("201209111310"));
    template.setLabOrganisationId(new OrgID()
                      .setID("A0078")
                      .setType(OrgIDType.ODSOrgID.code));
    template.setLabOrganisationDescription("St James Pathology Laboratory");
   
    // Screening results
    template.setPKUScreeningValue(PKUScreeningResult._Conditionnotsuspected);
    template.setPKUBSLaboratoryInterpretationCode(BSLaboratoryInterpretationCode._ReevaluatedResultLaboratoryConfirmasCorrect);
    template.setPKUScreeningSubStatus(BSScreeningStatusSubCodes._Notcontactablereasonableeffortsmade);
    template.setPKUReasonText("PKU Reason Text");
    template.setPKUSupplementaryText("PKU supplementary text");
   
    template.setSCDScreeningValue(SCDScreeningResult._Conditionnotsuspected);
    template.setSCDScreeningSubStatus(BSScreeningStatusSubCodes._Notcontactablereasonableeffortsmade);
    template.setSCDReasonText("SCD Reason Text");
    template.setSCDSupplementaryText("SCD supplementary text");
   
    template.setCFScreeningValue(CFScreeningResult._Conditionnotsuspected);
    template.setCFScreeningSubStatus(BSScreeningStatusSubCodes._Notcontactablereasonableeffortsmade);
    template.setCFReasonText("CFS Reason Text");
    template.setCFSupplementaryText("CFS supplementary text");
   
    template.setCHTScreeningValue(CHTScreeningResult._Conditionnotsuspected);
    template.setCHTScreeningSubStatus(BSScreeningStatusSubCodes._Notcontactablereasonableeffortsmade);
    template.setCHTReasonText("CHT Reason Text");
    template.setCHTSupplementaryText("CHT supplementary text");
   
    template.setMCADDScreeningValue(MCADDScreeningResult._Conditionnotsuspected);
    template.setMCADDScreeningSubStatus(BSScreeningStatusSubCodes._Notcontactablereasonableeffortsmade);
    template.setMCADDReasonText("MCADD Reason Text");
    template.setMCADDSupplementaryText("MCADD supplementary text");
   
    // Other observations
    template.setScreeningLocationStatus(BSScreeningLocStatus._NotDischargedOtherspecialistunit);
    template.setLaboratoryCardSerialNumber("0902652801");
    template.setPreviousLaboratoryCardSerialNumber("0902652800");
    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.