Package uk.nhs.interoperability.payloads.commontypes

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


    if (missingFields.hasEntries()) {
      throw missingFields;
    }
    RecipientPersonUniversal template = new RecipientPersonUniversal();
    // ID (NULL)
    template.addId(new RoleID().setNullFlavour(NullFlavour.NA.code));
    // recipientName
    template.setName(recipient.getRecipientName());
    // recipientAddress
    if (recipient.getRecipientAddress() != null) {
      template.setAddress(recipient.getRecipientAddress());
View Full Code Here


    return template;
  }
 
  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._NR0260);
    template.setName(new PersonName("De Hopper"));
    template.setOrgId(new OrgID()
                .setID("V396F")
                .setType(OrgIDType.ODSOrgID.code));
View Full Code Here

    return template;
  }
 
  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));
View Full Code Here

  }
 
  public static RecipientPersonUniversalv1 createFull() {
    RecipientPersonUniversalv1 template = new RecipientPersonUniversalv1();
   
    template.addId(new RoleID()
              .setID("13579")
              .setAssigningOrganisation("AB1:Medway NHS Foundation Trust"));
   
    template.setJobRoleName(JobRoleName._NR0050);
   
View Full Code Here

  }
 
  public static RecipientPersonUniversal createFull() {
    RecipientPersonUniversal template = new RecipientPersonUniversal();
   
    template.addId(new RoleID()
              .setID("13579")
              .setAssigningOrganisation("AB1:Medway NHS Foundation Trust"));
   
    template.setJobRoleName(JobRoleName._NR0050);
   
View Full Code Here

    return template;
  }
 
  public static RecipientPersonUniversalv1 createRecipient() {
    RecipientPersonUniversalv1 template = new RecipientPersonUniversalv1();
    template.addId(new RoleID()
              .setID("1234512345")
              .setAssigningOrganisation("V396A:Medway PCT"));
    template.addTelephoneNumber(new Telecom()
                      .setTelecom("mailto:t.hall@emailfree.co.uk"));
    template.setJobRoleName(JobRoleName._SpecialistNursePractitioner);
View Full Code Here

    return template;
  }
 
  public static RecipientPersonUniversalv1 createCopyRecipient() {
    RecipientPersonUniversalv1 template = new RecipientPersonUniversalv1();
    template.addId(new RoleID().setNullFlavour(NullFlavour.NI.code));
    template.setJobRoleName(JobRoleName._GeneralMedicalPractitioner);
    template.setName(new PersonName()
                .setFamilyName("Shelley")
                .setGivenName("Pauline"));
    template.setOrgId(new OrgID()
View Full Code Here

TOP

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

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.