Examples of addId()


Examples of uk.nhs.interoperability.payloads.templates.Guardian.addId()

      if (fields.getGuardianNHSNoTraceStatus().sameAs(NHSNumberTraceStatus.Traced)) {
        guardianIdType = PatientIDType.VerifiedNHSNumber.code;
      } else {
        guardianIdType = PatientIDType.UnverifiedNHSNumber.code;
      }
      guardianFields.addId(new PatientIDWithTraceStatuses()
                    .setPatientID(fields.getGuardianNHSNo())
                    .setPatientIDType(guardianIdType)
                    .setNHSNoTraceStatus(fields.getGuardianNHSNoTraceStatus().code));
      guardianFields.setGuardianDetails(new GuardianPerson().setGuardianName(fields.getGuardianName()));
      guardianFields.setRole(fields.getGuardianRole());
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.Guardian.addId()

    template.setGender(Sex._Male);
    template.setDateOfBirth(new DateValue("20120728"));
   
    // Guardian
    Guardian guardian = new Guardian();
    guardian.addId(new PatientIDWithTraceStatuses()
                  .setPatientID("K12344")
                  .setPatientIDType(PatientIDType.LocalID.code)
                  .setAssigningOrganisation("V396A:Medway PCT"));
    guardian.addId(new PatientIDWithTraceStatuses()
                  .setPatientID("993254127")
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.Guardian.addId()

    Guardian guardian = new Guardian();
    guardian.addId(new PatientIDWithTraceStatuses()
                  .setPatientID("K12344")
                  .setPatientIDType(PatientIDType.LocalID.code)
                  .setAssigningOrganisation("V396A:Medway PCT"));
    guardian.addId(new PatientIDWithTraceStatuses()
                  .setPatientID("993254127")
                  .setPatientIDType(PatientIDType.VerifiedNHSNumber.code)
                  .setNHSNoTraceStatus(NHSNumberTraceStatus.Traced.code));
    guardian.setRole(GuardianRoleType._Mother);
    guardian.addAddress(new Address()
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.PatientRelationshipParticipantRole.addID()

                 .setGivenName("Alan")
                 .setFamilyName("Smith"));
     template.addRelatedPerson(new RelatedPersonDetails().setParticipant(rp4));

     PatientRelationshipParticipantRole rp5 = new PatientRelationshipParticipantRole();
     rp5.addID(new PersonID()
             .setID("110")
             .setAssigningOrganisation("TAN01:NORTH EAST LINCOLNSHIRE CARE TRUST")
             .setType(PersonIDType.LocalPersonID.code));
     rp5.setPersonRole(JobRoleName._NR2020);
     rp5.setAssociatedJobRole(JobRoleName._NR2050);
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.PatientRelationshipParticipantRole.addID()

               .setType(OrgIDType.ODSOrgID.code));
     rp5.setOrgDescription("St James Hospital");
     template.addRelatedPerson(new RelatedPersonDetails().setParticipant(rp5));

     PatientRelationshipParticipantRole rp6 = new PatientRelationshipParticipantRole();
     rp6.addID(new PersonID()
      .setID("112")
      .setAssigningOrganisation("TAN01:NORTH EAST LINCOLNSHIRE CARE TRUST")
      .setType(PersonIDType.LocalPersonID.code));
     rp6.setPersonRole(JobRoleName._NR2030);
     rp6.setAssociatedJobRole(JobRoleName._NR0260);
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.PatientRelationshipParticipantRole.addID()

    carer.setPersonRole(JobRoleName._NR1980);
    carer.setAddress(new Address().setNullFlavour(NullFlavour.NI.code));
    // Note: The DMS specifies that if the person's ID is not known, an "NA" null flavour should
    // be used. In the example XML however, a null flavour of "NI" is used, which is why we need
    // to explicitly set that here.
    carer.addID(new PersonID().setNullFlavour(NullFlavour.NI.code));
    carer.addTelephoneNumber(new Telecom("tel:014722823451"));
    carer.addTelephoneNumber(new Telecom("tel:07831191333"));
    carer.setPersonName(new PersonName()
                  .setTitle("Mrs")
                  .setGivenName("Emily")
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.RecipientPersonUniversal.addId()

    if (missingFields.hasEntries()) {
      throw missingFields;
    }
    RecipientPersonUniversal template = new RecipientPersonUniversal();
    // ID (NULL)
    template.addId(new RoleID().setNullFlavour(NullFlavour.NA.code));
    // recipientName
    template.setName(recipient.getRecipientName());
    // recipientAddress
    if (recipient.getRecipientAddress() != null) {
      template.setAddress(recipient.getRecipientAddress());
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.RecipientPersonUniversal.addId()

    return template;
  }
 
  public static RecipientPersonUniversal createRecipient() {
    RecipientPersonUniversal template = new RecipientPersonUniversal();
    template.addId(new RoleID().setNullFlavour(NullFlavour.NI.code)); // Non-standard null flavour used in example XML..
    template.setJobRoleName(JobRoleName._GeneralMedicalPractitioner); // The example XML included a job role from a different vocab...
    template.setName(new PersonName("De Hopper"));
    template.setOrgId(new OrgID()
                .setID("V396F")
                .setType(OrgIDType.ODSOrgID.code));
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.RecipientPersonUniversal.addId()

    return template;
  }
 
  public static RecipientPersonUniversal createRecipient() {
    RecipientPersonUniversal template = new RecipientPersonUniversal();
    template.addId(new RoleID().setNullFlavour(NullFlavour.NI.code)); // Non-standard null flavour used in example XML..
    template.setJobRoleName(JobRoleName._NR0260);
    template.setName(new PersonName("De Hopper"));
    template.setOrgId(new OrgID()
                .setID("V396F")
                .setType(OrgIDType.ODSOrgID.code));
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.RecipientPersonUniversalv1.addId()

    return template;
  }
 
  public static RecipientPersonUniversalv1 createRecipient() {
    RecipientPersonUniversalv1 template = new RecipientPersonUniversalv1();
    template.addId(new RoleID()
              .setID("1234512345")
              .setAssigningOrganisation("V396A:Medway PCT"));
    template.addTelephoneNumber(new Telecom()
                      .setTelecom("mailto:t.hall@emailfree.co.uk"));
    template.setJobRoleName(JobRoleName._SpecialistNursePractitioner);
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.