Package uk.nhs.interoperability.payloads.commontypes

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


     
      if (guardianAddress) {
        guardianFields.addAddress(fields.getGuardianAddress());
      }
      if (guardianTelephone) {
        guardianFields.addTelephoneNumber(new Telecom()
                      .setTelecom("tel:" + fields.getGuardianTelephone())
                      .setTelecomType(TelecomUseType.HomeAddress.code));
      }
      template.addGuardian(guardianFields);
    }
   
    // Provider Organisation
    if (provider) {
       template.setOrganisationId(new OrgID(OrgIDType.ODSOrgID.code, fields.getProviderOrganisationODSID()));
      template.setOrganisationName(fields.getProviderOrganisation());
      template.setOrganisationType(fields.getProviderOrganisationType());
     
      if (providerOrganisationTelephone) {
        template.addOrganisationTelephone(new Telecom()
                          .setTelecom("tel:" + fields.getProviderOrganisationTelephone())
                          .setTelecomType(TelecomUseType.WorkPlace.code));
      }
     
      if (providerOrganisationAddress) {
View Full Code Here


       template.addAddress(add);
     }
    
     // Author telephone number
     if (fields.getDocumentAuthorTelephone() != null) {
       template.addTelephoneNumber(new Telecom("tel:" + fields.getDocumentAuthorTelephone()));
     }
    
     // Author Name
     template.setName(fields.getDocumentAuthorName());
    
View Full Code Here

    if (recipient.getRecipientAddress() != null) {
      template.setAddress(recipient.getRecipientAddress());
    }
    // recipientTelephone
     if (recipient.getRecipientTelephone() != null) {
       template.addTelephoneNumber(new Telecom("tel:" + recipient.getRecipientTelephone()));
     }
    // recipientJobRole
     if (recipient.getRecipientJobRole() != null) {
       template.setJobRoleName(recipient.getRecipientJobRole());
     }
View Full Code Here

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

     template.addAddress(new Address()
            .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()
View Full Code Here

    author.addAddress(new Address()
                  .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()
View Full Code Here

                  .addAddressLine("Carlton Court")
                  .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()
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")
                 .setAddressUse(AddressType.WorkPlace.code));
     rp6.addTelephoneNumber(new Telecom("tel:07621846951"));
     rp6.setPersonName(new PersonName()
                 .setTitle("Dr")
                 .setGivenName("John")
                 .setFamilyName("Manning"));
     rp6.setOrgId(new OrgID()
View Full Code Here

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

    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"));
    template.setLPADetails(person);
View Full Code Here

TOP

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

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.