Package uk.nhs.interoperability.payloads.commontypes

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


    // Author Job Role
     template.setJobRoleName(fields.getDocumentAuthorRole());
    
     // Author Address
     if (fields.getDocumentAuthorAddress() != null) {
       Address add = fields.getDocumentAuthorAddress();
       add.setAddressUse(AddressType.WorkPlace.code);
       template.addAddress(add);
     }
    
     // Author telephone number
     if (fields.getDocumentAuthorTelephone() != null) {
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");
View Full Code Here

 
  public static EndOfLifeCareISBFields createFull() {
    EndOfLifeCareISBFields fields = createMinimal();
   
    fields.setEpaccsRecordAuthoredDate(new DateValue("201201121201+0000"));
    fields.setEpaccsRecordAuthorAddress(new Address()
                          .addAddressLine("432 Street")
                          .addAddressLine("Town")
                          .setPostcode("XX1 1XX"));
    fields.setEpaccsRecordAuthorRole(JobRoleName._PalliativeCarePhysician);
    fields.setEpaccsRecordAuthorSDSID("123456789");
    fields.setEpaccsRecordAuthorTelephone("0123456789");
    fields.setEpaccsRecordAuthorName(new PersonName("Dr", "Fred", "Andersen"));
    fields.setEpaccsRecordAuthorOrganisationODSID("V123G");
    fields.setEpaccsRecordAuthorOrganisationName("St Nowhere Hospital");
    fields.setEpaccsRecordReviewDate(new DateValue("20130601"));
    fields.setEpaccsRecordUpdatedDate(new DateValue("20130101"));
    fields.setEpaccsRecordUpdateAuthorAddress(new Address()
                          .addAddressLine("6 Place")
                          .addAddressLine("Area")
                          .setPostcode("XY1 1ZA"));
    fields.setEpaccsRecordUpdateAuthorRole(JobRoleName._NurseConsultant);
    fields.setEpaccsRecordUpdateAuthorSDSID("87346283476");
    fields.setEpaccsRecordUpdateAuthorTelephone("01133333333");
    fields.setEpaccsRecordUpdateAuthorName(new PersonName("Mr", "James", "Smithson"));
    fields.setEpaccsRecordUpdateAuthorOrganisationODSID("AA11");
    fields.setEpaccsRecordUpdateAuthorOrganisationName("Global Community Health");
    fields.setPatientPreferredName(new PersonName("Joey"));
    fields.setPatientInterpreterNeeded(true);
    fields.setPatientPreferredSpokenLanguage(HumanLanguage._German);
    fields.setPatientDisability("Slight Limp");
    fields.setPatientTelephone("02120111111");
    fields.setPatientMobile("07920111111");
    fields.setMainInformalCarerName(new PersonName("Mrs", "Susan", "Bloggs"));
    fields.setMainInformalCarerTel("02120111112");
    fields.setMainInformalCarerAwareOfPrognosis(PrognosisAwarenessSnCT._Carerawareofprognosissituation);
    fields.setPrognosisAwarenessRecordedDate(new DateValue("20121201"));
    fields.setUsualGPTelephone("01132872624");
    fields.setUsualGPFax("01132872625");
    fields.setUsualGPAddress(new Address()
                    .addAddressLine("Dr Jones Medical Practice")
                    .addAddressLine("Somewhere Over the Rainbow")
                    .addAddressLine("Way up High")
                    .setPostcode("FT1 YBR"));
    fields.setKeyWorkerName(new PersonName("Mrs", "Amy", "VanDerVeen"));
    fields.setKeyWorkerTelephone("01222222222");
    fields.setKeyWorkerAddress(new Address()
                    .addAddressLine("Key Worker Centre")
                    .addAddressLine("Citysville")
                    .setPostcode("KW1 1KW"));
    fields.setKeyWorkerJobRole(JobRoleName._CommunityNurse);
    fields.setKeyWorkerSDSID("2938798732864");
    fields.setKeyWorkerOrgID("V111");
    fields.setKeyWorkerOrgName("Community Nursing, Citysville");
   
    fields.addFormalCarer(new EndOfLifeCareDocumentFormalCarer(new PersonName("Mr", "Simon", "Jones"),
                                  "01348876587",
                                  JobRoleName._Dietitian));
   
    fields.addFormalCarer(new EndOfLifeCareDocumentFormalCarer(new PersonName("Miss", "Eileen", "Johnson"),
                                  "01348446533",
                                  JobRoleName._Counsellor));
   
    fields.setOtherRelevantDiagnoses("Severe Asthma");
    fields.setAllergiesAndAdverseReactions("Allergic to Penicillin");
    fields.setAnticipatoryMedicinesIssued(true);
    fields.setAnticipatoryMedicinesLocation("In fridge at home");
    fields.setAnticipatoryMedicinesDateIssued(new DateValue("20120402"));
    fields.setEolcPathwayStageNONISB("Amber");
    fields.setAdvanceStatements("None Recorded");
    fields.setPreferredPlaceOfDeath("Usual place of residence");
    fields.setPreferredPlaceOfDeathOrganisation("Not applicable");
    fields.setPreferredPlaceOfDeathAddress(new Address()
                          .addAddressLine("123 The Street")
                          .addAddressLine("The Town")
                          .setPostcode("AB1 2CD"));
    fields.setPreferredPlaceOfDeathIsUPR("Yes");
    fields.setPreferredPlaceOfDeath2("Hospital");
    fields.setPreferredPlaceOfDeath2Organisation("St Nowhere Hospital");
    fields.setPreferredPlaceOfDeath2Address(new Address()
                          .addAddressLine("432 Street")
                          .addAddressLine("Town")
                          .setPostcode("XX1 1XX"));
    fields.setPreferredPlaceOfDeath2IsUPR("No");
    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)");
    fields.setADRT(EoLADRTprefSnCT._HasadvancedecisiontorefuselifesustainingtreatmentMentalCapacityAct2005finding);
    fields.setADRTDiscussedWithClinicianNONISB(true);
    fields.setADRTDocumentLocation("In filing cabinet at home (bottom drawer)");
    fields.setADRTRecordedDate(new DateValue("20120923"));
    fields.setLPAName(new PersonName("Mr", "David", "Bloggs"));
    fields.setLPAAuthority(AuthoritytoLPASnCT._HasappointedpersonwithpersonalwelfarelastingpowerofattorneyMentalCapacityAct2005finding);
    fields.setLPADate(new DateValue("20110113"));
    fields.setLPATelephone("02120111112");
    fields.setAdditionalPersonToInvolve(new PersonName("Miss", "Sue", "Bloggs"));
    fields.setAdditionalPersonToInvolveTel("02198846627");
    fields.setAdditionalPersonToInvolve2(new PersonName("Mr", "Bob", "Bloggs"));
    fields.setAdditionalPersonToInvolve2Tel("02889999999");
    fields.setOtherRelevantInformation("Favourite colour is red");
    fields.setDocumentCreationDate(new DateValue("201308021234+0000"));
    fields.setDocumentSetId("D8F79E4F-4AA9-4662-9CCE-B13B5F955685");
    fields.setDocumentVersionNumber(1);
    fields.setDocumentAuthorAddress(new Address()
                      .addAddressLine("432 Street")
                      .addAddressLine("Town")
                      .setPostcode("XX1 1XX"));
    fields.setDocumentAuthorTelephone("01135577744");
    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"));
    fields.setEPaCCSURL("https://www.epaccs.com");
   
View Full Code Here

     template.addAuthorID(new PersonID()
             .setType(PersonIDType.LocalPersonID.code)
             .setID("101")
             .setAssigningOrganisation("TAN01:NORTH EAST LINCOLNSHIRE CARE TRUST"));   
     template.setAuthorJobRoleName(JobRoleName._NR2040);
     template.setAuthorPersonAddress(new Address()
            .addAddressLine("Potter Street")
            .addAddressLine("Grimsby")
            .setPostcode("DN3 6AA")
            .setAddressUse(AddressType.WorkPlace.code));
     template.setAuthorTelephone("tel:01472312345");
View Full Code Here

                  .setAssigningOrganisation("V396A:Medway PCT")
                  .setPatientIDType(PatientIDType.LocalID.code));
    template.addPatientID(new PatientID()
                  .setPatientID("993254128")
                  .setPatientIDType(PatientIDType.UnverifiedNHSNumber.code));   
    template.addAddress(new Address()
                  .addAddressLine("Appleton House")
                  .addAddressLine("Lanchester Road")
                  .addAddressLine("Grimsby")
                  .setPostcode("DN3 1UJ")
                  .setAddressUse(AddressType.Home.code));
    template.addTelephoneNumber(new Telecom()
                  .setTelecom("tel:01472354321")
                  .setTelecomType(TelecomUseType.HomeAddress.code));
    template.addTelephoneNumber(new Telecom()
                  .setTelecom("mailto:mark.smith@emailfree.co.uk")
                  .setTelecomType(TelecomUseType.HomeAddress.code));
    template.addPatientName(new PersonName()
                  .setTitle("Mr")
                  .setGivenName("Mark")
                  .setFamilyName("Smith"));
    template.setSex(Sex._1);
    template.setBirthTime(new DateValue("19210101"));
    // Language
    LanguageCommunication language = new LanguageCommunication();
    language.setLanguage(HumanLanguage._en.code);
    //language.setMode(LanguageAbilityMode._ESP);
    language.setProficiencyLevel(LanguageAbilityProficiency._0);
    //language.setPreferenceIndNullFlavour(NullFlavour.NotAsked.code);
    template.addLanguages(language);
    // Organisation - Registered GP:
    template.setRegisteredGPOrgId(new OrgID()
                  .setID("V396F")
                  .setType(OrgIDType.ODSOrgID.code));
    template.setRegisteredGPOrgName("Dr De Hopper and Partners");
    template.addRegisteredGPTelephone(new Telecom()
                  .setTelecom("tel:01634111222")
                  .setTelecomType(TelecomUseType.WorkPlace.code));
    template.setRegisteredGPAddress(new Address()
                  .addAddressLine("Freshney Green PCC")
                  .addAddressLine("Grimsby")
                  .setPostcode("DN34 4GB")
                  .setAddressUse(AddressType.WorkPlace.code));
    return template;
View Full Code Here

     template.addId(new PersonID()
             .setType(PersonIDType.LocalPersonID.code)
             .setID("101")
             .setAssigningOrganisation("TAN01:NORTH EAST LINCOLNSHIRE CARE TRUST"));   
     template.setJobRoleName(JobRoleName._NR2040);
     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

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

    template.setEffectiveTime(new DateValue("201209111400+0000"));
    template.setPrognosisAwareness(new CodedValue(PrognosisAwarenessSnCT._751941000000100, "#a6"));
    // Main informal carer
    PatientRelationshipParticipantRole carer = new PatientRelationshipParticipantRole();
    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"));
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.