Package uk.nhs.interoperability.payloads

Examples of uk.nhs.interoperability.payloads.CodedValue


    AuthoritytoLastingPowerofAttorney template = new AuthoritytoLastingPowerofAttorney();
    template.setID(CDAUUID.generateUUIDString());
    // Date granted
    template.setEffectiveTime(isbFields.getLPADate());
    // LPA Authority
    template.setAuthoritytoLPA(new CodedValue(isbFields.getLPAAuthority(), "#lpaauthority"));
   
    // LPA Person details
    PatientRelationshipParticipantRole person = new PatientRelationshipParticipantRole();
    person.setPersonRole(JobRoleName._NR2010);
    person.setAddress(new Address().setNullFlavour(NullFlavour.NI.code));
View Full Code Here


  }
 
  public static RecipientWorkgroupUniversal createFull() {
    RecipientWorkgroupUniversal template = new RecipientWorkgroupUniversal();
   
    template.setWorkgroupName(new CodedValue("01", "MEDWAYSPECIALISTTEAM"));
   
    template.setWorkgroupId(new WorkgroupID()
                  .setID("1000998765123")
                  .setType(WorkgroupIDType.SDSWorkgroupID.code));
   
View Full Code Here

  }
 
  public static RecipientWorkgroupUniversal createMinimal() {
    RecipientWorkgroupUniversal minimal = new RecipientWorkgroupUniversal();
   
    minimal.setWorkgroupName(new CodedValue("01", "MEDWAYSPECIALISTTEAM"));
   
    minimal.setWorkgroupId(new WorkgroupID()
                    .setNullFlavour(NullFlavour.NI.code));
   
    minimal.setOrgId(new OrgID()
View Full Code Here

    if (patient.getLanguages() != null) {
      for (LanguageCommunication language : patient.getLanguages()) {
        if (language.getPreferenceInd() != null && language.getPreferenceInd().equals("true")) {
          // This one is a bit more awkward to turn back into an enum because we only have the code and no OID
          HumanLanguage languageCode = (HumanLanguage)HelperUtils.safelyMapCodedValueToVocabEntry(
              new CodedValue(language.getLanguage(), "", HumanLanguage._en.getOID()), HumanLanguage._English,
              "PreferredSpokenLanguage", parseExceptions, false);
          fields.setPatientPreferredSpokenLanguage(languageCode);
        }
        // Interpreter needed (for English)
        if (language.getLanguage().equals(HumanLanguage._en.code)) {
View Full Code Here

   
     template.setID(new WorkgroupID()
                 .setID("1000998765123")
                 .setType(WorkgroupIDType.SDSWorkgroupID.code));
    
     template.setWorkgroupName(new CodedValue("01","MEDWAYSPECIALISTTEAM"));
   
     template.addTelephoneNumber(new Telecom("tel:01634445667"));
    
     template.setPersonName(new PersonName()
                     .setTitle("Dr")
View Full Code Here

  }
 
  public static WorkgroupUniversal createMinimal() {
    WorkgroupUniversal template = new WorkgroupUniversal();

    template.setWorkgroupName(new CodedValue("01","MEDWAYSPECIALISTTEAM"));
        
    template.setOrgId(new OrgID()
                .setID("XZ901")
                .setType(OrgIDType.ODSOrgID.code));
   
View Full Code Here

  public static AuthoritytoLastingPowerofAttorney createFull() {
    AuthoritytoLastingPowerofAttorney template = new AuthoritytoLastingPowerofAttorney();

    template.setID("26919440-2A88-11E2-A205-1ECA6088709B");
    template.setEffectiveTime(new DateValue("201209111400+0000"));
    template.setAuthoritytoLPA(new CodedValue(AuthoritytoLPASnCT._816381000000105, "#a7"));
   
    PatientRelationshipParticipantRole person = new PatientRelationshipParticipantRole();
    person.setPersonRole(JobRoleName._NR2010);
    person.setAddress(new Address().setNullFlavour(NullFlavour.NI.code));
    person.addTelephoneNumber(new Telecom("tel:07871715735"));
View Full Code Here

  }
 
  public static RecipientWorkgroupUniversalv2 createFull() {
    RecipientWorkgroupUniversalv2 template = new RecipientWorkgroupUniversalv2();
   
    template.setWorkgroupName(new CodedValue("01", "MEDWAYSPECIALISTTEAM"));
   
    template.setWorkgroupId(new WorkgroupID()
                  .setID("1000998765123")
                  .setType(WorkgroupIDType.SDSWorkgroupID.code));
   
View Full Code Here

  }
 
  public static RecipientWorkgroupUniversalv2 createMinimal() {
    RecipientWorkgroupUniversalv2 minimal = new RecipientWorkgroupUniversalv2();
   
    minimal.setWorkgroupName(new CodedValue("01", "MEDWAYSPECIALISTTEAM"));
   
    minimal.setWorkgroupId(new WorkgroupID()
                    .setNullFlavour(NullFlavour.NI.code));
   
    minimal.setOrgId(new OrgID()
View Full Code Here

  public static ServiceEvent createFull() {
    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")));
   
View Full Code Here

TOP

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

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.