Package uk.nhs.interoperability.payloads.commontypes

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


      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


   
    template.setId(CDAUUID.generateUUIDString());
    template.setEffectiveTime(fields.getDateOfBloodSpotScreening());
    // Performer
    template.setSampleCollectedTime(fields.getBloodSpotSampleCollectedTime());
    template.addPerformerPersonId(new PersonID().setID(fields.getBloodSpotPerformerPersonSDSID()).setType(PersonIDType.SDSID.code));
    template.setPerformerPersonName(fields.getBloodSpotPerformerPersonName());
    template.setPerformerOrgId(new OrgID()
                      .setID(fields.getBloodSpotPerformerOrganisationODSID())
                      .setType(OrgIDType.ODSOrgID.code));
    template.setPerformerOrgName(fields.getBloodSpotPerformerOrganisationName());
View Full Code Here

    // ==== Request information ====
    template.setRequestID("E71ADBF0-3A09-11E2-81C1-0800200C9A66");
    template.setTime(new DateValue("20120101150000+0000"));
   
    // Author
     template.addAuthorID(new PersonID()
             .setType(PersonIDType.LocalPersonID.code)
             .setID("101")
             .setAssigningOrganisation("TAN01:NORTH EAST LINCOLNSHIRE CARE TRUST"));   
     template.setAuthorJobRoleName(JobRoleName._NR2040);
     template.setAuthorPersonAddress(new Address()
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

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

    carer.setPersonRole(JobRoleName._NR1980);
    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")
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

TOP

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

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.