Package uk.nhs.interoperability.payloads.commontypes

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


    template.setEffectiveTime(new DateValue("201209111400+0000"));
    template.setAuthoritytoLPA(new CodedValue(AuthoritytoLPASnCT._816381000000105, "#a7"));
   
    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"));
View Full Code Here


    fields.setPatientName(new PersonName("Mr", "Joe", "Bloggs"));
    fields.setPatientBirthDate(new DateValue("19800101"));
    fields.setPatientGender(Sex._Male);
    fields.setPatientNHSNo("993254128");
    fields.setPatientNHSNoIsTraced(true);
    fields.setPatientAddress(new Address()
                    .addAddressLine("123 The Street")
                    .addAddressLine("The Town")
                    .setPostcode("AB1 2CD"));
    fields.setUsualGPName(new PersonName("Dr", "Simon", "Jones"));
    fields.setUsualGPODSCode("V396F");
    fields.setUsualGPOrgName("Dr Jones and Partners");
   
    fields.setDocumentAuthoredTime(currentDate);
    fields.setDocumentAuthorRole(JobRoleName._GeneralMedicalPractitioner);
    fields.setDocumentAuthorSDSID("200025166218");
    fields.setDocumentAuthorName(new PersonName ("Dr", "Simon", "Jones"));
    fields.setDocumentAuthorOrganisationODSID("V396F");
    fields.setDocumentAuthorOrganisationName("Dr Jones and Partners");
   
    fields.setPrimaryEOLCDiagnosis("Carcinoma of greater curve of stomach. This condition was diagnosed on 08/Mar/2012 and is ongoing.");
   
    fields.setEpaccsRecordCreationDate(new DateValue("20130101"));
   
    // Should not be mandatory
    fields.setEolcTool(EoLToolSnCT._Ongoldstandardspalliativecareframeworkfinding);
   
   
   
    fields.setEPACCSOrganisationODSID("V396F");
    fields.setEPACCSOrganisation("Dr Jones and Partners");
   
    // Fields requested for the South West
   
    // Carer
    fields.setMainInformalCarerName(new PersonName("Mrs", "Susan", "Bloggs"));
    fields.setMainInformalCarerTel("02120111112");
    // Key Worker
    fields.setKeyWorkerName(new PersonName("Mrs", "Amy", "VanDerVeen"));
    fields.setKeyWorkerTelephone("01222222222");
    // Anticipatory medicines
    fields.setAnticipatoryMedicinesIssued(true);
    fields.setAnticipatoryMedicinesLocation("In fridge at home");
    fields.setAnticipatoryMedicinesDateIssued(new DateValue("20120402"));
    // DNACPR
    fields.setDNACPR(DNACPRprefSnCT._Forattemptedcardiopulmonaryresuscitationfinding);
    fields.setDNACPRDate(new DateValue("20120912"));
    fields.setDNACPRReviewDate(new DateValue("20130205"));
    fields.setDNACPRCreatedDate(new DateValue("20120910"));
    fields.setDNACPRLocation("In filing cabinet at home (top drawer)");
    // Free text box
    fields.setOtherRelevantInformation("Discussion held with wife about care plan");
   
    // Senior responsible clinician
    fields.setSeniorResponsibleClinicianName(new PersonName("Mr", "Senior", "Clinician"));
    fields.setSeniorResponsibleClinicianSDSID("9328789743214");
    fields.setSeniorResponsibleClinicianORGID("V444");
    fields.setSeniorResponsibleClinicianORGName("The Medical Centre");
    fields.setSeniorResponsibleClinicianJobRole(JobRoleName._PalliativeCarePhysician);
    fields.setSeniorResponsibleClinicianTelephone("01137766858");
    fields.setSeniorResponsibleClinicianAddress(new Address()
                            .addAddressLine("432 Street")
                            .addAddressLine("Town")
                            .setPostcode("XX1 1XX"));

   
View Full Code Here

                .setPatientIDType(PatientIDType.LocalID.code));
    template.addPatientID(new PatientIDWithTraceStatuses()
                .setPatientID("9932541280")
                .setNHSNoTraceStatus(NHSNumberTraceStatus.TraceNeedsToBeResolved.code)
                .setPatientIDType(PatientIDType.UnverifiedNHSNumber.code));
    template.addAddress(new Address()
                .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");
    template.addOrganisationTelephone(new Telecom()
                        .setTelecom("tel:01634111222")
                        .setTelecomType(TelecomUseType.WorkPlace.code));
    template.setOrganisationAddress(new Address()
                      .addAddressLine("Freshney Green PCC")
                      .addAddressLine("Grimsby")
                      .setPostcode("DN34 4GB")
                      .setAddressUse(AddressType.WorkPlace.code));
    template.setOrganisationType(CDAOrganizationProviderType._GPPractice);
View Full Code Here

     template.addId(new PersonID()
             .setType(PersonIDType.LocalPersonID.code)
             .setID("101")
             .setAssigningOrganisation("TAN01:NORTH EAST LINCOLNSHIRE CARE TRUST"));   
     template.setJobRoleName(JobRoleName._MidwifeSpecialistPractitioner);
     template.addAddress(new Address()
            .addAddressLine("Potter Street")
            .addAddressLine("Grimsby")
            .setPostcode("DN3 6AA")
            .setAddressUse(AddressType.WorkPlace.code));
     template.addTelephoneNumber(new Telecom("tel:01472312345"));
View Full Code Here

    author.addId(new PersonID()
                  .setID("101")
                  .setAssigningOrganisation("TAN01:NORTH EAST LINCOLNSHIRE CARE TRUST")
                  .setType(PersonIDType.LocalPersonID.code));
    author.setJobRoleName(JobRoleName._NR2050);
    author.addAddress(new Address()
                  .addAddressLine("Potter Street")
                  .addAddressLine("Grimsby")
                  .setPostcode("DN3 6AA")
                  .setAddressUse(AddressType.WorkPlace.code));
    author.addTelephoneNumber(new Telecom("tel:01472312345"));
View Full Code Here

    author.addId(new PersonID()
                  .setID("112")
                  .setAssigningOrganisation("TAN01:NORTH EAST LINCOLNSHIRE CARE TRUST")
                  .setType(PersonIDType.LocalPersonID.code));
    author.setJobRoleName(JobRoleName._NR0260);
    author.addAddress(new Address()
                  .addAddressLine("Freshney Green PCC")
                  .addAddressLine("Carlton Court")
                  .addAddressLine("Martin Road")
                  .addAddressLine("Grimsby")
                  .setPostcode("DN34 4GB")
View Full Code Here

    event.setEventSubtype(NotificationDocumentEvent._01);
    document.setEvent(event);   

    // ********** 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

              .setID("20354681")
              .setType(PersonIDType.SDSRoleProfile.code));
   
    template.setRoleCode(RoleCode._Hospital);
   
    template.setAddress(new Address()
                  .addAddressLine("21, County Lodge")
                  .addAddressLine("Woodtown")
                  .setCity("Medway")
                  .setPostcode("ME5 FS1"));
   
View Full Code Here

   
     template.setID("EF0C2E84-2A89-11E2-A57D-D9CB6088709B");
    
     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("Allen"));
     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")
View Full Code Here

                  .setID("20354681")
                  .setType(PersonIDType.SDSRoleProfile.code));

    template.setJobRoleName(JobRoleName._NR0070);
   
    template.setAddress(new Address()
                  .addAddressLine("21, County Lodge")
                  .addAddressLine("Woodtown")
                  .setCity("Medway")
                  .setPostcode("ME5 FS1"));
   
View Full Code Here

TOP

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

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.