Package uk.nhs.interoperability.payloads

Examples of uk.nhs.interoperability.payloads.DateValue


    full = createFull();
  }
 
  public static EndOfLifeCareISBFields createMinimal() {
    EndOfLifeCareISBFields fields = new EndOfLifeCareISBFields();
    DateValue currentDate = new DateValue(new Date(), DatePrecision.Minutes);
    fields.setEpaccsRecordCreationDate(new DateValue("20130101"));
    fields.setPatientName(new PersonName("Mr", "Joe", "Bloggs"));
    fields.setPatientBirthDate(new DateValue("19800101"));
    fields.setPatientGender(Sex._Male);
    fields.setPatientNHSNo("993254128");
    fields.setPatientNHSNoIsTraced(true);
    fields.setPatientAddress(new Address()
                    .addAddressLine("123 The Street")
View Full Code Here


  }
 
  public static EndOfLifeCareISBFields createFull() {
    EndOfLifeCareISBFields fields = createMinimal();
   
    fields.setEpaccsRecordAuthoredDate(new DateValue("201201121201+0000"));
    fields.setEpaccsRecordAuthorAddress(new Address()
                          .addAddressLine("432 Street")
                          .addAddressLine("Town")
                          .setPostcode("XX1 1XX"));
    fields.setEpaccsRecordAuthorRole(JobRoleName._PalliativeCarePhysician);
    fields.setEpaccsRecordAuthorSDSID("123456789");
    fields.setEpaccsRecordAuthorTelephone("0123456789");
    fields.setEpaccsRecordAuthorName(new PersonName("Dr", "Fred", "Andersen"));
    fields.setEpaccsRecordAuthorOrganisationODSID("V123G");
    fields.setEpaccsRecordAuthorOrganisationName("St Nowhere Hospital");
    fields.setEpaccsRecordReviewDate(new DateValue("20130601"));
    fields.setEpaccsRecordUpdatedDate(new DateValue("20130101"));
    fields.setEpaccsRecordUpdateAuthorAddress(new Address()
                          .addAddressLine("6 Place")
                          .addAddressLine("Area")
                          .setPostcode("XY1 1ZA"));
    fields.setEpaccsRecordUpdateAuthorRole(JobRoleName._NurseConsultant);
    fields.setEpaccsRecordUpdateAuthorSDSID("87346283476");
    fields.setEpaccsRecordUpdateAuthorTelephone("01133333333");
    fields.setEpaccsRecordUpdateAuthorName(new PersonName("Mr", "James", "Smithson"));
    fields.setEpaccsRecordUpdateAuthorOrganisationODSID("AA11");
    fields.setEpaccsRecordUpdateAuthorOrganisationName("Global Community Health");
    fields.setPatientPreferredName(new PersonName("Joey"));
    fields.setPatientInterpreterNeeded(true);
    fields.setPatientPreferredSpokenLanguage(HumanLanguage._German);
    fields.setPatientDisability("Slight Limp");
    fields.setPatientTelephone("02120111111");
    fields.setPatientMobile("07920111111");
    fields.setMainInformalCarerName(new PersonName("Mrs", "Susan", "Bloggs"));
    fields.setMainInformalCarerTel("02120111112");
    fields.setMainInformalCarerAwareOfPrognosis(PrognosisAwarenessSnCT._Carerawareofprognosissituation);
    fields.setPrognosisAwarenessRecordedDate(new DateValue("20121201"));
    fields.setUsualGPTelephone("01132872624");
    fields.setUsualGPFax("01132872625");
    fields.setUsualGPAddress(new Address()
                    .addAddressLine("Dr Jones Medical Practice")
                    .addAddressLine("Somewhere Over the Rainbow")
                    .addAddressLine("Way up High")
                    .setPostcode("FT1 YBR"));
    fields.setKeyWorkerName(new PersonName("Mrs", "Amy", "VanDerVeen"));
    fields.setKeyWorkerTelephone("01222222222");
    fields.setKeyWorkerAddress(new Address()
                    .addAddressLine("Key Worker Centre")
                    .addAddressLine("Citysville")
                    .setPostcode("KW1 1KW"));
    fields.setKeyWorkerJobRole(JobRoleName._CommunityNurse);
    fields.setKeyWorkerSDSID("2938798732864");
    fields.setKeyWorkerOrgID("V111");
    fields.setKeyWorkerOrgName("Community Nursing, Citysville");
   
    fields.addFormalCarer(new EndOfLifeCareDocumentFormalCarer(new PersonName("Mr", "Simon", "Jones"),
                                  "01348876587",
                                  JobRoleName._Dietitian));
   
    fields.addFormalCarer(new EndOfLifeCareDocumentFormalCarer(new PersonName("Miss", "Eileen", "Johnson"),
                                  "01348446533",
                                  JobRoleName._Counsellor));
   
    fields.setOtherRelevantDiagnoses("Severe Asthma");
    fields.setAllergiesAndAdverseReactions("Allergic to Penicillin");
    fields.setAnticipatoryMedicinesIssued(true);
    fields.setAnticipatoryMedicinesLocation("In fridge at home");
    fields.setAnticipatoryMedicinesDateIssued(new DateValue("20120402"));
    fields.setEolcPathwayStageNONISB("Amber");
    fields.setAdvanceStatements("None Recorded");
    fields.setPreferredPlaceOfDeath("Usual place of residence");
    fields.setPreferredPlaceOfDeathOrganisation("Not applicable");
    fields.setPreferredPlaceOfDeathAddress(new Address()
                          .addAddressLine("123 The Street")
                          .addAddressLine("The Town")
                          .setPostcode("AB1 2CD"));
    fields.setPreferredPlaceOfDeathIsUPR("Yes");
    fields.setPreferredPlaceOfDeath2("Hospital");
    fields.setPreferredPlaceOfDeath2Organisation("St Nowhere Hospital");
    fields.setPreferredPlaceOfDeath2Address(new Address()
                          .addAddressLine("432 Street")
                          .addAddressLine("Town")
                          .setPostcode("XX1 1XX"));
    fields.setPreferredPlaceOfDeath2IsUPR("No");
    fields.setDNACPR(DNACPRprefSnCT._Forattemptedcardiopulmonaryresuscitationfinding);
    fields.setDNACPRDate(new DateValue("20120912"));
    fields.setDNACPRReviewDate(new DateValue("20130205"));
    fields.setDNACPRCreatedDate(new DateValue("20120910"));
    fields.setDNACPRLocation("In filing cabinet at home (top drawer)");
    fields.setADRT(EoLADRTprefSnCT._HasadvancedecisiontorefuselifesustainingtreatmentMentalCapacityAct2005finding);
    fields.setADRTDiscussedWithClinicianNONISB(true);
    fields.setADRTDocumentLocation("In filing cabinet at home (bottom drawer)");
    fields.setADRTRecordedDate(new DateValue("20120923"));
    fields.setLPAName(new PersonName("Mr", "David", "Bloggs"));
    fields.setLPAAuthority(AuthoritytoLPASnCT._HasappointedpersonwithpersonalwelfarelastingpowerofattorneyMentalCapacityAct2005finding);
    fields.setLPADate(new DateValue("20110113"));
    fields.setLPATelephone("02120111112");
    fields.setAdditionalPersonToInvolve(new PersonName("Miss", "Sue", "Bloggs"));
    fields.setAdditionalPersonToInvolveTel("02198846627");
    fields.setAdditionalPersonToInvolve2(new PersonName("Mr", "Bob", "Bloggs"));
    fields.setAdditionalPersonToInvolve2Tel("02889999999");
    fields.setOtherRelevantInformation("Favourite colour is red");
    fields.setDocumentCreationDate(new DateValue("201308021234+0000"));
    fields.setDocumentSetId("D8F79E4F-4AA9-4662-9CCE-B13B5F955685");
    fields.setDocumentVersionNumber(1);
    fields.setDocumentAuthorAddress(new Address()
                      .addAddressLine("432 Street")
                      .addAddressLine("Town")
View Full Code Here

    ClinicalDocument template = new ClinicalDocument();
   
    // ==== Set the basic document information ====
    template.setDocumentId("28BEE6CC-28F4-11E2-B493-B2916188709B");
    template.setDocumentTitle("End of Life Care Coordination Summary");
    template.setEffectiveTime(new DateValue("201209111400+0000"));
    template.setConfidentialityCode(x_BasicConfidentialityKind._N);
    template.setDocumentSetId("2E0A4036-28F4-11E2-A045-B3916188709B");
    template.setDocumentVersionNumber("1");
   
    // ==== Now, set the "left hand side" values in the document ====
   
    // Patient
    PatientUniversal patient = createPatient();
    template.setPatient(patient);
    // Author
    template.setTimeAuthored(new DateValue("201209111400+0000"));
    AuthorPersonUniversal author = createAuthorNiralSingh();
    template.setAuthor(author);
    // Custodian (Organisation hosting the EPaCCS)
    CustodianOrganizationUniversal custodian = createCustodian();
    template.setCustodianOrganisation(custodian);
View Full Code Here

    template.addPatientName(new PersonName()
                  .setTitle("Mr")
                  .setGivenName("Mark")
                  .setFamilyName("Smith"));
    template.setSex(Sex._1);
    template.setBirthTime(new DateValue("19210101"));
    // Language
    LanguageCommunication language = new LanguageCommunication();
    language.setLanguage(HumanLanguage._en.code);
    //language.setMode(LanguageAbilityMode._ESP);
    language.setProficiencyLevel(LanguageAbilityProficiency._0);
View Full Code Here

 
  public static EoLCarePlan createEoLCarePlan() {
    EoLCarePlan template = new EoLCarePlan();

    template.setID("EBDF8AE8-28F5-11E2-9460-80936188709B");
    template.setEffectiveFrom(new DateValue("201209111400+0000"));
   
    template.setOriginalTimeAuthored(new DateValue("201209111400+0000"));
   
    // 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()
                  .setTitle("Ms")
                  .setGivenName("Niral")
                  .setFamilyName("Singh"));
    originalAuthor.setOrganisationId(new OrgID()
                  .setID("V356F")
                  .setType(OrgIDType.ODSOrgID.code));
    originalAuthor.setOrganisationName("St James Hospital");
    template.setOriginalAuthor(originalAuthor);
   
    template.setLastAmendedTimeAuthored(new DateValue("201209111415+0000"));
    template.setLastAmendedAuthor(originalAuthor);

    template.setEoLToolSnCT(new CodedValue(EoLToolSnCT._818221000000103, "#a1"));
    template.setEOLToolStage("first stage");
    template.setPlannedReviewDate(new DateValue("20121011"));
   
    template.addPatientRelationships(new EOLPatientRelationships(createRelatedPersons()));

    return template;
  }
View Full Code Here

 
  public static PrognosisAwareness createPrognosisAwareness() {
    PrognosisAwareness template = new PrognosisAwareness();
   
    template.setID("369FBB7A-2A86-11E2-B118-84C76088709B");
    template.setEffectiveTime(new DateValue("201209111400+0000"));
    template.setPrognosisAwareness(new CodedValue(PrognosisAwarenessSnCT._751941000000100, "#a6"));
    // Main informal carer
    PatientRelationshipParticipantRole carer = new PatientRelationshipParticipantRole();
    carer.setPersonRole(JobRoleName._NR1980);
    carer.setAddress(new Address().setNullFlavour(NullFlavour.NI.code));
View Full Code Here

  }

  public static AdvanceDecisionToRefuseTreatment createADRT() {
    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

    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 GetDocumentQuery createRequestWithoutDocument() {
    GetDocumentQuery template = new GetDocumentQuery();
   
    // ==== 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")
View Full Code Here

 
  public static DNACPRDecisionbySeniorResponsibleClinician createDNACPR() {
    DNACPRDecisionbySeniorResponsibleClinician template = new DNACPRDecisionbySeniorResponsibleClinician();

    template.setID("F3F709E0-298B-11E2-ACBD-87EE6088709B");
    template.setEffectiveTime(new DateValue("201209111400+0000"));
    template.setDNACPRPreference(new CodedValue(DNACPRprefSnCT._450476008, "#a5"));

    template.setSeniorResponsibleClinicianTimeAuthored(new DateValue("201209111400+0000"));
    template.setSeniorResponsibleClinicianAuthor(createAuthorJohnManning());
    template.setDNACPRDocsLocation("The signed copy is placed at the GP surgery in locker number 12345. The scanned copy is scanned and uploaded to GP system on 11/09/2012.");
   
    return template;
  }
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.