Package uk.nhs.interoperability.payloads

Examples of uk.nhs.interoperability.payloads.DateValue


  public static EncompassingEncounter createFull() {
    EncompassingEncounter template = new EncompassingEncounter();
   
    template.setId("3D3B95B5-24AA-42ED-9F77-BE7ECEB78C3E");
    template.setCode(CDAEncounterType._Consultation);
    template.setEffectiveTime(new DateRange(new DateValue("201105191945+01"),
                        new DateValue("201105192015+01")));
   
    PersonWithOrganizationUniversal person = new PersonWithOrganizationUniversal();
    person.setJobRoleName(JobRoleName._MedicalDirector);
    person.addPersonId(new PersonID().setNullFlavour(NullFlavour.NI.code));
    person.setPersonName(new PersonName()
View Full Code Here


    String data = FileLoader.loadFileOnClasspath("/TestData/Templates/attachment1.xml");
    // Using the standard Java 6 base64 encoder
    String base64data = Base64.encodeBase64String(data.getBytes());
    template.setAttachment(base64data);
   
    template.setTimeAuthored(new DateValue("20130101"));
    AuthorPersonUniversal author = AuthorPersonUniversalTest.createFull();
    template.setAuthor(author);
   
    RelatedEntity informant = RelatedEntityTest.createFull();
    template.setInformant(informant);

   
    AttachmentSubject subject = new AttachmentSubject();
    subject.setAwarenessCode(TargetAwareness._fullawareness);
   
    subject.setSubjectRelationshipType(PersonalRelationshipRoleType._FamilyMember);
    subject.addSubjectAddress(new Address()
            .addAddressLine("Appleton House")
            .addAddressLine("Lanchester Road")
            .setCity("Grimsby")
            .setPostcode("DN3 1UJ"));
    subject.addSubjectTelephoneNumber(new Telecom("tel:01472354321"));
    subject.addSubjectName(new PersonName("Mr", "Mark", "Smith"));
    subject.setSubjectSex(Sex._Male);
    subject.setSubjectBirthTime(new DateValue("19490101"));
    template.addAttachmentSubject(subject);
   
    return template;
  }
View Full Code Here

    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")));
   
    PersonWithOrganizationUniversal person = new PersonWithOrganizationUniversal();
    person.addPersonId(new PersonID().setNullFlavour(NullFlavour.NI.code));
    person.setPersonName(new PersonName("Joe Bloggs"));
    person.setOrgId(new OrgID()
View Full Code Here

      String versionedName) {
   
    if (val == null) {
      return null;
    } else {
      DateValue dv = new DateValue(val);
      return dv;
    }
  }
View Full Code Here

TOP

Related Classes of uk.nhs.interoperability.payloads.DateValue

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.