Package uk.nhs.interoperability.payloads.templates

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


    template.setCDAPersonRelationshipType(CDAPersonRelationshipType._Spouse);
    return template;
  }
 
  public static ServiceEvent createServiceEvent() {
    ServiceEvent template = new ServiceEvent();
   
    template.setId("8371D2F1-123F-4A14-A1AC-C6C8023103CF");
    template.setClassCode(HL7ActType.Procedure.code);
    template.setEventCode(new CodedValue("73761001","colonoscopy","2.16.840.1.113883.2.1.3.2.4.15"));
    template.setEffectiveTime(
              new DateRange(new DateValue("201105192000+01"),
                      new DateValue("201105192045+01")));
   
    // Performer
    PersonWithOrganizationUniversal performer = new PersonWithOrganizationUniversal();
    performer.addPersonId(new PersonID()
                  .setNullFlavour(NullFlavour.NI.code));
    performer.setPersonName(new PersonName("Joe Bloggs"));
    performer.setOrgId(new OrgID()
                  .setID("8785675885765767")
                  .setType(OrgIDType.ODSOrgID.code));
    performer.setOrgName("xx organisation");
   
    template.addEventPerformer(new ServiceEventPerformer()
                      .setPerformer(performer)
                      .setPerformerType(HL7PerformerType.Performer.code));
    return template;
  }
View Full Code Here

TOP

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

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.