return fields;
}
public static NonCodedCDACommonFields createFull() {
NonCodedCDACommonFields fields = createMinimal();
DateValue currentDate = new DateValue(new Date(), DatePrecision.Minutes);
// Now add all the other fields...
fields.setDocumentEffectiveTime(currentDate);
fields.setDocumentSetID(CDAUUID.generateUUIDString());
fields.setDocumentVersionNumber(1);
// Patient
fields.setPatientTelephone("0123456789");
fields.setPatientMobile("0723456789");
fields.setUsualGPTelephone("01111111122");
fields.setUsualGPFax("02221111122");
fields.setUsualGPAddress(new Address()
.addAddressLine("Springer Street")
.addAddressLine("Medway")
.setPostcode("ME5 5TY")
.setAddressUse(AddressType.WorkPlace.code));
// Author
fields.setTimeAuthored(currentDate);
fields.setDocumentAuthorAddress(new Address()
.addAddressLine("Springer Street")
.addAddressLine("Medway")
.setPostcode("ME5 5TY")
.setAddressUse(AddressType.WorkPlace.code));
fields.setDocumentAuthorSDSID("200025166218");
fields.setDocumentAuthorTelephone("01133339999");
// Data Enterer
fields.setDataEntererName(new PersonName("Mr", "Simon", "Smith"));
fields.setDataEntererSDSID("200025166218");
fields.setDataEntererSDSRoleID("260045146218");
// Recipient
DocumentRecipient recipient = fields.getRecipients().get(0);
recipient.setRecipientAddress(new Address()
.addAddressLine("Springer Street")
.addAddressLine("Medway")
.setPostcode("ME5 5TY")
.setAddressUse(AddressType.WorkPlace.code));
recipient.setRecipientTelephone("02078884343");
recipient.setRecipientJobRole(JobRoleName._Architect);
// Copy Recipients
DocumentRecipient copyRecipient = new DocumentRecipient();
copyRecipient.setRecipientName(new PersonName("Mrs", "Jane", "Jameson"));
copyRecipient.setRecipientODSCode("V396A");
copyRecipient.setRecipientOrganisationName("Medway PCT");
copyRecipient.setRecipientAddress(new Address()
.addAddressLine("Springer Street")
.addAddressLine("Medway")
.setPostcode("ME5 5TY")
.setAddressUse(AddressType.WorkPlace.code));
copyRecipient.setRecipientJobRole(JobRoleName._ArtTherapist);
copyRecipient.setRecipientSDSID("298745463789");
copyRecipient.setRecipientSDSRoleID("298745111111");
copyRecipient.setRecipientTelephone("01127756435");
fields.addCopyRecipient(copyRecipient);
// Second Copy Recipient
DocumentRecipient copyRecipient2 = copyRecipient.clone();
copyRecipient2.setRecipientName(new PersonName("Ms", "Janet", "Jameson"));
fields.addCopyRecipient(copyRecipient2);
// Authenticator
fields.setAuthenticatorName(new PersonName("Mr", "Bob", "Bobson"));
fields.setAuthenticatorSDSID("233332243124");
fields.setAuthenticatorSDSRoleID("222222243124");
fields.setAuthenticatedTime(currentDate);
// Participant
NonCodedCDAParticipant participant = new NonCodedCDAParticipant();
participant.setParticipantName(new PersonName("Mr", "Peter", "Peterson"));
participant.setParticipantAddress(new Address()
.addAddressLine("Springer Street")
.addAddressLine("Medway")
.setPostcode("ME5 5TY")
.setAddressUse(AddressType.WorkPlace.code));
participant.setParticipantODSCode("V396A");
participant.setParticipantOrganisationName("Medway PCT");
participant.setParticipantSDSID("222222888855");
participant.setParticipantSDSRoleID("222211100496");
participant.setParticipantTelephone("01145589403");
participant.setParticipantType(ParticipationType._Consultant);
fields.addParticipant(participant);
// Documentation Of
fields.setEventCode(new CodedValue("73761001","colonoscopy","2.16.840.1.113883.2.1.3.2.4.15"));
fields.setEventType(HL7ActType.Procedure);
fields.setEventEffectiveFromTime(new DateValue("201105192000+01"));
fields.setEventEffectiveToTime(new DateValue("201105192045+01"));
fields.setEventPerformerName(new PersonName("Mr","Adam","Adamson"));
fields.setEventODSCode("V396A");
fields.setEventOrganisatioName("Medway PCT");
// Consent
fields.setConsent(DocumentConsentSnCT._Consentgivenforelectronicrecordsharing);
// Encounter
fields.setEncounterFromTime(new DateValue("201105192000+01"));
fields.setEncounterToTime(new DateValue("201105192045+01"));
fields.setEncounterType(new CodedValue("11429006", "Consultation", "2.16.840.1.113883.2.1.3.2.4.15"));
fields.setEncounterLocationType(new CodedValue("313161000000107", "Example Care Setting", "2.16.840.1.113883.2.1.3.2.4.15"));
fields.setEncounterLocationName("Springer Street Surgery");
fields.setEncounterLocationAddress(new Address()
.addAddressLine("Springer Street")