Package uk.nhs.interoperability.payloads.templates

Examples of uk.nhs.interoperability.payloads.templates.AuthorPersonUniversal.addId()


      throw missingFields;
    }
   
    AuthorPersonUniversal template = new AuthorPersonUniversal();
     // Author SID ID
    template.addId(new PersonID()
             .setType(PersonIDType.SDSID.code)
             .setID(fields.getDocumentAuthorSDSID()));
   
    // Author Job Role
     template.setJobRoleName(fields.getDocumentAuthorRole());
View Full Code Here


    return template;
  }
 
  public static AuthorPersonUniversal createAuthorNiralSingh() {
    AuthorPersonUniversal template = new AuthorPersonUniversal();
     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()
View Full Code Here

    return template;
  }
 
  public static AuthorPersonUniversal createAuthorIsabellaHopkins() {
    AuthorPersonUniversal author = new AuthorPersonUniversal();
    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()
View Full Code Here

    return author;
  }
 
  public static AuthorPersonUniversal createAuthorJohnManning() {
    AuthorPersonUniversal author = new AuthorPersonUniversal();
    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()
View Full Code Here

    // Note: this author section for Niral Singh differs slightly from the author sections for
    // Niral Singh used elsewhere in the document, hence the repetition here. This could potentially
    // be a valid use-case if the author information is captured at different times, or even in
    // different systems.
    AuthorPersonUniversal originalAuthor = new AuthorPersonUniversal();
    originalAuthor.addId(new PersonID()
                  .setID("201")
                  .setAssigningOrganisation("TAN01:NORTH EAST LINCOLNSHIRE CARE TRUST")
                  .setType(PersonIDType.LocalPersonID.code));
    originalAuthor.setJobRoleName(JobRoleName._NR2040);
    originalAuthor.setName(new PersonName()
View Full Code Here

    return template;
  }
 
  public static AuthorPersonUniversal createAuthorNiralSingh() {
    AuthorPersonUniversal template = new AuthorPersonUniversal();
     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()
View Full Code Here

    return template;
  }
 
  public static AuthorPersonUniversal createAuthorIsabellaHopkins() {
    AuthorPersonUniversal author = new AuthorPersonUniversal();
    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()
View Full Code Here

    return author;
  }
 
  public static AuthorPersonUniversal createAuthorJohnManning() {
    AuthorPersonUniversal author = new AuthorPersonUniversal();
    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()
View Full Code Here

    return template;
  }
 
  public static AuthorPersonUniversal createAuthorMaryJones() {
    AuthorPersonUniversal template = new AuthorPersonUniversal();
     template.addId(new PersonID()
             .setType(PersonIDType.LocalPersonID.code)
             .setID("101")
             .setAssigningOrganisation("5L399:Medway NHS Foundation Trust"));   
     // In the sample XML the SDSJobRoleName vocab is used (which is an empty vocab). We will use it's OID here:
     template.setJobRoleName(new CodedValue("OOH02","Nurse Practitioner","2.16.840.1.113883.2.1.3.2.4.17.196"));
View Full Code Here

    return template;
  }
 
  public static AuthorPersonUniversal createAuthorMaryFlemming() {
    AuthorPersonUniversal template = new AuthorPersonUniversal();
     template.addId(new PersonID()
             .setType(PersonIDType.LocalPersonID.code)
             .setID("102")
             .setAssigningOrganisation("5L399:Medway South Out of Hours Centre"));   
     // In the sample XML the SDSJobRoleName vocab is used (which is an empty vocab). We will use it's OID here:
     template.setJobRoleName(new CodedValue("OOH02","Nurse Practitioner","2.16.840.1.113883.2.1.3.2.4.17.196"));
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.