Package uk.nhs.interoperability.payloads.commontypes

Examples of uk.nhs.interoperability.payloads.commontypes.PersonName


     PatientRelationshipParticipantRole rp = new PatientRelationshipParticipantRole();
     rp.setPersonRole(JobRoleName._NR1980);
     rp.setAddress(new Address().setNullFlavour(NullFlavour.NI.code));
     rp.addTelephoneNumber(new Telecom("tel:014722823451"));
     rp.addTelephoneNumber(new Telecom("tel:07831191333"));
     rp.setPersonName(new PersonName()
                 .setTitle("Mrs")
                 .setGivenName("Emily")
                 .setFamilyName("Smith"));
     template.addRelatedPerson(new RelatedPersonDetails().setParticipant(rp));
   
     PatientRelationshipParticipantRole rp2 = new PatientRelationshipParticipantRole();
     rp2.setPersonRole(JobRoleName._NR1990);
     rp2.setAssociatedJobRole(JobRoleName._NR2040);
     rp2.setAddress(new Address().setNullFlavour(NullFlavour.NI.code));
     rp2.addTelephoneNumber(new Telecom("tel:07833825701"));
     rp2.setPersonName(new PersonName()
                 .setTitle("Ms")
                 .setGivenName("Niral")
                 .setFamilyName("Singh"));
     template.addRelatedPerson(new RelatedPersonDetails().setParticipant(rp2));
    
     PatientRelationshipParticipantRole rp3 = new PatientRelationshipParticipantRole();
     rp3.setPersonRole(JobRoleName._NR2000);
     rp3.setAddress(new Address().setNullFlavour(NullFlavour.NI.code));
     rp3.addTelephoneNumber(new Telecom("tel:07822761939"));
     rp3.setPersonName(new PersonName()
                 .setTitle("Ms")
                 .setGivenName("Gemma")
                 .setFamilyName("Hopkins"));
     template.addRelatedPerson(new RelatedPersonDetails().setParticipant(rp3));

     PatientRelationshipParticipantRole rp4 = new PatientRelationshipParticipantRole();
     rp4.setPersonRole(JobRoleName._NR2010);
     rp4.setAddress(new Address().setNullFlavour(NullFlavour.NI.code));
     rp4.addTelephoneNumber(new Telecom("tel:07871715735"));
     rp4.setPersonName(new PersonName()
                 .setTitle("Mr")
                 .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);
     rp5.setAddress(new Address()
                 .addAddressLine("St James Hospital")
                 .addAddressLine("Potter Street")
                 .addAddressLine("Grimsby")
                 .setPostcode("DN3 6AA")
                 .setAddressUse(AddressType.WorkPlace.code));
     rp5.addTelephoneNumber(new Telecom("tel:07334345612"));
     rp5.setPersonName(new PersonName()
                 .setTitle("Mrs")
                 .setGivenName("Isabella")
                 .setFamilyName("Hopkins"));
     rp5.setOrgId(new OrgID()
               .setID("V356F")
               .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);
     rp6.setAddress(new Address()
                 .addAddressLine("Freshney Green PCC")
                 .addAddressLine("Carlton Court")
                 .addAddressLine("Martin Road")
                 .addAddressLine("Grimsby")
                 .setPostcode("DN34 4GB")
                 .setAddressUse(AddressType.WorkPlace.code));
     rp6.addTelephoneNumber(new Telecom("tel:07621846951"));
     rp6.setPersonName(new PersonName()
                 .setTitle("Dr")
                 .setGivenName("John")
                 .setFamilyName("Manning"));
     rp6.setOrgId(new OrgID()
               .setID("V365F")
View Full Code Here


    // 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")
                  .setFamilyName("Smith"));
    template.setMainInformalCarer(carer);
    return template;
View Full Code Here

   
    PatientRelationshipParticipantRole person = new PatientRelationshipParticipantRole();
    person.setPersonRole(JobRoleName._NR2010);
    person.setAddress(new Address().setNullFlavour(NullFlavour.NI.code));
    person.addTelephoneNumber(new Telecom("tel:07871715735"));
    person.setPersonName(new PersonName()
                  .setTitle("Mr")
                  .setGivenName("Alan")
                  .setFamilyName("Smith"));
    template.setLPADetails(person);
    return template;
View Full Code Here

                .setAddressUse(AddressType.Home.code)
                .addAddressLine("Appleton House")
                .addAddressLine("Lanchester Road")
                .addAddressLine("Grimsby")
                .setPostcode("DN3 1UJ"));
    template.addName(new PersonName()
                .setGivenName("Mark")
                .setFamilyName("Smith"));
    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")
                  .setPatientIDType(PatientIDType.VerifiedNHSNumber.code)
                  .setNHSNoTraceStatus(NHSNumberTraceStatus.Traced.code));
    guardian.setRole(GuardianRoleType._Mother);
    guardian.addAddress(new Address()
                  .setAddressUse(AddressType.Home.code)
                  .addAddressLine("Appleton House")
                  .addAddressLine("Lanchester Road")
                  .addAddressLine("Grimsby")
                  .setPostcode("DN3 1UJ"));
    guardian.addTelephoneNumber(new Telecom()
                    .setTelecom("tel:01634111678")
                    .setTelecomType(TelecomUseType.HomeAddress.code));   
    guardian.setGuardianDetails(new GuardianPerson()
                      .setGuardianName(new PersonName("Mrs", "Shelly", "Smith")));
    template.addGuardian(guardian);
   
    // Provider Organisation
    template.setOrganisationId(new OrgID().setID("V396F"));
    template.setOrganisationName("Dr De Hopper and Partners");
View Full Code Here

            .addAddressLine("Potter Street")
            .addAddressLine("Grimsby")
            .setPostcode("DN3 6AA")
            .setAddressUse(AddressType.WorkPlace.code));
     template.addTelephoneNumber(new Telecom("tel:01472312345"));
     template.setName(new PersonName()
            .setTitle("Ms")
            .setGivenName("Niral")
            .setFamilyName("Singh"));
    template.setOrganisationId(new OrgID()
                  .setID("V356F")
View Full Code Here

                  .addAddressLine("Potter Street")
                  .addAddressLine("Grimsby")
                  .setPostcode("DN3 6AA")
                  .setAddressUse(AddressType.WorkPlace.code));
    author.addTelephoneNumber(new Telecom("tel:01472312345"));
    author.setName(new PersonName()
                  .setTitle("Mrs")
                  .setGivenName("Isabella")
                  .setFamilyName("Hopkins"));
    author.setOrganisationId(new OrgID()
                  .setID("V356F")
View Full Code Here

                  .addAddressLine("Martin Road")
                  .addAddressLine("Grimsby")
                  .setPostcode("DN34 4GB")
                  .setAddressUse(AddressType.WorkPlace.code));
    author.addTelephoneNumber(new Telecom("tel:07621846951"));
    author.setName(new PersonName()
                  .setTitle("Dr")
                  .setGivenName("John")
                  .setFamilyName("Manning"));
    author.setOrganisationId(new OrgID()
                  .setID("V365F")
View Full Code Here

 
  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));
    template.setOrgName("Dr De Hopper and Partners");
    return template;
View Full Code Here

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

    // ********** CONTACT PERSON ************************************
    ContactPerson contact = new ContactPerson();
    contact.setPersonAddress(new Address("St. Elsewhere's Hostpital,Leeds, LS13 6YP"));
    contact.setJobRoleName(JobRoleName._NR0050);
    contact.setTelephone("tel:01132111111");
    contact.setName(new PersonName("Dr. Smith"));
    contact.setOrgID(new OrgID(OrgIDType.ODSOrgID.code, "RA8"));
    contact.setOrgName("St. Elsewhere's Hospital");
    event.setContactPerson(contact);
   
    // ********** RECIPIENT *****************************************
    Recipient recipient = new Recipient();
    recipient.setRecipientAddress(new Address("St. Elsewhere's Practice, Leeds, LS1 4HY"));
    recipient.setJobRoleName(JobRoleName._NR0260);
    recipient.setTelephone("tel:01132111112");
    recipient.setOrgName("St. Elsewhere's Practice");
    document.addRecipient(recipient);
   
    // ********** PATIENT *********************************************
    Patient patient = new Patient();
    patient.setPatientAddress(new Address("111 St. Elsewhere's Street, Leeds, LS13 7TF"));
    patient.setPatientNhsNumber(new PatientID(PatientIDType.VerifiedNHSNumber.code, "1111111111"));
    patient.setPatientDOB(new DateValue("20010101"));
    patient.addPatientName(new PersonName("John Smith"));
    document.setPatient(patient);
    return document;
  }
View Full Code Here

TOP

Related Classes of uk.nhs.interoperability.payloads.commontypes.PersonName

Copyright © 2018 www.massapicom. 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.