Examples of PatientUniversal


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

    template.setEncompassingEncounter(createEncounter());
    return template;
  }
 
  public static PatientUniversal createPatient() {
    PatientUniversal template = new PatientUniversal();
    template.addPatientID(new PatientID()
                  .setPatientID("K12345")
                  .setAssigningOrganisation("V396A:Medway PCT")
                  .setPatientIDType(PatientIDType.LocalID.code));
    template.addPatientID(new PatientID()
                  .setPatientID("993254128")
                  .setPatientIDType(PatientIDType.UnverifiedNHSNumber.code));   
    template.addAddress(new Address()
                  .addAddressLine("17, County Court")
                  .addAddressLine("Woodtown")
                  .addAddressLine("Medway")
                  .setPostcode("ME5 FS3")
                  .setAddressUse(AddressType.Home.code));
    template.addAddress(new Address()
                  .addAddressLine("Hightown Retirement Home")
                  .addAddressLine("2, Brancaster Road")
                  .addAddressLine("Medway")
                  .addAddressLine("Kent")
                  .setPostcode("ME5 FL5")
                  .setAddressUse(AddressType.PhysicalVisit.code));
    template.addTelephoneNumber(new Telecom()
                  .setTelecom("tel:01634775667")
                  .setTelecomType(TelecomUseType.HomeAddress.code));
    template.addTelephoneNumber(new Telecom()
                  .setTelecom("tel:01634451628")
                  .setTelecomType(TelecomUseType.VacationHome.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._Male);
    template.setBirthTime(new DateValue("19490101"));
    // Language
    LanguageCommunication language = new LanguageCommunication();
    language.setLanguage(HumanLanguage._en.code);
    template.addLanguages(language);
    // Organisation - Registered GP:
    template.setRegisteredGPOrgId(new OrgID()
                  .setID("V396F")
                  .setType(OrgIDType.ODSOrgID.code));
    template.setRegisteredGPOrgName("Medway Medical Practice");
    template.addRegisteredGPTelephone(new Telecom()
                  .setTelecom("tel:01634111222")
                  .setTelecomType(TelecomUseType.WorkPlace.code));
    template.setRegisteredGPAddress(new Address()
                  .addAddressLine("Springer Street")
                  .addAddressLine("Medway")
                  .setPostcode("ME5 5TY")
                  .setAddressUse(AddressType.WorkPlace.code));
    return template;
View Full Code Here

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

    template.setDocumentVersionNumber("1");
   
    // ==== Now, set the "left hand side" values in the document ====
   
    // Patient
    PatientUniversal patient = createPatient();
    template.setPatient(patient);
    // Author
    template.setTimeAuthored(new DateValue("201209111400+0000"));
    AuthorPersonUniversal author = createAuthorNiralSingh();
    template.setAuthor(author);
View Full Code Here

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

   
    return template;
  }
 
  public static PatientUniversal createPatient() {
    PatientUniversal template = new PatientUniversal();
    template.addPatientID(new PatientID()
                  .setPatientID("K12345")
                  .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
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.