Package uk.nhs.interoperability.payloads.templates

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


    author.setOrganisationName("St James Hospital");
    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()
                  .addAddressLine("Freshney Green PCC")
                  .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()
                  .setID("V365F")
                  .setType(OrgIDType.ODSOrgID.code));
    author.setOrganisationName("Freshney Green PCC");
    return author;
  }
View Full Code Here


                  .setAddressUse(AddressType.WorkPlace.code));
    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"));
     template.setName(new PersonName()
            .setGivenName("Mary")
            .setFamilyName("Jones"));
    template.setOrganisationId(new OrgID()
                  .setID("5L399")
                  .setType(OrgIDType.ODSOrgID.code));
    template.setOrganisationName("Medway NHS Foundation Trust");
    return template;
  }
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"));
     template.setName(new PersonName()
            .setGivenName("Mary")
            .setFamilyName("Flemming"));
    template.setOrganisationId(new OrgID()
                  .setID("5L399")
                  .setType(OrgIDType.ODSOrgID.code));
    template.setOrganisationName("Medway South Out of Hours Centre");
    return template;
  }
View Full Code Here

   
    // Review date
    fields.setDNACPRReviewDate((DateValue)dnacpr.getReviewDate());
   
    // Author: Senior Responsible Clinician
    AuthorPersonUniversal src = (AuthorPersonUniversal)dnacpr.getSeniorResponsibleClinicianAuthor();
     // Name
     fields.setSeniorResponsibleClinicianName(TemplateParsingHelper.getName(src));
     // Job Role
     fields.setSeniorResponsibleClinicianJobRole(TemplateParsingHelper.getJobRole(src, "SeniorResponsibleClinicianJobRole", parseExceptions));
     // ID
View Full Code Here

TOP

Related Classes of uk.nhs.interoperability.payloads.templates.AuthorPersonUniversal

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.