Package uk.nhs.interoperability.payloads

Examples of uk.nhs.interoperability.payloads.CodedValue


 
  public static EncompassingEncounter createEncounter() {
    EncompassingEncounter template = new EncompassingEncounter();
   
    template.setId("3D3B95B5-24AA-42ED-9F77-BE7ECEB78C3E");
    template.setCode(new CodedValue("11429006", "Consultation", "2.16.840.1.113883.2.1.3.2.4.15"));
    template.setEffectiveTime(
        new DateRange(new DateValue("201105191945+01"),
                new DateValue("201105192015+01")));
   
    // Responsible Party
    PersonWithOrganizationUniversal responsible = new PersonWithOrganizationUniversal();
    responsible.addPersonId(new PersonID().setNullFlavour(NullFlavour.NI.code));
    responsible.setJobRoleName(JobRoleName._MedicalDirector);
    responsible.setPersonName(new PersonName()
                    .setGivenName("Dave")
                    .setFamilyName("Cornwell"));
    responsible.setOrgId(new OrgID()
                  .setID("VDE232323")
                  .setType(OrgIDType.ODSOrgID.code));
    responsible.setOrgName("Medway South Walk-in Centre");
    template.setResponsibleParty(responsible);
   
    // Healthcare Facility
    template.setEncounterCareSettingType(new CodedValue("313161000000107", "Example Care Setting", "2.16.840.1.113883.2.1.3.2.4.15"));
   
    return template;
  }
View Full Code Here


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

    template.setID("227413CC-28FA-11E2-ADB5-72976188709B");
   
    // There is only one code in this vocab, so if the below is omitted, that code will still be used - however
    // we need to set it explicitly if we also want the code to include a cross-reference to a text section, as in this test
    template.setAnticipatoryMedicineBoxIssueCode(
          new CodedValue(EoLAnticipatoryMedicineBoxIssueSnCT._376201000000102, "#a4"));
   
    template.setTimeIssued(new DateValue("201209111400+0000"));
    template.setLocationOfBox("Bedside Table Drawer");
   
    return template;
View Full Code Here

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

    template.setID("C7E93500-28F8-11E2-B6B7-30966188709B");
    template.setEffectiveTime(new DateValue("201209111400+0000"));
    template.setADRTPreference(new CodedValue(EoLADRTprefSnCT._816301000000100, "#a2"));
    template.setADRTDocumentLocation("The signed copy of the documentation is available in patient bedside cabinet.");
    template.setADRTDiscussed(new CodedValue(ADRTDiscussedSnCT._820621000000107, "#a3"));
   
    return template;
  }
View Full Code Here

   
    List<PersonID> ids = template.getId();
    assertEquals("200025166218", (ids.get(0)).getID());
    assertEquals("100099876439", (ids.get(1)).getID());
   
    CodedValue job = template.getJobRoleName();
    assertEquals("NR0050", job.getCode());
  }
View Full Code Here

      template.setLastAmendedAuthor(lastAmendingAuthor);
    }
   
    // EOL Tool used
    if (isbFields.getEolcTool() != null) {
      template.setEoLToolSnCT(new CodedValue(isbFields.getEolcTool(), "#eolcTool"));
    }
   
    // EOLC Tool Pathway Stage
    if (isbFields.getEolcPathwayStageNONISB() != null) {
      template.setEOLToolStage(isbFields.getEolcPathwayStageNONISB());
View Full Code Here

    // Date when made aware of prognosis
    template.setEffectiveTime(isbFields.getPrognosisAwarenessRecordedDate());
   
    // Awareness of prognosis
    template.setPrognosisAwareness(new CodedValue(isbFields.getMainInformalCarerAwareOfPrognosis(), "#prognosisawareness"));
   
    // Main informal carer (name, tel)
     if (isbFields.getMainInformalCarerName() != null) {
       PatientRelationshipParticipantRole mic = new PatientRelationshipParticipantRole();
       mic.setPersonRole(JobRoleName._NR1980);
View Full Code Here

    }
   
    // Time recorded
    template.setEffectiveTime(isbFields.getADRTRecordedDate());
    // Preference
    template.setADRTPreference(new CodedValue(isbFields.getADRT(), "#adrt"));
    // Document location
    template.setADRTDocumentLocation(isbFields.getADRTDocumentLocation());
    // Discussed with clinician
    if (isbFields.isADRTDiscussedWithClinicianNONISB()) {
      template.setADRTDiscussed(new CodedValue(ADRTDiscussedSnCT._820621000000107, "#adrtDiscussed"));
    }
    return template;
  }
View Full Code Here

    AnticipatoryMedicineBoxIssueProcedure template = new AnticipatoryMedicineBoxIssueProcedure();
    template.setID(CDAUUID.generateUUIDString());
    // There is only one code in this vocab, so if the below is omitted, that code will still be used - however
    // we need to set it explicitly if we also want the code to include a cross-reference to a text section, which we do..
    template.setAnticipatoryMedicineBoxIssueCode(
          new CodedValue(EoLAnticipatoryMedicineBoxIssueSnCT._376201000000102, "#ambox"));
    // Date issued
    template.setTimeIssued(isbFields.getAnticipatoryMedicinesDateIssued());
    // Location
    template.setLocationOfBox(isbFields.getAnticipatoryMedicinesLocation());
    return template;
View Full Code Here

    template.setID(CDAUUID.generateUUIDString());
    // DNACPR Decision date
    template.setEffectiveTime(isbFields.getDNACPRDate());
    // DNACPR Preference
    template.setDNACPRPreference(new CodedValue(isbFields.getDNACPR(), "#dnacprdecision"));
    // DNACPR Decision Originally Recorded Date
    template.setSeniorResponsibleClinicianTimeAuthored(isbFields.getDNACPRCreatedDate());
    // Document Location
    template.setDNACPRDocsLocation(isbFields.getDNACPRLocation());
    // Review date
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.