4.2.0 release
This commit is contained in:
parent
a8b5e86bb3
commit
094b73af04
|
@ -43,6 +43,7 @@ import org.hl7.fhir.r5.model.CodeSystem.CodeSystemContentMode;
|
|||
import org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent;
|
||||
import org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionDesignationComponent;
|
||||
import org.hl7.fhir.r5.model.CodeType;
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.r5.model.ConceptMap;
|
||||
import org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent;
|
||||
import org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent;
|
||||
|
@ -2979,7 +2980,7 @@ public class VersionConvertor_10_50 {
|
|||
tgt.addCategory(convertCodeableConcept(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getAddresses())
|
||||
tgt.addAddressesReference(convertReference(t));
|
||||
tgt.addAddresses(convertReferenceToCodableReference(t));
|
||||
// for (org.hl7.fhir.dstu2.model.Reference t : src.getSupport())
|
||||
// tgt.addSupport(convertReference(t));
|
||||
// for (org.hl7.fhir.dstu2.model.CarePlan.CarePlanRelatedPlanComponent t : src.getRelatedPlan())
|
||||
|
@ -2994,6 +2995,18 @@ public class VersionConvertor_10_50 {
|
|||
return tgt;
|
||||
}
|
||||
|
||||
private CodeableReference convertReferenceToCodableReference(Reference src) {
|
||||
CodeableReference tgt = new CodeableReference();
|
||||
tgt.setReference(convertReference(src));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
private CodeableReference convertCodeableConceptToCodableReference(CodeableConcept src) {
|
||||
CodeableReference tgt = new CodeableReference();
|
||||
tgt.setConcept(convertCodeableConcept(src));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
public org.hl7.fhir.dstu2.model.CarePlan convertCarePlan(org.hl7.fhir.r5.model.CarePlan src) throws FHIRException {
|
||||
if (src == null || src.isEmpty())
|
||||
return null;
|
||||
|
@ -3013,8 +3026,11 @@ public class VersionConvertor_10_50 {
|
|||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCategory())
|
||||
tgt.addCategory(convertCodeableConcept(t));
|
||||
tgt.setDescription(src.getDescription());
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getAddressesReference())
|
||||
tgt.addAddresses(convertReference(t));
|
||||
for (CodeableReference t : src.getAddresses()) {
|
||||
if (t.hasReference()) {
|
||||
tgt.addAddresses(convertReference(t.getReference()));
|
||||
}
|
||||
}
|
||||
// for (org.hl7.fhir.r5.model.Reference t : src.getSupport())
|
||||
// tgt.addSupport(convertReference(t));
|
||||
// for (org.hl7.fhir.r5.model.CarePlan.CarePlanRelatedPlanComponent t : src.getRelatedPlan())
|
||||
|
@ -3153,9 +3169,9 @@ public class VersionConvertor_10_50 {
|
|||
// tgt.setKind().add(convertCodeableConcept(src.getCategory()));
|
||||
tgt.setCode(convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.Reference t : src.getGoal())
|
||||
tgt.addGoal(convertReference(t));
|
||||
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
|
||||
|
@ -3179,10 +3195,12 @@ public class VersionConvertor_10_50 {
|
|||
copyElement(src, tgt);
|
||||
// tgt.setCategory(convertCodeableConcept(src.getKind()));
|
||||
tgt.setCode(convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if(t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if(t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getGoal())
|
||||
tgt.addGoal(convertReference(t));
|
||||
tgt.setStatus(convertCarePlanActivityStatus(src.getStatus()));
|
||||
|
@ -3373,7 +3391,7 @@ public class VersionConvertor_10_50 {
|
|||
tgt.setSent(src.getSent());
|
||||
tgt.setReceived(src.getReceived());
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
tgt.setSubject(convertReference(src.getSubject()));
|
||||
return tgt;
|
||||
}
|
||||
|
@ -3397,8 +3415,9 @@ public class VersionConvertor_10_50 {
|
|||
tgt.setEncounter(convertReference(src.getEncounter()));
|
||||
tgt.setSent(src.getSent());
|
||||
tgt.setReceived(src.getReceived());
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReason(convertCodeableConcept(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReason(convertCodeableConcept(t.getConcept()));
|
||||
tgt.setSubject(convertReference(src.getSubject()));
|
||||
return tgt;
|
||||
}
|
||||
|
@ -3467,7 +3486,7 @@ public class VersionConvertor_10_50 {
|
|||
tgt.setEncounter(convertReference(src.getEncounter()));
|
||||
tgt.setOccurrence(convertType(src.getScheduled()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
tgt.setAuthoredOn(src.getRequestedOn());
|
||||
tgt.setSubject(convertReference(src.getSubject()));
|
||||
tgt.setPriority(convertPriorityCode(src.getPriority()));
|
||||
|
@ -3507,8 +3526,9 @@ public class VersionConvertor_10_50 {
|
|||
tgt.setStatus(convertCommunicationRequestStatus(src.getStatus()));
|
||||
tgt.setEncounter(convertReference(src.getEncounter()));
|
||||
tgt.setScheduled(convertType(src.getOccurrence()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReason(convertCodeableConcept(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReason(convertCodeableConcept(t.getConcept()));
|
||||
tgt.setRequestedOn(src.getAuthoredOn());
|
||||
tgt.setSubject(convertReference(src.getSubject()));
|
||||
tgt.setPriority(convertPriorityCode(src.getPriority()));
|
||||
|
@ -5748,7 +5768,7 @@ public class VersionConvertor_10_50 {
|
|||
for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier())
|
||||
tgt.addIdentifier(convertIdentifier(t));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getIndication())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu2.model.StringType t : src.getNotes())
|
||||
tgt.addNote().setText(t.getValue());
|
||||
tgt.setRecordedOn(src.getRecordedOn());
|
||||
|
@ -5766,8 +5786,9 @@ public class VersionConvertor_10_50 {
|
|||
tgt.setDevice(convertReference(src.getDevice()));
|
||||
for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier())
|
||||
tgt.addIdentifier(convertIdentifier(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addIndication(convertCodeableConcept(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addIndication(convertCodeableConcept(t.getConcept()));
|
||||
for (Annotation t : src.getNote())
|
||||
tgt.addNotes(t.getText());
|
||||
tgt.setRecordedOn(src.getRecordedOn());
|
||||
|
@ -6274,7 +6295,7 @@ public class VersionConvertor_10_50 {
|
|||
tgt.setPeriod(convertPeriod(src.getPeriod()));
|
||||
tgt.setLength(convertDuration(src.getLength()));
|
||||
for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getReason())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
|
||||
for (org.hl7.fhir.dstu2.model.Encounter.EncounterLocationComponent t : src.getLocation())
|
||||
tgt.addLocation(convertEncounterLocationComponent(t));
|
||||
|
@ -6307,8 +6328,9 @@ public class VersionConvertor_10_50 {
|
|||
tgt.setAppointment(convertReference(src.getAppointmentFirstRep()));
|
||||
tgt.setPeriod(convertPeriod(src.getPeriod()));
|
||||
tgt.setLength(convertDuration(src.getLength()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReason(convertCodeableConcept(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReason(convertCodeableConcept(t.getConcept()));
|
||||
tgt.setHospitalization(convertEncounterHospitalizationComponent(src.getHospitalization()));
|
||||
for (org.hl7.fhir.r5.model.Encounter.EncounterLocationComponent t : src.getLocation())
|
||||
tgt.addLocation(convertEncounterLocationComponent(t));
|
||||
|
|
|
@ -3656,6 +3656,20 @@ public class VersionConvertor_30_50 {
|
|||
}
|
||||
}
|
||||
|
||||
private static CodeableReference convertReferenceToCodableReference(org.hl7.fhir.dstu3.model.Reference src) {
|
||||
CodeableReference tgt = new CodeableReference();
|
||||
tgt.setReference(convertReference(src));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
private static CodeableReference convertCodeableConceptToCodableReference(org.hl7.fhir.dstu3.model.CodeableConcept src) {
|
||||
CodeableReference tgt = new CodeableReference();
|
||||
tgt.setConcept(convertCodeableConcept(src));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static org.hl7.fhir.r5.model.Appointment convertAppointment(org.hl7.fhir.dstu3.model.Appointment src) throws FHIRException {
|
||||
if (src == null)
|
||||
return null;
|
||||
|
@ -3674,9 +3688,9 @@ public class VersionConvertor_30_50 {
|
|||
if (src.hasAppointmentType())
|
||||
tgt.setAppointmentType(convertCodeableConcept(src.getAppointmentType()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getIndication())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodableReference(t));
|
||||
if (src.hasPriority())
|
||||
tgt.setPriority(src.getPriority());
|
||||
if (src.hasDescription())
|
||||
|
@ -3721,10 +3735,12 @@ public class VersionConvertor_30_50 {
|
|||
tgt.addSpecialty(convertCodeableConcept(t));
|
||||
if (src.hasAppointmentType())
|
||||
tgt.setAppointmentType(convertCodeableConcept(src.getAppointmentType()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReason(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addIndication(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReason(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addIndication(convertReference(t.getReference()));
|
||||
if (src.hasPriority())
|
||||
tgt.setPriority(src.getPriority());
|
||||
if (src.hasDescription())
|
||||
|
@ -5561,7 +5577,7 @@ public class VersionConvertor_30_50 {
|
|||
tgt.addCareTeam(convertReference(t));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getAddresses()) {
|
||||
tgt.addAddressesReference(convertReference(t));
|
||||
tgt.addAddresses(convertReferenceToCodableReference(t));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getSupportingInfo()) {
|
||||
tgt.addSupportingInfo(convertReference(t));
|
||||
|
@ -5626,8 +5642,9 @@ public class VersionConvertor_30_50 {
|
|||
for (org.hl7.fhir.r5.model.Reference t : src.getCareTeam()) {
|
||||
tgt.addCareTeam(convertReference(t));
|
||||
}
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getAddressesReference()) {
|
||||
tgt.addAddresses(convertReference(t));
|
||||
for (CodeableReference t : src.getAddresses()) {
|
||||
if (t.hasReference())
|
||||
tgt.addAddresses(convertReference(t.getReference()));
|
||||
}
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getSupportingInfo()) {
|
||||
tgt.addSupportingInfo(convertReference(t));
|
||||
|
@ -5652,10 +5669,10 @@ public class VersionConvertor_30_50 {
|
|||
copyElement(src, tgt);
|
||||
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getOutcomeCodeableConcept()) {
|
||||
tgt.addOutcomeCodeableConcept(convertCodeableConcept(t));
|
||||
tgt.addOutcome(convertCodeableConceptToCodableReference(t));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getOutcomeReference()) {
|
||||
tgt.addOutcomeReference(convertReference(t));
|
||||
tgt.addOutcome(convertReferenceToCodableReference(t));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getProgress()) {
|
||||
tgt.addProgress(convertAnnotation(t));
|
||||
|
@ -5676,11 +5693,13 @@ public class VersionConvertor_30_50 {
|
|||
org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent();
|
||||
copyElement(src, tgt);
|
||||
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getOutcomeCodeableConcept()) {
|
||||
tgt.addOutcomeCodeableConcept(convertCodeableConcept(t));
|
||||
for (CodeableReference t : src.getOutcome()) {
|
||||
if (t.hasConcept())
|
||||
tgt.addOutcomeCodeableConcept(convertCodeableConcept(t.getConcept()));
|
||||
}
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getOutcomeReference()) {
|
||||
tgt.addOutcomeReference(convertReference(t));
|
||||
for (CodeableReference t : src.getOutcome()) {
|
||||
if (t.hasReference())
|
||||
tgt.addOutcomeReference(convertReference(t.getReference()));
|
||||
}
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getProgress()) {
|
||||
tgt.addProgress(convertAnnotation(t));
|
||||
|
@ -5713,10 +5732,10 @@ public class VersionConvertor_30_50 {
|
|||
tgt.setCode(convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode()) {
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getReasonReference()) {
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodableReference(t));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getGoal()) {
|
||||
tgt.addGoal(convertReference(t));
|
||||
|
@ -5776,11 +5795,13 @@ public class VersionConvertor_30_50 {
|
|||
if (src.hasCode()) {
|
||||
tgt.setCode(convertCodeableConcept(src.getCode()));
|
||||
}
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode()) {
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (CodeableReference t : src.getReason()) {
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
}
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference()) {
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason()) {
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
}
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getGoal()) {
|
||||
tgt.addGoal(convertReference(t));
|
||||
|
@ -5967,9 +5988,9 @@ public class VersionConvertor_30_50 {
|
|||
for (org.hl7.fhir.dstu3.model.CareTeam.CareTeamParticipantComponent t : src.getParticipant())
|
||||
tgt.addParticipant(convertCareTeamParticipantComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getManagingOrganization())
|
||||
tgt.addManagingOrganization(convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote())
|
||||
|
@ -5996,10 +6017,12 @@ public class VersionConvertor_30_50 {
|
|||
tgt.setPeriod(convertPeriod(src.getPeriod()));
|
||||
for (org.hl7.fhir.r5.model.CareTeam.CareTeamParticipantComponent t : src.getParticipant())
|
||||
tgt.addParticipant(convertCareTeamParticipantComponent(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getManagingOrganization())
|
||||
tgt.addManagingOrganization(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
|
@ -6847,9 +6870,9 @@ public class VersionConvertor_30_50 {
|
|||
org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionFindingComponent();
|
||||
copyElement(src, tgt);
|
||||
if (src.hasItemCodeableConcept())
|
||||
tgt.setItemCodeableConcept(convertCodeableConcept(src.getItemCodeableConcept()));
|
||||
tgt.setItem(convertCodeableConceptToCodableReference(src.getItemCodeableConcept()));
|
||||
if (src.hasItemReference())
|
||||
tgt.setItemReference(convertReference(src.getItemReference()));
|
||||
tgt.setItem(convertReferenceToCodableReference(src.getItemReference()));
|
||||
if (src.hasBasis())
|
||||
tgt.setBasis(src.getBasis());
|
||||
return tgt;
|
||||
|
@ -6860,10 +6883,10 @@ public class VersionConvertor_30_50 {
|
|||
return null;
|
||||
org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.dstu3.model.ClinicalImpression.ClinicalImpressionFindingComponent();
|
||||
copyElement(src, tgt);
|
||||
if (src.hasItemCodeableConcept())
|
||||
tgt.setItem(convertType(src.getItemCodeableConcept()));
|
||||
else if (src.hasItemReference())
|
||||
tgt.setItem(convertType(src.getItemReference()));
|
||||
if (src.hasItem() && src.getItem().hasConcept())
|
||||
tgt.setItem(convertType(src.getItem().getConcept()));
|
||||
else if (src.hasItem() && src.getItem().hasReference())
|
||||
tgt.setItem(convertType(src.getItem().getReference()));
|
||||
if (src.hasBasis())
|
||||
tgt.setBasis(src.getBasis());
|
||||
return tgt;
|
||||
|
@ -7287,9 +7310,9 @@ public class VersionConvertor_30_50 {
|
|||
if (src.hasSender())
|
||||
tgt.setSender(convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Communication.CommunicationPayloadComponent t : src.getPayload())
|
||||
tgt.addPayload(convertCommunicationPayloadComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote())
|
||||
|
@ -7333,10 +7356,12 @@ public class VersionConvertor_30_50 {
|
|||
tgt.setReceived(src.getReceived());
|
||||
if (src.hasSender())
|
||||
tgt.setSender(convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Communication.CommunicationPayloadComponent t : src.getPayload())
|
||||
tgt.addPayload(convertCommunicationPayloadComponent(t));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
|
@ -10122,7 +10147,7 @@ public class VersionConvertor_30_50 {
|
|||
if (src.hasDevice())
|
||||
tgt.setDevice(convertReference(src.getDevice()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getIndication())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
if (src.hasBodySite())
|
||||
tgt.setBodySite(convertCodeableConcept(src.getBodySite()));
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote())
|
||||
|
@ -10149,8 +10174,9 @@ public class VersionConvertor_30_50 {
|
|||
tgt.setSource(convertReference(src.getSource()));
|
||||
if (src.hasDevice())
|
||||
tgt.setDevice(convertReference(src.getDevice()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addIndication(convertCodeableConcept(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addIndication(convertCodeableConcept(t.getConcept()));
|
||||
if (src.hasBodySite())
|
||||
tgt.setBodySite(convertCodeableConcept(src.getBodySite()));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
|
@ -10760,7 +10786,7 @@ public class VersionConvertor_30_50 {
|
|||
if (src.hasLength())
|
||||
tgt.setLength(convertDuration(src.getLength()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Encounter.DiagnosisComponent t : src.getDiagnosis())
|
||||
tgt.addDiagnosis(convertDiagnosisComponent(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getAccount())
|
||||
|
@ -10809,8 +10835,9 @@ public class VersionConvertor_30_50 {
|
|||
tgt.setPeriod(convertPeriod(src.getPeriod()));
|
||||
if (src.hasLength())
|
||||
tgt.setLength(convertDuration(src.getLength()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReason(convertCodeableConcept(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReason(convertCodeableConcept(t.getConcept()));
|
||||
for (org.hl7.fhir.r5.model.Encounter.DiagnosisComponent t : src.getDiagnosis())
|
||||
tgt.addDiagnosis(convertDiagnosisComponent(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getAccount())
|
||||
|
@ -11437,9 +11464,9 @@ public class VersionConvertor_30_50 {
|
|||
if (src.hasDeceased())
|
||||
tgt.setDeceased(convertType(src.getDeceased()));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.dstu3.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition())
|
||||
|
@ -11478,10 +11505,12 @@ public class VersionConvertor_30_50 {
|
|||
tgt.setEstimatedAge(src.getEstimatedAge());
|
||||
if (src.hasDeceased())
|
||||
tgt.setDeceased(convertType(src.getDeceased()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r5.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition())
|
||||
|
@ -11671,9 +11700,9 @@ public class VersionConvertor_30_50 {
|
|||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getOutcomeCode())
|
||||
tgt.addOutcomeCode(convertCodeableConcept(t));
|
||||
tgt.addOutcome(convertCodeableConceptToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getOutcomeReference())
|
||||
tgt.addOutcomeReference(convertReference(t));
|
||||
tgt.addOutcome(convertReferenceToCodableReference(t));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -11708,10 +11737,12 @@ public class VersionConvertor_30_50 {
|
|||
tgt.addAddresses(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getOutcomeCode())
|
||||
tgt.addOutcomeCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getOutcomeReference())
|
||||
tgt.addOutcomeReference(convertReference(t));
|
||||
for (CodeableReference t : src.getOutcome())
|
||||
if (t.hasConcept())
|
||||
tgt.addOutcomeCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getOutcome())
|
||||
if (t.hasReference())
|
||||
tgt.addOutcomeReference(convertReference(t.getReference()));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -12433,7 +12464,7 @@ public class VersionConvertor_30_50 {
|
|||
tgt.addProcedure().setValue(convertCodeableConcept(t));
|
||||
}
|
||||
if (src.hasReason()) {
|
||||
tgt.addReasonCode(convertCodeableConcept(src.getReason()));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(src.getReason()));
|
||||
}
|
||||
if (src.hasDescription()) {
|
||||
tgt.setDescription(src.getDescription());
|
||||
|
@ -12515,9 +12546,9 @@ public class VersionConvertor_30_50 {
|
|||
}
|
||||
}
|
||||
// location was added in R4 and does not exist in DSTU3
|
||||
List<org.hl7.fhir.r5.model.CodeableConcept> reasonCodes = src.getReasonCode();
|
||||
List<org.hl7.fhir.r5.model.CodeableReference> reasonCodes = src.getReason();
|
||||
if (reasonCodes.size() > 0) {
|
||||
tgt.setReason(convertCodeableConcept(reasonCodes.get(0)));
|
||||
tgt.setReason(convertCodeableConcept(reasonCodes.get(0).getConcept()));
|
||||
|
||||
if (reasonCodes.size() > 1) {
|
||||
// TODO print a warning that only one reason could be converted
|
||||
|
@ -12711,7 +12742,7 @@ public class VersionConvertor_30_50 {
|
|||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getExplanation().getReason())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
// for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getExplanation().getReasonNotGiven())
|
||||
// tgt.addReason(convertCodeableConcept(t));
|
||||
return tgt;
|
||||
|
@ -12756,8 +12787,9 @@ public class VersionConvertor_30_50 {
|
|||
tgt.addPractitioner(convertImmunizationPractitionerComponent(t));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.getExplanation().addReason(convertCodeableConcept(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.getExplanation().addReason(convertCodeableConcept(t.getConcept()));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -13737,9 +13769,9 @@ public class VersionConvertor_30_50 {
|
|||
// for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonNotGiven())
|
||||
// tgt.addReasonNotGiven(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodableReference(t));
|
||||
if (src.hasPrescription())
|
||||
tgt.setRequest(convertReference(src.getPrescription()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getDevice())
|
||||
|
@ -13784,10 +13816,12 @@ public class VersionConvertor_30_50 {
|
|||
// tgt.setNotGiven(src.getNotGiven());
|
||||
// for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonNotGiven())
|
||||
// tgt.addReasonNotGiven(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
if (src.hasRequest())
|
||||
tgt.setPrescription(convertReference(src.getRequest()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getDevice())
|
||||
|
@ -14319,7 +14353,7 @@ public class VersionConvertor_30_50 {
|
|||
if (src.hasExpectedSupplyDuration())
|
||||
tgt.setExpectedSupplyDuration(convertDuration(src.getExpectedSupplyDuration()));
|
||||
if (src.hasPerformer())
|
||||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
tgt.setDispenser(convertReference(src.getPerformer()));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -14336,8 +14370,8 @@ public class VersionConvertor_30_50 {
|
|||
tgt.setQuantity(convertSimpleQuantity(src.getQuantity()));
|
||||
if (src.hasExpectedSupplyDuration())
|
||||
tgt.setExpectedSupplyDuration(convertDuration(src.getExpectedSupplyDuration()));
|
||||
if (src.hasPerformer())
|
||||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
if (src.hasDispenser())
|
||||
tgt.setPerformer(convertReference(src.getDispenser()));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -14399,9 +14433,9 @@ public class VersionConvertor_30_50 {
|
|||
// for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonNotTaken())
|
||||
// tgt.addReasonNotTaken(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodableReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.dstu3.model.Dosage t : src.getDosage())
|
||||
|
@ -14442,10 +14476,12 @@ public class VersionConvertor_30_50 {
|
|||
// tgt.setTaken(convertMedicationStatementTaken(src.getExtensionByUrl(VersionConvertorConstants.MODIFIER_TAKEN)));
|
||||
// for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonNotTaken())
|
||||
// tgt.addReasonNotTaken(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r5.model.Dosage t : src.getDosage())
|
||||
|
@ -17426,11 +17462,10 @@ public class VersionConvertor_30_50 {
|
|||
if (src.hasPerformer())
|
||||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
if (src.hasReason()) {
|
||||
org.hl7.fhir.r5.model.DataType t = convertType(src.getReason());
|
||||
if (t instanceof org.hl7.fhir.r5.model.CodeableConcept)
|
||||
tgt.addReasonCode((org.hl7.fhir.r5.model.CodeableConcept) t);
|
||||
else
|
||||
tgt.addReasonReference((org.hl7.fhir.r5.model.Reference) t);
|
||||
if (src.getReason() instanceof org.hl7.fhir.dstu3.model.CodeableConcept)
|
||||
tgt.addReason(convertCodeableConceptToCodableReference((org.hl7.fhir.dstu3.model.CodeableConcept) src.getReason()));
|
||||
else if (src.getReason() instanceof org.hl7.fhir.dstu3.model.Reference)
|
||||
tgt.addReason(convertReferenceToCodableReference((org.hl7.fhir.dstu3.model.Reference) src.getReason()));
|
||||
}
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getBasis())
|
||||
tgt.addBasis(convertReference(t));
|
||||
|
@ -17470,10 +17505,10 @@ public class VersionConvertor_30_50 {
|
|||
tgt.setCondition(convertReference(src.getCondition()));
|
||||
if (src.hasPerformer())
|
||||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
if (src.hasReasonCode())
|
||||
tgt.setReason(convertType(src.getReasonCodeFirstRep()));
|
||||
if (src.hasReasonReference())
|
||||
tgt.setReason(convertType(src.getReasonReferenceFirstRep()));
|
||||
if (src.hasReason() && src.getReasonFirstRep().hasConcept())
|
||||
tgt.setReason(convertType(src.getReasonFirstRep().getConcept()));
|
||||
if (src.hasReason() && src.getReasonFirstRep().hasReference())
|
||||
tgt.setReason(convertType(src.getReasonFirstRep().getReference()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getBasis())
|
||||
tgt.addBasis(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction())
|
||||
|
|
|
@ -29,6 +29,7 @@ package org.hl7.fhir.convertors;
|
|||
import org.hl7.fhir.convertors.conv40_50.*;
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
import org.hl7.fhir.r4.model.CodeType;
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.r5.model.Enumeration;
|
||||
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnum;
|
||||
import org.hl7.fhir.r5.model.Enumerations.ResourceTypeEnumEnumFactory;
|
||||
|
@ -3809,4 +3810,19 @@ public class VersionConvertor_40_50 {
|
|||
protected static org.hl7.fhir.r4.model.CodeType convertResourceEnum(org.hl7.fhir.r5.model.CodeType src) {
|
||||
return convertCode(src);
|
||||
}
|
||||
|
||||
protected static CodeableReference convertReferenceToCodeableReference(org.hl7.fhir.r4.model.Reference src) {
|
||||
CodeableReference tgt = new CodeableReference();
|
||||
tgt.setReference(convertReference(src));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
protected static CodeableReference convertCodeableConceptToCodeableReference(org.hl7.fhir.r4.model.CodeableConcept src) {
|
||||
CodeableReference tgt = new CodeableReference();
|
||||
tgt.setConcept(convertCodeableConcept(src));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -80,9 +80,9 @@ public class Appointment extends VersionConvertor_40_50 {
|
|||
if (src.hasAppointmentType())
|
||||
tgt.setAppointmentType(convertCodeableConcept(src.getAppointmentType()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
if (src.hasPriority())
|
||||
tgt.setPriorityElement(convertUnsignedInt(src.getPriorityElement()));
|
||||
if (src.hasDescription())
|
||||
|
@ -131,10 +131,12 @@ public class Appointment extends VersionConvertor_40_50 {
|
|||
tgt.addSpecialty(convertCodeableConcept(t));
|
||||
if (src.hasAppointmentType())
|
||||
tgt.setAppointmentType(convertCodeableConcept(src.getAppointmentType()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
if (src.hasPriority())
|
||||
tgt.setPriorityElement(convertUnsignedInt(src.getPriorityElement()));
|
||||
if (src.hasDescription())
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -102,7 +102,7 @@ public class CarePlan extends VersionConvertor_40_50 {
|
|||
for (org.hl7.fhir.r4.model.Reference t : src.getCareTeam())
|
||||
tgt.addCareTeam(convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getAddresses())
|
||||
tgt.addAddressesReference(convertReference(t));
|
||||
tgt.addAddresses(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getSupportingInfo())
|
||||
tgt.addSupportingInfo(convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getGoal())
|
||||
|
@ -155,8 +155,9 @@ public class CarePlan extends VersionConvertor_40_50 {
|
|||
tgt.addContributor(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getCareTeam())
|
||||
tgt.addCareTeam(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getAddressesReference())
|
||||
tgt.addAddresses(convertReference(t));
|
||||
for (CodeableReference t : src.getAddresses())
|
||||
if (t.hasReference())
|
||||
tgt.addAddresses(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getSupportingInfo())
|
||||
tgt.addSupportingInfo(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getGoal())
|
||||
|
@ -228,9 +229,9 @@ public class CarePlan extends VersionConvertor_40_50 {
|
|||
org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent();
|
||||
copyElement(src, tgt);
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getOutcomeCodeableConcept())
|
||||
tgt.addOutcomeCodeableConcept(convertCodeableConcept(t));
|
||||
tgt.addOutcome(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getOutcomeReference())
|
||||
tgt.addOutcomeReference(convertReference(t));
|
||||
tgt.addOutcome(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getProgress())
|
||||
tgt.addProgress(convertAnnotation(t));
|
||||
if (src.hasReference())
|
||||
|
@ -245,10 +246,12 @@ public class CarePlan extends VersionConvertor_40_50 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityComponent();
|
||||
copyElement(src, tgt);
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getOutcomeCodeableConcept())
|
||||
tgt.addOutcomeCodeableConcept(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getOutcomeReference())
|
||||
tgt.addOutcomeReference(convertReference(t));
|
||||
for (CodeableReference t : src.getOutcome())
|
||||
if (t.hasConcept())
|
||||
tgt.addOutcomeCodeableConcept(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getOutcome())
|
||||
if (t.hasReference())
|
||||
tgt.addOutcomeReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getProgress())
|
||||
tgt.addProgress(convertAnnotation(t));
|
||||
if (src.hasReference())
|
||||
|
@ -272,9 +275,9 @@ public class CarePlan extends VersionConvertor_40_50 {
|
|||
if (src.hasCode())
|
||||
tgt.setCode(convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getGoal())
|
||||
tgt.addGoal(convertReference(t));
|
||||
if (src.hasStatus())
|
||||
|
@ -313,10 +316,12 @@ public class CarePlan extends VersionConvertor_40_50 {
|
|||
tgt.getInstantiatesUri().add(convertUri(t));
|
||||
if (src.hasCode())
|
||||
tgt.setCode(convertCodeableConcept(src.getCode()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getGoal())
|
||||
tgt.addGoal(convertReference(t));
|
||||
if (src.hasStatus())
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -80,9 +80,9 @@ public class CareTeam extends VersionConvertor_40_50 {
|
|||
for (org.hl7.fhir.r4.model.CareTeam.CareTeamParticipantComponent t : src.getParticipant())
|
||||
tgt.addParticipant(convertCareTeamParticipantComponent(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getManagingOrganization())
|
||||
tgt.addManagingOrganization(convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom())
|
||||
|
@ -111,10 +111,12 @@ public class CareTeam extends VersionConvertor_40_50 {
|
|||
tgt.setPeriod(convertPeriod(src.getPeriod()));
|
||||
for (org.hl7.fhir.r5.model.CareTeam.CareTeamParticipantComponent t : src.getParticipant())
|
||||
tgt.addParticipant(convertCareTeamParticipantComponent(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getManagingOrganization())
|
||||
tgt.addManagingOrganization(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.ContactPoint t : src.getTelecom())
|
||||
|
|
|
@ -180,9 +180,9 @@ public class ClinicalImpression extends VersionConvertor_40_50 {
|
|||
org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.r5.model.ClinicalImpression.ClinicalImpressionFindingComponent();
|
||||
copyElement(src, tgt);
|
||||
if (src.hasItemCodeableConcept())
|
||||
tgt.setItemCodeableConcept(convertCodeableConcept(src.getItemCodeableConcept()));
|
||||
tgt.setItem(convertCodeableConceptToCodeableReference(src.getItemCodeableConcept()));
|
||||
if (src.hasItemReference())
|
||||
tgt.setItemReference(convertReference(src.getItemReference()));
|
||||
tgt.setItem(convertReferenceToCodeableReference(src.getItemReference()));
|
||||
if (src.hasBasis())
|
||||
tgt.setBasisElement(convertString(src.getBasisElement()));
|
||||
return tgt;
|
||||
|
@ -193,10 +193,10 @@ public class ClinicalImpression extends VersionConvertor_40_50 {
|
|||
return null;
|
||||
org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionFindingComponent tgt = new org.hl7.fhir.r4.model.ClinicalImpression.ClinicalImpressionFindingComponent();
|
||||
copyElement(src, tgt);
|
||||
if (src.hasItemCodeableConcept())
|
||||
tgt.setItemCodeableConcept(convertCodeableConcept(src.getItemCodeableConcept()));
|
||||
if (src.hasItemReference())
|
||||
tgt.setItemReference(convertReference(src.getItemReference()));
|
||||
if (src.hasItem() && src.getItem().hasConcept())
|
||||
tgt.setItemCodeableConcept(convertCodeableConcept(src.getItem().getConcept()));
|
||||
if (src.hasItem() && src.getItem().hasReference())
|
||||
tgt.setItemReference(convertReference(src.getItem().getReference()));
|
||||
if (src.hasBasis())
|
||||
tgt.setBasisElement(convertString(src.getBasisElement()));
|
||||
return tgt;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -104,9 +104,9 @@ public class Communication extends VersionConvertor_40_50 {
|
|||
if (src.hasSender())
|
||||
tgt.setSender(convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Communication.CommunicationPayloadComponent t : src.getPayload())
|
||||
tgt.addPayload(convertCommunicationPayloadComponent(t));
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getNote())
|
||||
|
@ -157,10 +157,12 @@ public class Communication extends VersionConvertor_40_50 {
|
|||
tgt.addRecipient(convertReference(t));
|
||||
if (src.hasSender())
|
||||
tgt.setSender(convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Communication.CommunicationPayloadComponent t : src.getPayload())
|
||||
tgt.addPayload(convertCommunicationPayloadComponent(t));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -104,9 +104,9 @@ public class CommunicationRequest extends VersionConvertor_40_50 {
|
|||
if (src.hasSender())
|
||||
tgt.addInformationProvider(convertReference(src.getSender()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
return tgt;
|
||||
|
@ -155,10 +155,12 @@ public class CommunicationRequest extends VersionConvertor_40_50 {
|
|||
tgt.addRecipient(convertReference(t));
|
||||
if (src.hasInformationProvider())
|
||||
tgt.setSender(convertReference(src.getInformationProviderFirstRep()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
return tgt;
|
||||
|
|
|
@ -22,7 +22,8 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r4.model.CodeableConcept;
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -748,11 +749,9 @@ public class Contract extends VersionConvertor_40_50 {
|
|||
for (org.hl7.fhir.r4.model.StringType t : src.getPerformerLinkId())
|
||||
tgt.getPerformerLinkId().add(convertString(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.StringType t : src.getReason())
|
||||
tgt.getReason().add(convertString(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.StringType t : src.getReasonLinkId())
|
||||
tgt.getReasonLinkId().add(convertString(t));
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getNote())
|
||||
|
@ -797,11 +796,13 @@ public class Contract extends VersionConvertor_40_50 {
|
|||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
for (org.hl7.fhir.r5.model.StringType t : src.getPerformerLinkId())
|
||||
tgt.getPerformerLinkId().add(convertString(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.StringType t : src.getReason())
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.StringType t : src.getReasonLinkId())
|
||||
tgt.getReason().add(convertString(t));
|
||||
for (org.hl7.fhir.r5.model.StringType t : src.getReasonLinkId())
|
||||
tgt.getReasonLinkId().add(convertString(t));
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -102,9 +102,9 @@ public class DeviceRequest extends VersionConvertor_40_50 {
|
|||
if (src.hasPerformer())
|
||||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getInsurance())
|
||||
tgt.addInsurance(convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getSupportingInfo())
|
||||
|
@ -157,10 +157,12 @@ public class DeviceRequest extends VersionConvertor_40_50 {
|
|||
tgt.setPerformerType(convertCodeableConcept(src.getPerformerType()));
|
||||
if (src.hasPerformer())
|
||||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getInsurance())
|
||||
tgt.addInsurance(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getSupportingInfo())
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -84,9 +84,9 @@ public class DeviceUseStatement extends VersionConvertor_40_50 {
|
|||
if (src.hasDevice())
|
||||
tgt.setDevice(convertReference(src.getDevice()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
if (src.hasBodySite())
|
||||
tgt.setBodySite(convertCodeableConcept(src.getBodySite()));
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getNote())
|
||||
|
@ -117,10 +117,12 @@ public class DeviceUseStatement extends VersionConvertor_40_50 {
|
|||
tgt.setSource(convertReference(src.getSource()));
|
||||
if (src.hasDevice())
|
||||
tgt.setDevice(convertReference(src.getDevice()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
if (src.hasBodySite())
|
||||
tgt.setBodySite(convertCodeableConcept(src.getBodySite()));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -96,9 +96,9 @@ public class Encounter extends VersionConvertor_40_50 {
|
|||
if (src.hasLength())
|
||||
tgt.setLength(convertDuration(src.getLength()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Encounter.DiagnosisComponent t : src.getDiagnosis())
|
||||
tgt.addDiagnosis(convertDiagnosisComponent(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getAccount())
|
||||
|
@ -149,10 +149,12 @@ public class Encounter extends VersionConvertor_40_50 {
|
|||
tgt.setPeriod(convertPeriod(src.getPeriod()));
|
||||
if (src.hasLength())
|
||||
tgt.setLength(convertDuration(src.getLength()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Encounter.DiagnosisComponent t : src.getDiagnosis())
|
||||
tgt.addDiagnosis(convertDiagnosisComponent(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getAccount())
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -94,9 +94,9 @@ public class FamilyMemberHistory extends VersionConvertor_40_50 {
|
|||
if (src.hasDeceased())
|
||||
tgt.setDeceased(convertType(src.getDeceased()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r4.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition())
|
||||
|
@ -137,10 +137,12 @@ public class FamilyMemberHistory extends VersionConvertor_40_50 {
|
|||
tgt.setEstimatedAgeElement(convertBoolean(src.getEstimatedAgeElement()));
|
||||
if (src.hasDeceased())
|
||||
tgt.setDeceased(convertType(src.getDeceased()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r5.model.FamilyMemberHistory.FamilyMemberHistoryConditionComponent t : src.getCondition())
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -94,9 +94,9 @@ public class Goal extends VersionConvertor_40_50 {
|
|||
for (org.hl7.fhir.r4.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getOutcomeCode())
|
||||
tgt.addOutcomeCode(convertCodeableConcept(t));
|
||||
tgt.addOutcome(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getOutcomeReference())
|
||||
tgt.addOutcomeReference(convertReference(t));
|
||||
tgt.addOutcome(convertReferenceToCodeableReference(t));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -133,10 +133,12 @@ public class Goal extends VersionConvertor_40_50 {
|
|||
tgt.addAddresses(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getOutcomeCode())
|
||||
tgt.addOutcomeCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getOutcomeReference())
|
||||
tgt.addOutcomeReference(convertReference(t));
|
||||
for (CodeableReference t : src.getOutcome())
|
||||
if (t.hasConcept())
|
||||
tgt.addOutcomeCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getOutcome())
|
||||
if (t.hasReference())
|
||||
tgt.addOutcomeReference(convertReference(t.getReference()));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -82,9 +82,9 @@ public class GuidanceResponse extends VersionConvertor_40_50 {
|
|||
if (src.hasPerformer())
|
||||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getEvaluationMessage())
|
||||
|
@ -119,10 +119,12 @@ public class GuidanceResponse extends VersionConvertor_40_50 {
|
|||
tgt.setOccurrenceDateTimeElement(convertDateTime(src.getOccurrenceDateTimeElement()));
|
||||
if (src.hasPerformer())
|
||||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getEvaluationMessage())
|
||||
|
|
|
@ -22,6 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.r5.model.ImagingStudy.ImagingStudyProcedureComponent;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
@ -96,9 +97,9 @@ public class ImagingStudy extends VersionConvertor_40_50 {
|
|||
if (src.hasLocation())
|
||||
tgt.setLocation(convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
if (src.hasDescription())
|
||||
|
@ -146,10 +147,12 @@ public class ImagingStudy extends VersionConvertor_40_50 {
|
|||
}
|
||||
if (src.hasLocation())
|
||||
tgt.setLocation(convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
if (src.hasDescription())
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -104,9 +104,9 @@ public class Immunization extends VersionConvertor_40_50 {
|
|||
for (org.hl7.fhir.r4.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
if (src.hasIsSubpotent())
|
||||
tgt.setIsSubpotentElement(convertBoolean(src.getIsSubpotentElement()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSubpotentReason())
|
||||
|
@ -167,10 +167,12 @@ public class Immunization extends VersionConvertor_40_50 {
|
|||
tgt.addPerformer(convertImmunizationPerformerComponent(t));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
if (src.hasIsSubpotent())
|
||||
tgt.setIsSubpotentElement(convertBoolean(src.getIsSubpotentElement()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSubpotentReason())
|
||||
|
|
|
@ -23,6 +23,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
import org.hl7.fhir.r4.model.CodeType;
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.r5.model.Enumeration;
|
||||
import org.hl7.fhir.r5.model.MedicationAdministration.MedicationAdministrationStatusCodes;
|
||||
import org.hl7.fhir.r5.model.MedicationDispense.MedicationDispenseStatusCodes;
|
||||
|
@ -93,9 +94,9 @@ public class MedicationAdministration extends VersionConvertor_40_50 {
|
|||
for (org.hl7.fhir.r4.model.MedicationAdministration.MedicationAdministrationPerformerComponent t : src.getPerformer())
|
||||
tgt.addPerformer(convertMedicationAdministrationPerformerComponent(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
if (src.hasRequest())
|
||||
tgt.setRequest(convertReference(src.getRequest()));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getDevice())
|
||||
|
@ -138,10 +139,12 @@ public class MedicationAdministration extends VersionConvertor_40_50 {
|
|||
tgt.setEffective(convertType(src.getOccurence()));
|
||||
for (org.hl7.fhir.r5.model.MedicationAdministration.MedicationAdministrationPerformerComponent t : src.getPerformer())
|
||||
tgt.addPerformer(convertMedicationAdministrationPerformerComponent(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
if (src.hasRequest())
|
||||
tgt.setRequest(convertReference(src.getRequest()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getDevice())
|
||||
|
|
|
@ -255,8 +255,8 @@ public class MedicationKnowledge extends VersionConvertor_40_50 {
|
|||
tgt.setItem(convertType(src.getItem()));
|
||||
if (src.hasIsActive())
|
||||
tgt.setIsActiveElement(convertBoolean(src.getIsActiveElement()));
|
||||
if (src.hasStrength())
|
||||
tgt.setStrength(convertRatio(src.getStrength()));
|
||||
if (src.hasStrengthRatio())
|
||||
tgt.setStrength(convertRatio(src.getStrengthRatio()));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -316,7 +316,7 @@ public class MedicationRequest extends VersionConvertor_40_50 {
|
|||
if (src.hasExpectedSupplyDuration())
|
||||
tgt.setExpectedSupplyDuration(convertDuration(src.getExpectedSupplyDuration()));
|
||||
if (src.hasPerformer())
|
||||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
tgt.setDispenser(convertReference(src.getPerformer()));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -337,8 +337,8 @@ public class MedicationRequest extends VersionConvertor_40_50 {
|
|||
tgt.setQuantity(convertSimpleQuantity(src.getQuantity()));
|
||||
if (src.hasExpectedSupplyDuration())
|
||||
tgt.setExpectedSupplyDuration(convertDuration(src.getExpectedSupplyDuration()));
|
||||
if (src.hasPerformer())
|
||||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
if (src.hasDispenser())
|
||||
tgt.setPerformer(convertReference(src.getDispenser()));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -92,9 +92,9 @@ public class MedicationStatement extends VersionConvertor_40_50 {
|
|||
for (org.hl7.fhir.r4.model.Reference t : src.getDerivedFrom())
|
||||
tgt.addDerivedFrom(convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r4.model.Dosage t : src.getDosage())
|
||||
|
@ -133,10 +133,12 @@ public class MedicationStatement extends VersionConvertor_40_50 {
|
|||
tgt.setInformationSource(convertReference(src.getInformationSource()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getDerivedFrom())
|
||||
tgt.addDerivedFrom(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r5.model.Dosage t : src.getDosage())
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -98,9 +98,9 @@ public class Procedure extends VersionConvertor_40_50 {
|
|||
if (src.hasLocation())
|
||||
tgt.setLocation(convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getBodySite())
|
||||
tgt.addBodySite(convertCodeableConcept(t));
|
||||
if (src.hasOutcome())
|
||||
|
@ -118,9 +118,9 @@ public class Procedure extends VersionConvertor_40_50 {
|
|||
for (org.hl7.fhir.r4.model.Procedure.ProcedureFocalDeviceComponent t : src.getFocalDevice())
|
||||
tgt.addFocalDevice(convertProcedureFocalDeviceComponent(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getUsedReference())
|
||||
tgt.addUsedReference(convertReference(t));
|
||||
tgt.addUsed(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getUsedCode())
|
||||
tgt.addUsedCode(convertCodeableConcept(t));
|
||||
tgt.addUsed(convertCodeableConceptToCodeableReference(t));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
@ -161,10 +161,12 @@ public class Procedure extends VersionConvertor_40_50 {
|
|||
tgt.addPerformer(convertProcedurePerformerComponent(t));
|
||||
if (src.hasLocation())
|
||||
tgt.setLocation(convertReference(src.getLocation()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getBodySite())
|
||||
tgt.addBodySite(convertCodeableConcept(t));
|
||||
if (src.hasOutcome())
|
||||
|
@ -181,10 +183,12 @@ public class Procedure extends VersionConvertor_40_50 {
|
|||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r5.model.Procedure.ProcedureFocalDeviceComponent t : src.getFocalDevice())
|
||||
tgt.addFocalDevice(convertProcedureFocalDeviceComponent(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getUsedReference())
|
||||
tgt.addUsedReference(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getUsedCode())
|
||||
tgt.addUsedCode(convertCodeableConcept(t));
|
||||
for (CodeableReference t : src.getUsed())
|
||||
if (t.hasReference())
|
||||
tgt.addUsedReference(convertReference(t.getReference()));
|
||||
for (CodeableReference t : src.getUsed())
|
||||
if (t.hasConcept())
|
||||
tgt.addUsedCode(convertCodeableConcept(t.getConcept()));
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -94,9 +94,9 @@ public class RequestGroup extends VersionConvertor_40_50 {
|
|||
if (src.hasAuthor())
|
||||
tgt.setAuthor(convertReference(src.getAuthor()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionComponent t : src.getAction())
|
||||
|
@ -137,10 +137,12 @@ public class RequestGroup extends VersionConvertor_40_50 {
|
|||
tgt.setAuthoredOnElement(convertDateTime(src.getAuthoredOnElement()));
|
||||
if (src.hasAuthor())
|
||||
tgt.setAuthor(convertReference(src.getAuthor()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Annotation t : src.getNote())
|
||||
tgt.addNote(convertAnnotation(t));
|
||||
for (org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionComponent t : src.getAction())
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -88,9 +88,9 @@ public class RiskAssessment extends VersionConvertor_40_50 {
|
|||
if (src.hasPerformer())
|
||||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getBasis())
|
||||
tgt.addBasis(convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction())
|
||||
|
@ -129,10 +129,12 @@ public class RiskAssessment extends VersionConvertor_40_50 {
|
|||
tgt.setCondition(convertReference(src.getCondition()));
|
||||
if (src.hasPerformer())
|
||||
tgt.setPerformer(convertReference(src.getPerformer()));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getBasis())
|
||||
tgt.addBasis(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.RiskAssessment.RiskAssessmentPredictionComponent t : src.getPrediction())
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -110,13 +110,13 @@ public class ServiceRequest extends VersionConvertor_40_50 {
|
|||
for (org.hl7.fhir.r4.model.Reference t : src.getPerformer())
|
||||
tgt.addPerformer(convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getLocationCode())
|
||||
tgt.addLocationCode(convertCodeableConcept(t));
|
||||
tgt.addLocation(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getLocationReference())
|
||||
tgt.addLocationReference(convertReference(t));
|
||||
tgt.addLocation(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getInsurance())
|
||||
tgt.addInsurance(convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getSupportingInfo())
|
||||
|
@ -183,14 +183,18 @@ public class ServiceRequest extends VersionConvertor_40_50 {
|
|||
tgt.setPerformerType(convertCodeableConcept(src.getPerformerType()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getPerformer())
|
||||
tgt.addPerformer(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getLocationCode())
|
||||
tgt.addLocationCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getLocationReference())
|
||||
tgt.addLocationReference(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getLocation())
|
||||
if (t.hasConcept())
|
||||
tgt.addLocationCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getLocation())
|
||||
if (t.hasReference())
|
||||
tgt.addLocationReference(convertReference(t.getReference()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getInsurance())
|
||||
tgt.addInsurance(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getSupportingInfo())
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.hl7.fhir.convertors.conv40_50;
|
|||
|
||||
|
||||
import org.hl7.fhir.exceptions.FHIRException;
|
||||
|
||||
import org.hl7.fhir.r5.model.CodeableReference;
|
||||
import org.hl7.fhir.convertors.VersionConvertor_40_50;
|
||||
|
||||
|
||||
|
@ -88,9 +88,9 @@ public class SupplyRequest extends VersionConvertor_40_50 {
|
|||
for (org.hl7.fhir.r4.model.Reference t : src.getSupplier())
|
||||
tgt.addSupplier(convertReference(t));
|
||||
for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
tgt.addReason(convertCodeableConceptToCodeableReference(t));
|
||||
for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
tgt.addReason(convertReferenceToCodeableReference(t));
|
||||
if (src.hasDeliverFrom())
|
||||
tgt.setDeliverFrom(convertReference(src.getDeliverFrom()));
|
||||
if (src.hasDeliverTo())
|
||||
|
@ -125,10 +125,12 @@ public class SupplyRequest extends VersionConvertor_40_50 {
|
|||
tgt.setRequester(convertReference(src.getRequester()));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getSupplier())
|
||||
tgt.addSupplier(convertReference(t));
|
||||
for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReasonCode())
|
||||
tgt.addReasonCode(convertCodeableConcept(t));
|
||||
for (org.hl7.fhir.r5.model.Reference t : src.getReasonReference())
|
||||
tgt.addReasonReference(convertReference(t));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasConcept())
|
||||
tgt.addReasonCode(convertCodeableConcept(t.getConcept()));
|
||||
for (CodeableReference t : src.getReason())
|
||||
if (t.hasReference())
|
||||
tgt.addReasonReference(convertReference(t.getReference()));
|
||||
if (src.hasDeliverFrom())
|
||||
tgt.setDeliverFrom(convertReference(src.getDeliverFrom()));
|
||||
if (src.hasDeliverTo())
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
package org.hl7.fhir.r5.model;
|
||||
|
||||
// generated
|
||||
|
||||
{{license}}
|
||||
|
||||
{{startMark}}
|
||||
|
||||
public class Constants {
|
||||
|
||||
public final static String LOCAL_REF_REGEX = "({{rt}})\\\\/[A-Za-z0-9\\\\-\\\\.]{1,64}\";
|
||||
public final static String NS_SYSTEM_TYPE = "http://hl7.org/fhirpath/System.";
|
||||
|
||||
public final static String VERSION = "{{version}}";
|
||||
public final static String VERSION_MM = "{{version-mm}}";
|
||||
public final static String DATE = "{{date}}";
|
||||
public final static String URI_REGEX = "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?({{rt}})\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?";
|
||||
}
|
|
@ -51,7 +51,7 @@
|
|||
return true;
|
||||
if ("4.0.0".equals(codeString))
|
||||
return true;
|
||||
if ("4.1.0".equals(codeString))
|
||||
if ("4.2.0".equals(codeString))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.hl7.fhir.r5.formats;
|
||||
|
||||
|
||||
// generated
|
||||
|
||||
{{license}}
|
||||
|
|
|
@ -3,9 +3,11 @@ package org.hl7.fhir.core.generator.codegen;
|
|||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import org.hl7.fhir.utilities.IniFile;
|
||||
|
@ -13,7 +15,9 @@ import org.hl7.fhir.utilities.TextFile;
|
|||
import org.hl7.fhir.utilities.Utilities;
|
||||
|
||||
public class Configuration {
|
||||
|
||||
public static final SimpleDateFormat DATE_FORMAT() {
|
||||
return new SimpleDateFormat("EEE, MMM d, yyyy HH:mmZ", new Locale("en", "US"));
|
||||
}
|
||||
private String license;
|
||||
private IniFile ini;
|
||||
private Map<String, String> adornments = new HashMap<>();
|
||||
|
|
|
@ -73,8 +73,8 @@ public class JavaBaseGenerator extends OutputStreamWriter {
|
|||
}
|
||||
|
||||
public String startVMarkValue() {
|
||||
// return "// Generated on "+Config.DATE_FORMAT().format(genDate)+" for FHIR v"+version+"\r\n\r\n";
|
||||
return "// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0\r\n\r\n";
|
||||
return "// Generated on "+config.DATE_FORMAT().format(genDate)+" for FHIR v"+version+"\r\n\r\n";
|
||||
// return "// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0\r\n\r\n";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
package org.hl7.fhir.core.generator.codegen;
|
||||
|
||||
import java.io.OutputStream;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
|
||||
import org.hl7.fhir.core.generator.engine.Definitions;
|
||||
import org.hl7.fhir.r5.model.StructureDefinition;
|
||||
import org.hl7.fhir.r5.model.StructureDefinition.StructureDefinitionKind;
|
||||
import org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule;
|
||||
import org.hl7.fhir.utilities.VersionUtilities;
|
||||
|
||||
public class JavaConstantsGenerator extends JavaBaseGenerator {
|
||||
|
||||
|
||||
public JavaConstantsGenerator(OutputStream out, Definitions definitions, Configuration configuration, Date genDate, String version) throws UnsupportedEncodingException {
|
||||
super(out, definitions, configuration, version, genDate);
|
||||
}
|
||||
|
||||
public void generate() throws Exception {
|
||||
StringBuilder rt = new StringBuilder();
|
||||
boolean first = true;
|
||||
for (StructureDefinition sd : definitions.getStructures().getSortedList()) {
|
||||
if (sd.getKind() == StructureDefinitionKind.RESOURCE && sd.getDerivation()==TypeDerivationRule.SPECIALIZATION && !sd.getAbstract()) {
|
||||
if (first) first = false; else rt.append("|");
|
||||
rt.append(sd.getType());
|
||||
version = sd.getVersion();
|
||||
}
|
||||
}
|
||||
|
||||
String template = config.getAdornments().get("Constants");
|
||||
template = template.replace("{{license}}", config.getLicense());
|
||||
template = template.replace("{{startMark}}", startVMarkValue());
|
||||
|
||||
template = template.replace("{{rt}}", rt.toString());
|
||||
template = template.replace("{{version}}", version);
|
||||
template = template.replace("{{version-mm}}", VersionUtilities.getMajMin(version));
|
||||
template = template.replace("{{date}}", config.DATE_FORMAT().format(genDate));
|
||||
|
||||
write(template);
|
||||
flush();
|
||||
close();
|
||||
}
|
||||
|
||||
}
|
|
@ -12,6 +12,7 @@ import java.util.Map;
|
|||
import org.hl7.fhir.core.generator.analysis.Analyser;
|
||||
import org.hl7.fhir.core.generator.analysis.Analysis;
|
||||
import org.hl7.fhir.core.generator.codegen.Configuration;
|
||||
import org.hl7.fhir.core.generator.codegen.JavaConstantsGenerator;
|
||||
import org.hl7.fhir.core.generator.codegen.JavaEnumerationsGenerator;
|
||||
import org.hl7.fhir.core.generator.codegen.JavaFactoryGenerator;
|
||||
import org.hl7.fhir.core.generator.codegen.JavaParserJsonGenerator;
|
||||
|
@ -78,6 +79,10 @@ public class JavaCoreGenerator {
|
|||
updateExpansions(master, expansions);
|
||||
|
||||
System.out.println("Generate Model");
|
||||
System.out.println(" .. Constants");
|
||||
JavaConstantsGenerator cgen = new JavaConstantsGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", "r5", "model", "Constants.java")), master, config, date, npm.version());
|
||||
cgen.generate();
|
||||
cgen.close();
|
||||
System.out.println(" .. Enumerations");
|
||||
JavaEnumerationsGenerator egen = new JavaEnumerationsGenerator(new FileOutputStream(Utilities.path(dest, "src", "org", "hl7", "fhir", "r5", "model", "Enumerations.java")), master, config, date, npm.version());
|
||||
egen.generate();
|
||||
|
|
|
@ -3,12 +3,14 @@ package org.hl7.fhir.core.generator.loader;
|
|||
import java.io.IOException;
|
||||
|
||||
import org.hl7.fhir.core.generator.engine.Definitions;
|
||||
import org.hl7.fhir.exceptions.FHIRFormatError;
|
||||
import org.hl7.fhir.r5.formats.JsonParser;
|
||||
import org.hl7.fhir.r5.model.CapabilityStatement;
|
||||
import org.hl7.fhir.r5.model.CodeSystem;
|
||||
import org.hl7.fhir.r5.model.CompartmentDefinition;
|
||||
import org.hl7.fhir.r5.model.ConceptMap;
|
||||
import org.hl7.fhir.r5.model.OperationDefinition;
|
||||
import org.hl7.fhir.r5.model.Resource;
|
||||
import org.hl7.fhir.r5.model.SearchParameter;
|
||||
import org.hl7.fhir.r5.model.StructureDefinition;
|
||||
import org.hl7.fhir.r5.model.ValueSet;
|
||||
|
@ -22,29 +24,37 @@ public class DefinitionsLoader {
|
|||
Definitions res = new Definitions();
|
||||
|
||||
for (String t : npm.listResources("CodeSystem")) {
|
||||
res.getCodeSystems().see((CodeSystem) new JsonParser().parse(npm.loadResource(t)));
|
||||
res.getCodeSystems().see((CodeSystem) load(npm, t));
|
||||
}
|
||||
for (String t : npm.listResources("ValueSet")) {
|
||||
res.getValuesets().see((ValueSet) new JsonParser().parse(npm.loadResource(t)));
|
||||
res.getValuesets().see((ValueSet) load(npm, t));
|
||||
}
|
||||
for (String t : npm.listResources("ConceptMap")) {
|
||||
res.getConceptMaps().see((ConceptMap) new JsonParser().parse(npm.loadResource(t)));
|
||||
res.getConceptMaps().see((ConceptMap) load(npm, t));
|
||||
}
|
||||
for (String t : npm.listResources("CapabilityStatement")) {
|
||||
res.getStatements().see((CapabilityStatement) new JsonParser().parse(npm.loadResource(t)));
|
||||
res.getStatements().see((CapabilityStatement) load(npm, t));
|
||||
}
|
||||
for (String t : npm.listResources("StructureDefinition")) {
|
||||
res.getStructures().see((StructureDefinition) new JsonParser().parse(npm.loadResource(t)));
|
||||
res.getStructures().see((StructureDefinition) load(npm, t));
|
||||
}
|
||||
for (String t : npm.listResources("OperationDefinition")) {
|
||||
res.getOperations().see((OperationDefinition) new JsonParser().parse(npm.loadResource(t)));
|
||||
res.getOperations().see((OperationDefinition) load(npm, t));
|
||||
}
|
||||
for (String t : npm.listResources("SearchParameter")) {
|
||||
res.getSearchParams().see((SearchParameter) new JsonParser().parse(npm.loadResource(t)));
|
||||
res.getSearchParams().see((SearchParameter) load(npm, t));
|
||||
}
|
||||
for (String t : npm.listResources("CompartmentDefinition")) {
|
||||
res.getCompartments().see((CompartmentDefinition) new JsonParser().parse(npm.loadResource(t)));
|
||||
res.getCompartments().see((CompartmentDefinition) load(npm, t));
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
public static Resource load(NpmPackage npm, String t) {
|
||||
try {
|
||||
return new JsonParser().parse(npm.loadResource(t));
|
||||
} catch (Exception e) {
|
||||
throw new Error("Error reading "+t+": "+e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -51,7 +51,7 @@ package org.hl7.fhir.r5.formats;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
|
||||
|
||||
|
@ -2718,11 +2718,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasAppointmentType()) {
|
||||
composeCodeableConcept(t, "Appointment", "appointmentType", element.getAppointmentType(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "Appointment", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "Appointment", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "Appointment", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
if (element.hasPriorityElement()) {
|
||||
composeUnsignedInt(t, "Appointment", "priority", element.getPriorityElement(), -1);
|
||||
|
@ -4137,11 +4134,8 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getCareTeam().size(); i++) {
|
||||
composeReference(t, "CarePlan", "careTeam", element.getCareTeam().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getAddressesCode().size(); i++) {
|
||||
composeCodeableConcept(t, "CarePlan", "addressesCode", element.getAddressesCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getAddressesReference().size(); i++) {
|
||||
composeReference(t, "CarePlan", "addressesReference", element.getAddressesReference().get(i), i);
|
||||
for (int i = 0; i < element.getAddresses().size(); i++) {
|
||||
composeCodeableReference(t, "CarePlan", "addresses", element.getAddresses().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getSupportingInfo().size(); i++) {
|
||||
composeReference(t, "CarePlan", "supportingInfo", element.getSupportingInfo().get(i), i);
|
||||
|
@ -4167,11 +4161,8 @@ public class RdfParser extends RdfParserBase {
|
|||
t = parent.predicate("fhir:"+parentType+'.'+name);
|
||||
}
|
||||
composeBackboneElement(t, "activity", name, element, index);
|
||||
for (int i = 0; i < element.getOutcomeCodeableConcept().size(); i++) {
|
||||
composeCodeableConcept(t, "CarePlanActivityComponent", "outcomeCodeableConcept", element.getOutcomeCodeableConcept().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getOutcomeReference().size(); i++) {
|
||||
composeReference(t, "CarePlanActivityComponent", "outcomeReference", element.getOutcomeReference().get(i), i);
|
||||
for (int i = 0; i < element.getOutcome().size(); i++) {
|
||||
composeCodeableReference(t, "CarePlanActivityComponent", "outcome", element.getOutcome().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getProgress().size(); i++) {
|
||||
composeAnnotation(t, "CarePlanActivityComponent", "progress", element.getProgress().get(i), i);
|
||||
|
@ -4206,11 +4197,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasCode()) {
|
||||
composeCodeableConcept(t, "CarePlanActivityDetailComponent", "code", element.getCode(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "CarePlanActivityDetailComponent", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "CarePlanActivityDetailComponent", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "CarePlanActivityDetailComponent", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getGoal().size(); i++) {
|
||||
composeReference(t, "CarePlanActivityDetailComponent", "goal", element.getGoal().get(i), i);
|
||||
|
@ -4281,11 +4269,8 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getParticipant().size(); i++) {
|
||||
composeCareTeamParticipantComponent(t, "CareTeam", "participant", element.getParticipant().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "CareTeam", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "CareTeam", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "CareTeam", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getManagingOrganization().size(); i++) {
|
||||
composeReference(t, "CareTeam", "managingOrganization", element.getManagingOrganization().get(i), i);
|
||||
|
@ -5643,11 +5628,8 @@ public class RdfParser extends RdfParserBase {
|
|||
t = parent.predicate("fhir:"+parentType+'.'+name);
|
||||
}
|
||||
composeBackboneElement(t, "finding", name, element, index);
|
||||
if (element.hasItemCodeableConcept()) {
|
||||
composeCodeableConcept(t, "ClinicalImpressionFindingComponent", "itemCodeableConcept", element.getItemCodeableConcept(), -1);
|
||||
}
|
||||
if (element.hasItemReference()) {
|
||||
composeReference(t, "ClinicalImpressionFindingComponent", "itemReference", element.getItemReference(), -1);
|
||||
if (element.hasItem()) {
|
||||
composeCodeableReference(t, "ClinicalImpressionFindingComponent", "item", element.getItem(), -1);
|
||||
}
|
||||
if (element.hasBasisElement()) {
|
||||
composeString(t, "ClinicalImpressionFindingComponent", "basis", element.getBasisElement(), -1);
|
||||
|
@ -6111,11 +6093,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasSender()) {
|
||||
composeReference(t, "Communication", "sender", element.getSender(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "Communication", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "Communication", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "Communication", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getPayload().size(); i++) {
|
||||
composeCommunicationPayloadComponent(t, "Communication", "payload", element.getPayload().get(i), i);
|
||||
|
@ -6207,11 +6186,8 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getInformationProvider().size(); i++) {
|
||||
composeReference(t, "CommunicationRequest", "informationProvider", element.getInformationProvider().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "CommunicationRequest", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "CommunicationRequest", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "CommunicationRequest", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getNote().size(); i++) {
|
||||
composeAnnotation(t, "CommunicationRequest", "note", element.getNote().get(i), i);
|
||||
|
@ -7611,14 +7587,8 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getPerformerLinkId().size(); i++) {
|
||||
composeString(t, "ActionComponent", "performerLinkId", element.getPerformerLinkId().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "ActionComponent", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "ActionComponent", "reasonReference", element.getReasonReference().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeString(t, "ActionComponent", "reason", element.getReason().get(i), i);
|
||||
composeCodeableReference(t, "ActionComponent", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonLinkId().size(); i++) {
|
||||
composeString(t, "ActionComponent", "reasonLinkId", element.getReasonLinkId().get(i), i);
|
||||
|
@ -8769,11 +8739,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasPerformer()) {
|
||||
composeReference(t, "DeviceRequest", "performer", element.getPerformer(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "DeviceRequest", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "DeviceRequest", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "DeviceRequest", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getInsurance().size(); i++) {
|
||||
composeReference(t, "DeviceRequest", "insurance", element.getInsurance().get(i), i);
|
||||
|
@ -8844,11 +8811,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasDevice()) {
|
||||
composeReference(t, "DeviceUseStatement", "device", element.getDevice(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "DeviceUseStatement", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "DeviceUseStatement", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "DeviceUseStatement", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
if (element.hasBodySite()) {
|
||||
composeCodeableConcept(t, "DeviceUseStatement", "bodySite", element.getBodySite(), -1);
|
||||
|
@ -9198,11 +9162,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasLength()) {
|
||||
composeDuration(t, "Encounter", "length", element.getLength(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "Encounter", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "Encounter", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "Encounter", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getDiagnosis().size(); i++) {
|
||||
composeEncounterDiagnosisComponent(t, "Encounter", "diagnosis", element.getDiagnosis().get(i), i);
|
||||
|
@ -11109,11 +11070,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasDeceased()) {
|
||||
composeType(t, "FamilyMemberHistory", "deceased", element.getDeceased(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "FamilyMemberHistory", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "FamilyMemberHistory", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "FamilyMemberHistory", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getNote().size(); i++) {
|
||||
composeAnnotation(t, "FamilyMemberHistory", "note", element.getNote().get(i), i);
|
||||
|
@ -11271,11 +11229,8 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getNote().size(); i++) {
|
||||
composeAnnotation(t, "Goal", "note", element.getNote().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getOutcomeCode().size(); i++) {
|
||||
composeCodeableConcept(t, "Goal", "outcomeCode", element.getOutcomeCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getOutcomeReference().size(); i++) {
|
||||
composeReference(t, "Goal", "outcomeReference", element.getOutcomeReference().get(i), i);
|
||||
for (int i = 0; i < element.getOutcome().size(); i++) {
|
||||
composeCodeableReference(t, "Goal", "outcome", element.getOutcome().get(i), i);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11562,11 +11517,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasPerformer()) {
|
||||
composeReference(t, "GuidanceResponse", "performer", element.getPerformer(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "GuidanceResponse", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "GuidanceResponse", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "GuidanceResponse", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getNote().size(); i++) {
|
||||
composeAnnotation(t, "GuidanceResponse", "note", element.getNote().get(i), i);
|
||||
|
@ -11781,11 +11733,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasLocation()) {
|
||||
composeReference(t, "ImagingStudy", "location", element.getLocation(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "ImagingStudy", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "ImagingStudy", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "ImagingStudy", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getNote().size(); i++) {
|
||||
composeAnnotation(t, "ImagingStudy", "note", element.getNote().get(i), i);
|
||||
|
@ -11970,11 +11919,8 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getNote().size(); i++) {
|
||||
composeAnnotation(t, "Immunization", "note", element.getNote().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "Immunization", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "Immunization", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "Immunization", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
if (element.hasIsSubpotentElement()) {
|
||||
composeBoolean(t, "Immunization", "isSubpotent", element.getIsSubpotentElement(), -1);
|
||||
|
@ -13983,11 +13929,8 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getPerformer().size(); i++) {
|
||||
composeMedicationAdministrationPerformerComponent(t, "MedicationAdministration", "performer", element.getPerformer().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "MedicationAdministration", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "MedicationAdministration", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "MedicationAdministration", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
if (element.hasRequest()) {
|
||||
composeReference(t, "MedicationAdministration", "request", element.getRequest(), -1);
|
||||
|
@ -14127,6 +14070,9 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getNote().size(); i++) {
|
||||
composeAnnotation(t, "MedicationDispense", "note", element.getNote().get(i), i);
|
||||
}
|
||||
if (element.hasRenderedDosageInstructionElement()) {
|
||||
composeString(t, "MedicationDispense", "renderedDosageInstruction", element.getRenderedDosageInstructionElement(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getDosageInstruction().size(); i++) {
|
||||
composeDosage(t, "MedicationDispense", "dosageInstruction", element.getDosageInstruction().get(i), i);
|
||||
}
|
||||
|
@ -14320,7 +14266,7 @@ public class RdfParser extends RdfParserBase {
|
|||
composeBoolean(t, "MedicationKnowledgeIngredientComponent", "isActive", element.getIsActiveElement(), -1);
|
||||
}
|
||||
if (element.hasStrength()) {
|
||||
composeRatio(t, "MedicationKnowledgeIngredientComponent", "strength", element.getStrength(), -1);
|
||||
composeType(t, "MedicationKnowledgeIngredientComponent", "strength", element.getStrength(), -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14649,6 +14595,9 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getNote().size(); i++) {
|
||||
composeAnnotation(t, "MedicationRequest", "note", element.getNote().get(i), i);
|
||||
}
|
||||
if (element.hasRenderedDosageInstructionElement()) {
|
||||
composeString(t, "MedicationRequest", "renderedDosageInstruction", element.getRenderedDosageInstructionElement(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getDosageInstruction().size(); i++) {
|
||||
composeDosage(t, "MedicationRequest", "dosageInstruction", element.getDosageInstruction().get(i), i);
|
||||
}
|
||||
|
@ -14697,8 +14646,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasExpectedSupplyDuration()) {
|
||||
composeDuration(t, "MedicationRequestDispenseRequestComponent", "expectedSupplyDuration", element.getExpectedSupplyDuration(), -1);
|
||||
}
|
||||
if (element.hasPerformer()) {
|
||||
composeReference(t, "MedicationRequestDispenseRequestComponent", "performer", element.getPerformer(), -1);
|
||||
if (element.hasDispenser()) {
|
||||
composeReference(t, "MedicationRequestDispenseRequestComponent", "dispenser", element.getDispenser(), -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14787,15 +14736,15 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getDerivedFrom().size(); i++) {
|
||||
composeReference(t, "MedicationUsage", "derivedFrom", element.getDerivedFrom().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "MedicationUsage", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "MedicationUsage", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "MedicationUsage", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getNote().size(); i++) {
|
||||
composeAnnotation(t, "MedicationUsage", "note", element.getNote().get(i), i);
|
||||
}
|
||||
if (element.hasRenderedDosageInstructionElement()) {
|
||||
composeString(t, "MedicationUsage", "renderedDosageInstruction", element.getRenderedDosageInstructionElement(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getDosage().size(); i++) {
|
||||
composeDosage(t, "MedicationUsage", "dosage", element.getDosage().get(i), i);
|
||||
}
|
||||
|
@ -14823,8 +14772,14 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasDomain()) {
|
||||
composeCoding(t, "MedicinalProductDefinition", "domain", element.getDomain(), -1);
|
||||
}
|
||||
if (element.hasVersionElement()) {
|
||||
composeString(t, "MedicinalProductDefinition", "version", element.getVersionElement(), -1);
|
||||
}
|
||||
if (element.hasStatus()) {
|
||||
composeCoding(t, "MedicinalProductDefinition", "status", element.getStatus(), -1);
|
||||
}
|
||||
if (element.hasDescriptionElement()) {
|
||||
composeString(t, "MedicinalProductDefinition", "description", element.getDescriptionElement(), -1);
|
||||
composeMarkdown(t, "MedicinalProductDefinition", "description", element.getDescriptionElement(), -1);
|
||||
}
|
||||
if (element.hasCombinedPharmaceuticalDoseForm()) {
|
||||
composeCodeableConcept(t, "MedicinalProductDefinition", "combinedPharmaceuticalDoseForm", element.getCombinedPharmaceuticalDoseForm(), -1);
|
||||
|
@ -14991,23 +14946,20 @@ public class RdfParser extends RdfParserBase {
|
|||
t = parent.predicate("fhir:"+parentType+'.'+name);
|
||||
}
|
||||
composeBackboneElement(t, "manufacturingBusinessOperation", name, element, index);
|
||||
if (element.hasOperationType()) {
|
||||
composeCodeableConcept(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "operationType", element.getOperationType(), -1);
|
||||
}
|
||||
if (element.hasAuthorisationReferenceNumber()) {
|
||||
composeIdentifier(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "authorisationReferenceNumber", element.getAuthorisationReferenceNumber(), -1);
|
||||
if (element.hasType()) {
|
||||
composeType(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "type", element.getType(), -1);
|
||||
}
|
||||
if (element.hasEffectiveDate()) {
|
||||
composePeriod(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "effectiveDate", element.getEffectiveDate(), -1);
|
||||
}
|
||||
if (element.hasConfidentialityIndicator()) {
|
||||
composeCodeableConcept(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "confidentialityIndicator", element.getConfidentialityIndicator(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getManufacturer().size(); i++) {
|
||||
composeReference(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "manufacturer", element.getManufacturer().get(i), i);
|
||||
}
|
||||
if (element.hasRegulator()) {
|
||||
composeReference(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "regulator", element.getRegulator(), -1);
|
||||
if (element.hasAuthorization()) {
|
||||
composeReference(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "authorization", element.getAuthorization(), -1);
|
||||
}
|
||||
if (element.hasConfidentialityIndicator()) {
|
||||
composeCodeableConcept(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "confidentialityIndicator", element.getConfidentialityIndicator(), -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15703,10 +15655,7 @@ public class RdfParser extends RdfParserBase {
|
|||
composeReference(t, "NutritionIntake", "derivedFrom", element.getDerivedFrom().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "NutritionIntake", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "NutritionIntake", "reasonReference", element.getReasonReference().get(i), i);
|
||||
composeCodeableReference(t, "NutritionIntake", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getNote().size(); i++) {
|
||||
composeAnnotation(t, "NutritionIntake", "note", element.getNote().get(i), i);
|
||||
|
@ -17760,11 +17709,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasLocation()) {
|
||||
composeReference(t, "Procedure", "location", element.getLocation(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "Procedure", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "Procedure", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "Procedure", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getBodySite().size(); i++) {
|
||||
composeCodeableConcept(t, "Procedure", "bodySite", element.getBodySite().get(i), i);
|
||||
|
@ -17790,11 +17736,8 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getFocalDevice().size(); i++) {
|
||||
composeProcedureFocalDeviceComponent(t, "Procedure", "focalDevice", element.getFocalDevice().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getUsedReference().size(); i++) {
|
||||
composeReference(t, "Procedure", "usedReference", element.getUsedReference().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getUsedCode().size(); i++) {
|
||||
composeCodeableConcept(t, "Procedure", "usedCode", element.getUsedCode().get(i), i);
|
||||
for (int i = 0; i < element.getUsed().size(); i++) {
|
||||
composeCodeableReference(t, "Procedure", "used", element.getUsed().get(i), i);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18423,11 +18366,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasAuthor()) {
|
||||
composeReference(t, "RequestGroup", "author", element.getAuthor(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "RequestGroup", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "RequestGroup", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "RequestGroup", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getNote().size(); i++) {
|
||||
composeAnnotation(t, "RequestGroup", "note", element.getNote().get(i), i);
|
||||
|
@ -18777,11 +18717,8 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasPerformer()) {
|
||||
composeReference(t, "RiskAssessment", "performer", element.getPerformer(), -1);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "RiskAssessment", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "RiskAssessment", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "RiskAssessment", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getBasis().size(); i++) {
|
||||
composeReference(t, "RiskAssessment", "basis", element.getBasis().get(i), i);
|
||||
|
@ -19047,17 +18984,11 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getPerformer().size(); i++) {
|
||||
composeReference(t, "ServiceRequest", "performer", element.getPerformer().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getLocationCode().size(); i++) {
|
||||
composeCodeableConcept(t, "ServiceRequest", "locationCode", element.getLocationCode().get(i), i);
|
||||
for (int i = 0; i < element.getLocation().size(); i++) {
|
||||
composeCodeableReference(t, "ServiceRequest", "location", element.getLocation().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getLocationReference().size(); i++) {
|
||||
composeReference(t, "ServiceRequest", "locationReference", element.getLocationReference().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "ServiceRequest", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "ServiceRequest", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "ServiceRequest", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getInsurance().size(); i++) {
|
||||
composeReference(t, "ServiceRequest", "insurance", element.getInsurance().get(i), i);
|
||||
|
@ -20118,6 +20049,9 @@ public class RdfParser extends RdfParserBase {
|
|||
if (element.hasIdentifier()) {
|
||||
composeIdentifier(t, "SubstanceDefinition", "identifier", element.getIdentifier(), -1);
|
||||
}
|
||||
if (element.hasVersionElement()) {
|
||||
composeString(t, "SubstanceDefinition", "version", element.getVersionElement(), -1);
|
||||
}
|
||||
if (element.hasStatus()) {
|
||||
composeCodeableConcept(t, "SubstanceDefinition", "status", element.getStatus(), -1);
|
||||
}
|
||||
|
@ -21240,11 +21174,8 @@ public class RdfParser extends RdfParserBase {
|
|||
for (int i = 0; i < element.getSupplier().size(); i++) {
|
||||
composeReference(t, "SupplyRequest", "supplier", element.getSupplier().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonCode().size(); i++) {
|
||||
composeCodeableConcept(t, "SupplyRequest", "reasonCode", element.getReasonCode().get(i), i);
|
||||
}
|
||||
for (int i = 0; i < element.getReasonReference().size(); i++) {
|
||||
composeReference(t, "SupplyRequest", "reasonReference", element.getReasonReference().get(i), i);
|
||||
for (int i = 0; i < element.getReason().size(); i++) {
|
||||
composeCodeableReference(t, "SupplyRequest", "reason", element.getReason().get(i), i);
|
||||
}
|
||||
if (element.hasDeliverFrom()) {
|
||||
composeReference(t, "SupplyRequest", "deliverFrom", element.getDeliverFrom(), -1);
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.hl7.fhir.r5.formats;
|
||||
|
||||
|
||||
// generated
|
||||
|
||||
/*
|
||||
|
@ -51,7 +50,7 @@ package org.hl7.fhir.r5.formats;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
|
||||
|
||||
|
@ -3183,10 +3182,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.getSpecialty().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("appointmentType")) {
|
||||
res.setAppointmentType(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("priority")) {
|
||||
res.setPriorityElement(parseUnsignedInt(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) {
|
||||
|
@ -4773,10 +4770,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.getContributor().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("careTeam")) {
|
||||
res.getCareTeam().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("addressesCode")) {
|
||||
res.getAddressesCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("addressesReference")) {
|
||||
res.getAddressesReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("addresses")) {
|
||||
res.getAddresses().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("supportingInfo")) {
|
||||
res.getSupportingInfo().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("goal")) {
|
||||
|
@ -4807,10 +4802,8 @@ public class XmlParser extends XmlParserBase {
|
|||
}
|
||||
|
||||
protected boolean parseCarePlanActivityComponentContent(int eventType, XmlPullParser xpp, CarePlan.CarePlanActivityComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
|
||||
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcomeCodeableConcept")) {
|
||||
res.getOutcomeCodeableConcept().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcomeReference")) {
|
||||
res.getOutcomeReference().add(parseReference(xpp));
|
||||
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcome")) {
|
||||
res.getOutcome().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("progress")) {
|
||||
res.getProgress().add(parseAnnotation(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reference")) {
|
||||
|
@ -4847,10 +4840,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.getInstantiatesUri().add(parseUri(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) {
|
||||
res.setCode(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("goal")) {
|
||||
res.getGoal().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
|
||||
|
@ -4911,10 +4902,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setPeriod(parsePeriod(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("participant")) {
|
||||
res.getParticipant().add(parseCareTeamParticipantComponent(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("managingOrganization")) {
|
||||
res.getManagingOrganization().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("telecom")) {
|
||||
|
@ -6323,10 +6312,8 @@ public class XmlParser extends XmlParserBase {
|
|||
}
|
||||
|
||||
protected boolean parseClinicalImpressionFindingComponentContent(int eventType, XmlPullParser xpp, ClinicalImpression.ClinicalImpressionFindingComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
|
||||
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("itemCodeableConcept")) {
|
||||
res.setItemCodeableConcept(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("itemReference")) {
|
||||
res.setItemReference(parseReference(xpp));
|
||||
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("item")) {
|
||||
res.setItem(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("basis")) {
|
||||
res.setBasisElement(parseString(xpp));
|
||||
} else if (!parseBackboneElementContent(eventType, xpp, res)){
|
||||
|
@ -6831,10 +6818,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.getRecipient().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("sender")) {
|
||||
res.setSender(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("payload")) {
|
||||
res.getPayload().add(parseCommunicationPayloadComponent(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
|
@ -6923,10 +6908,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.getRecipient().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("informationProvider")) {
|
||||
res.getInformationProvider().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
res.getNote().add(parseAnnotation(xpp));
|
||||
} else if (!parseDomainResourceContent(eventType, xpp, res)){
|
||||
|
@ -8419,12 +8402,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setPerformer(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("performerLinkId")) {
|
||||
res.getPerformerLinkId().add(parseString(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseString(xpp));
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonLinkId")) {
|
||||
res.getReasonLinkId().add(parseString(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
|
@ -9723,10 +9702,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setPerformerType(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("performer")) {
|
||||
res.setPerformer(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("insurance")) {
|
||||
res.getInsurance().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("supportingInfo")) {
|
||||
|
@ -9801,10 +9778,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setSource(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("device")) {
|
||||
res.setDevice(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("bodySite")) {
|
||||
res.setBodySite(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
|
@ -10163,10 +10138,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setPeriod(parsePeriod(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("length")) {
|
||||
res.setLength(parseDuration(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("diagnosis")) {
|
||||
res.getDiagnosis().add(parseEncounterDiagnosisComponent(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("account")) {
|
||||
|
@ -12151,10 +12124,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setEstimatedAgeElement(parseBoolean(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "deceased")) {
|
||||
res.setDeceased(parseType("deceased", xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
res.getNote().add(parseAnnotation(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("condition")) {
|
||||
|
@ -12315,10 +12286,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.getAddresses().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
res.getNote().add(parseAnnotation(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcomeCode")) {
|
||||
res.getOutcomeCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcomeReference")) {
|
||||
res.getOutcomeReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcome")) {
|
||||
res.getOutcome().add(parseCodeableReference(xpp));
|
||||
} else if (!parseDomainResourceContent(eventType, xpp, res)){
|
||||
return false;
|
||||
}
|
||||
|
@ -12635,10 +12604,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setOccurrenceDateTimeElement(parseDateTime(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("performer")) {
|
||||
res.setPerformer(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
res.getNote().add(parseAnnotation(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("evaluationMessage")) {
|
||||
|
@ -12851,10 +12818,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.getProcedure().add(parseImagingStudyProcedureComponent(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("location")) {
|
||||
res.setLocation(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
res.getNote().add(parseAnnotation(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) {
|
||||
|
@ -13047,10 +13012,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.getPerformer().add(parseImmunizationPerformerComponent(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
res.getNote().add(parseAnnotation(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("isSubpotent")) {
|
||||
res.setIsSubpotentElement(parseBoolean(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subpotentReason")) {
|
||||
|
@ -15313,10 +15276,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setRecordedElement(parseDateTime(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("performer")) {
|
||||
res.getPerformer().add(parseMedicationAdministrationPerformerComponent(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("request")) {
|
||||
res.setRequest(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("device")) {
|
||||
|
@ -15451,6 +15412,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.getReceiver().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
res.getNote().add(parseAnnotation(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("renderedDosageInstruction")) {
|
||||
res.setRenderedDosageInstructionElement(parseString(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dosageInstruction")) {
|
||||
res.getDosageInstruction().add(parseDosage(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("substitution")) {
|
||||
|
@ -15663,8 +15626,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setItem(parseType("item", xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("isActive")) {
|
||||
res.setIsActiveElement(parseBoolean(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("strength")) {
|
||||
res.setStrength(parseRatio(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "strength")) {
|
||||
res.setStrength(parseType("strength", xpp));
|
||||
} else if (!parseBackboneElementContent(eventType, xpp, res)){
|
||||
return false;
|
||||
}
|
||||
|
@ -16065,6 +16028,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.getInsurance().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
res.getNote().add(parseAnnotation(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("renderedDosageInstruction")) {
|
||||
res.setRenderedDosageInstructionElement(parseString(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dosageInstruction")) {
|
||||
res.getDosageInstruction().add(parseDosage(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dispenseRequest")) {
|
||||
|
@ -16111,8 +16076,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setQuantity(parseQuantity(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("expectedSupplyDuration")) {
|
||||
res.setExpectedSupplyDuration(parseDuration(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("performer")) {
|
||||
res.setPerformer(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dispenser")) {
|
||||
res.setDispenser(parseReference(xpp));
|
||||
} else if (!parseBackboneElementContent(eventType, xpp, res)){
|
||||
return false;
|
||||
}
|
||||
|
@ -16213,12 +16178,12 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setInformationSource(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("derivedFrom")) {
|
||||
res.getDerivedFrom().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
res.getNote().add(parseAnnotation(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("renderedDosageInstruction")) {
|
||||
res.setRenderedDosageInstructionElement(parseString(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dosage")) {
|
||||
res.getDosage().add(parseDosage(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("takenAsOrdered")) {
|
||||
|
@ -16251,8 +16216,12 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setType(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("domain")) {
|
||||
res.setDomain(parseCoding(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("version")) {
|
||||
res.setVersionElement(parseString(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
|
||||
res.setStatus(parseCoding(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) {
|
||||
res.setDescriptionElement(parseString(xpp));
|
||||
res.setDescriptionElement(parseMarkdown(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("combinedPharmaceuticalDoseForm")) {
|
||||
res.setCombinedPharmaceuticalDoseForm(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("indication")) {
|
||||
|
@ -16447,18 +16416,16 @@ public class XmlParser extends XmlParserBase {
|
|||
}
|
||||
|
||||
protected boolean parseMedicinalProductDefinitionManufacturingBusinessOperationComponentContent(int eventType, XmlPullParser xpp, MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent res) throws XmlPullParserException, IOException, FHIRFormatError {
|
||||
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("operationType")) {
|
||||
res.setOperationType(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("authorisationReferenceNumber")) {
|
||||
res.setAuthorisationReferenceNumber(parseIdentifier(xpp));
|
||||
if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "type")) {
|
||||
res.setType(parseType("type", xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("effectiveDate")) {
|
||||
res.setEffectiveDate(parsePeriod(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("confidentialityIndicator")) {
|
||||
res.setConfidentialityIndicator(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("manufacturer")) {
|
||||
res.getManufacturer().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("regulator")) {
|
||||
res.setRegulator(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("authorization")) {
|
||||
res.setAuthorization(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("confidentialityIndicator")) {
|
||||
res.setConfidentialityIndicator(parseCodeableConcept(xpp));
|
||||
} else if (!parseBackboneElementContent(eventType, xpp, res)){
|
||||
return false;
|
||||
}
|
||||
|
@ -17188,9 +17155,7 @@ public class XmlParser extends XmlParserBase {
|
|||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("derivedFrom")) {
|
||||
res.getDerivedFrom().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
res.getReasonCode().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
res.getNote().add(parseAnnotation(xpp));
|
||||
} else if (!parseDomainResourceContent(eventType, xpp, res)){
|
||||
|
@ -19357,10 +19322,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.getPerformer().add(parseProcedurePerformerComponent(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("location")) {
|
||||
res.setLocation(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("bodySite")) {
|
||||
res.getBodySite().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcome")) {
|
||||
|
@ -19377,10 +19340,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.getNote().add(parseAnnotation(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("focalDevice")) {
|
||||
res.getFocalDevice().add(parseProcedureFocalDeviceComponent(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("usedReference")) {
|
||||
res.getUsedReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("usedCode")) {
|
||||
res.getUsedCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("used")) {
|
||||
res.getUsed().add(parseCodeableReference(xpp));
|
||||
} else if (!parseDomainResourceContent(eventType, xpp, res)){
|
||||
return false;
|
||||
}
|
||||
|
@ -20065,10 +20026,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setAuthoredOnElement(parseDateTime(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("author")) {
|
||||
res.setAuthor(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) {
|
||||
res.getNote().add(parseAnnotation(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("action")) {
|
||||
|
@ -20427,10 +20386,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setCondition(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("performer")) {
|
||||
res.setPerformer(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("basis")) {
|
||||
res.getBasis().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("prediction")) {
|
||||
|
@ -20677,14 +20634,10 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setPerformerType(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("performer")) {
|
||||
res.getPerformer().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("locationCode")) {
|
||||
res.getLocationCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("locationReference")) {
|
||||
res.getLocationReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("location")) {
|
||||
res.getLocation().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("insurance")) {
|
||||
res.getInsurance().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("supportingInfo")) {
|
||||
|
@ -21839,6 +21792,8 @@ public class XmlParser extends XmlParserBase {
|
|||
protected boolean parseSubstanceDefinitionContent(int eventType, XmlPullParser xpp, SubstanceDefinition res) throws XmlPullParserException, IOException, FHIRFormatError {
|
||||
if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) {
|
||||
res.setIdentifier(parseIdentifier(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("version")) {
|
||||
res.setVersionElement(parseString(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) {
|
||||
res.setStatus(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) {
|
||||
|
@ -23119,10 +23074,8 @@ public class XmlParser extends XmlParserBase {
|
|||
res.setRequester(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("supplier")) {
|
||||
res.getSupplier().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonCode")) {
|
||||
res.getReasonCode().add(parseCodeableConcept(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonReference")) {
|
||||
res.getReasonReference().add(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) {
|
||||
res.getReason().add(parseCodeableReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("deliverFrom")) {
|
||||
res.setDeliverFrom(parseReference(xpp));
|
||||
} else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("deliverTo")) {
|
||||
|
@ -29604,13 +29557,9 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasAppointmentType()) {
|
||||
composeCodeableConcept("appointmentType", element.getAppointmentType());
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasPriorityElement()) {
|
||||
composeUnsignedInt("priority", element.getPriorityElement());
|
||||
|
@ -31165,13 +31114,9 @@ public class XmlParser extends XmlParserBase {
|
|||
for (Reference e : element.getCareTeam())
|
||||
composeReference("careTeam", e);
|
||||
}
|
||||
if (element.hasAddressesCode()) {
|
||||
for (CodeableConcept e : element.getAddressesCode())
|
||||
composeCodeableConcept("addressesCode", e);
|
||||
}
|
||||
if (element.hasAddressesReference()) {
|
||||
for (Reference e : element.getAddressesReference())
|
||||
composeReference("addressesReference", e);
|
||||
if (element.hasAddresses()) {
|
||||
for (CodeableReference e : element.getAddresses())
|
||||
composeCodeableReference("addresses", e);
|
||||
}
|
||||
if (element.hasSupportingInfo()) {
|
||||
for (Reference e : element.getSupportingInfo())
|
||||
|
@ -31203,13 +31148,9 @@ public class XmlParser extends XmlParserBase {
|
|||
|
||||
protected void composeCarePlanActivityComponentElements(CarePlan.CarePlanActivityComponent element) throws IOException {
|
||||
composeBackboneElementElements(element);
|
||||
if (element.hasOutcomeCodeableConcept()) {
|
||||
for (CodeableConcept e : element.getOutcomeCodeableConcept())
|
||||
composeCodeableConcept("outcomeCodeableConcept", e);
|
||||
}
|
||||
if (element.hasOutcomeReference()) {
|
||||
for (Reference e : element.getOutcomeReference())
|
||||
composeReference("outcomeReference", e);
|
||||
if (element.hasOutcome()) {
|
||||
for (CodeableReference e : element.getOutcome())
|
||||
composeCodeableReference("outcome", e);
|
||||
}
|
||||
if (element.hasProgress()) {
|
||||
for (Annotation e : element.getProgress())
|
||||
|
@ -31248,13 +31189,9 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasCode()) {
|
||||
composeCodeableConcept("code", element.getCode());
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasGoal()) {
|
||||
for (Reference e : element.getGoal())
|
||||
|
@ -31327,13 +31264,9 @@ public class XmlParser extends XmlParserBase {
|
|||
for (CareTeam.CareTeamParticipantComponent e : element.getParticipant())
|
||||
composeCareTeamParticipantComponent("participant", e);
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasManagingOrganization()) {
|
||||
for (Reference e : element.getManagingOrganization())
|
||||
|
@ -32838,11 +32771,8 @@ public class XmlParser extends XmlParserBase {
|
|||
|
||||
protected void composeClinicalImpressionFindingComponentElements(ClinicalImpression.ClinicalImpressionFindingComponent element) throws IOException {
|
||||
composeBackboneElementElements(element);
|
||||
if (element.hasItemCodeableConcept()) {
|
||||
composeCodeableConcept("itemCodeableConcept", element.getItemCodeableConcept());
|
||||
}
|
||||
if (element.hasItemReference()) {
|
||||
composeReference("itemReference", element.getItemReference());
|
||||
if (element.hasItem()) {
|
||||
composeCodeableReference("item", element.getItem());
|
||||
}
|
||||
if (element.hasBasisElement()) {
|
||||
composeString("basis", element.getBasisElement());
|
||||
|
@ -33354,13 +33284,9 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasSender()) {
|
||||
composeReference("sender", element.getSender());
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasPayload()) {
|
||||
for (Communication.CommunicationPayloadComponent e : element.getPayload())
|
||||
|
@ -33463,13 +33389,9 @@ public class XmlParser extends XmlParserBase {
|
|||
for (Reference e : element.getInformationProvider())
|
||||
composeReference("informationProvider", e);
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasNote()) {
|
||||
for (Annotation e : element.getNote())
|
||||
|
@ -35028,17 +34950,9 @@ public class XmlParser extends XmlParserBase {
|
|||
for (StringType e : element.getPerformerLinkId())
|
||||
composeString("performerLinkId", e);
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
}
|
||||
if (element.hasReason()) {
|
||||
for (StringType e : element.getReason())
|
||||
composeString("reason", e);
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasReasonLinkId()) {
|
||||
for (StringType e : element.getReasonLinkId())
|
||||
|
@ -36302,13 +36216,9 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasPerformer()) {
|
||||
composeReference("performer", element.getPerformer());
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasInsurance()) {
|
||||
for (Reference e : element.getInsurance())
|
||||
|
@ -36387,13 +36297,9 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasDevice()) {
|
||||
composeReference("device", element.getDevice());
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasBodySite()) {
|
||||
composeCodeableConcept("bodySite", element.getBodySite());
|
||||
|
@ -36789,13 +36695,9 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasLength()) {
|
||||
composeDuration("length", element.getLength());
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasDiagnosis()) {
|
||||
for (Encounter.DiagnosisComponent e : element.getDiagnosis())
|
||||
|
@ -38904,13 +38806,9 @@ public class XmlParser extends XmlParserBase {
|
|||
}
|
||||
if (element.hasDeceased()) {
|
||||
composeType("deceased", element.getDeceased());
|
||||
} if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
} if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasNote()) {
|
||||
for (Annotation e : element.getNote())
|
||||
|
@ -39083,13 +38981,9 @@ public class XmlParser extends XmlParserBase {
|
|||
for (Annotation e : element.getNote())
|
||||
composeAnnotation("note", e);
|
||||
}
|
||||
if (element.hasOutcomeCode()) {
|
||||
for (CodeableConcept e : element.getOutcomeCode())
|
||||
composeCodeableConcept("outcomeCode", e);
|
||||
}
|
||||
if (element.hasOutcomeReference()) {
|
||||
for (Reference e : element.getOutcomeReference())
|
||||
composeReference("outcomeReference", e);
|
||||
if (element.hasOutcome()) {
|
||||
for (CodeableReference e : element.getOutcome())
|
||||
composeCodeableReference("outcome", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39395,13 +39289,9 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasPerformer()) {
|
||||
composeReference("performer", element.getPerformer());
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasNote()) {
|
||||
for (Annotation e : element.getNote())
|
||||
|
@ -39650,13 +39540,9 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasLocation()) {
|
||||
composeReference("location", element.getLocation());
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasNote()) {
|
||||
for (Annotation e : element.getNote())
|
||||
|
@ -39856,13 +39742,9 @@ public class XmlParser extends XmlParserBase {
|
|||
for (Annotation e : element.getNote())
|
||||
composeAnnotation("note", e);
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasIsSubpotentElement()) {
|
||||
composeBoolean("isSubpotent", element.getIsSubpotentElement());
|
||||
|
@ -42097,13 +41979,9 @@ public class XmlParser extends XmlParserBase {
|
|||
for (MedicationAdministration.MedicationAdministrationPerformerComponent e : element.getPerformer())
|
||||
composeMedicationAdministrationPerformerComponent("performer", e);
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasRequest()) {
|
||||
composeReference("request", element.getRequest());
|
||||
|
@ -42257,6 +42135,9 @@ public class XmlParser extends XmlParserBase {
|
|||
for (Annotation e : element.getNote())
|
||||
composeAnnotation("note", e);
|
||||
}
|
||||
if (element.hasRenderedDosageInstructionElement()) {
|
||||
composeString("renderedDosageInstruction", element.getRenderedDosageInstructionElement());
|
||||
}
|
||||
if (element.hasDosageInstruction()) {
|
||||
for (Dosage e : element.getDosageInstruction())
|
||||
composeDosage("dosageInstruction", e);
|
||||
|
@ -42482,9 +42363,8 @@ public class XmlParser extends XmlParserBase {
|
|||
composeBoolean("isActive", element.getIsActiveElement());
|
||||
}
|
||||
if (element.hasStrength()) {
|
||||
composeRatio("strength", element.getStrength());
|
||||
}
|
||||
}
|
||||
composeType("strength", element.getStrength());
|
||||
} }
|
||||
|
||||
protected void composeMedicationKnowledgeCostComponent(String name, MedicationKnowledge.MedicationKnowledgeCostComponent element) throws IOException {
|
||||
if (element != null) {
|
||||
|
@ -42846,6 +42726,9 @@ public class XmlParser extends XmlParserBase {
|
|||
for (Annotation e : element.getNote())
|
||||
composeAnnotation("note", e);
|
||||
}
|
||||
if (element.hasRenderedDosageInstructionElement()) {
|
||||
composeString("renderedDosageInstruction", element.getRenderedDosageInstructionElement());
|
||||
}
|
||||
if (element.hasDosageInstruction()) {
|
||||
for (Dosage e : element.getDosageInstruction())
|
||||
composeDosage("dosageInstruction", e);
|
||||
|
@ -42899,8 +42782,8 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasExpectedSupplyDuration()) {
|
||||
composeDuration("expectedSupplyDuration", element.getExpectedSupplyDuration());
|
||||
}
|
||||
if (element.hasPerformer()) {
|
||||
composeReference("performer", element.getPerformer());
|
||||
if (element.hasDispenser()) {
|
||||
composeReference("dispenser", element.getDispenser());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42997,18 +42880,17 @@ public class XmlParser extends XmlParserBase {
|
|||
for (Reference e : element.getDerivedFrom())
|
||||
composeReference("derivedFrom", e);
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasNote()) {
|
||||
for (Annotation e : element.getNote())
|
||||
composeAnnotation("note", e);
|
||||
}
|
||||
if (element.hasRenderedDosageInstructionElement()) {
|
||||
composeString("renderedDosageInstruction", element.getRenderedDosageInstructionElement());
|
||||
}
|
||||
if (element.hasDosage()) {
|
||||
for (Dosage e : element.getDosage())
|
||||
composeDosage("dosage", e);
|
||||
|
@ -43040,8 +42922,14 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasDomain()) {
|
||||
composeCoding("domain", element.getDomain());
|
||||
}
|
||||
if (element.hasVersionElement()) {
|
||||
composeString("version", element.getVersionElement());
|
||||
}
|
||||
if (element.hasStatus()) {
|
||||
composeCoding("status", element.getStatus());
|
||||
}
|
||||
if (element.hasDescriptionElement()) {
|
||||
composeString("description", element.getDescriptionElement());
|
||||
composeMarkdown("description", element.getDescriptionElement());
|
||||
}
|
||||
if (element.hasCombinedPharmaceuticalDoseForm()) {
|
||||
composeCodeableConcept("combinedPharmaceuticalDoseForm", element.getCombinedPharmaceuticalDoseForm());
|
||||
|
@ -43234,24 +43122,20 @@ public class XmlParser extends XmlParserBase {
|
|||
|
||||
protected void composeMedicinalProductDefinitionManufacturingBusinessOperationComponentElements(MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent element) throws IOException {
|
||||
composeBackboneElementElements(element);
|
||||
if (element.hasOperationType()) {
|
||||
composeCodeableConcept("operationType", element.getOperationType());
|
||||
}
|
||||
if (element.hasAuthorisationReferenceNumber()) {
|
||||
composeIdentifier("authorisationReferenceNumber", element.getAuthorisationReferenceNumber());
|
||||
}
|
||||
if (element.hasEffectiveDate()) {
|
||||
if (element.hasType()) {
|
||||
composeType("type", element.getType());
|
||||
} if (element.hasEffectiveDate()) {
|
||||
composePeriod("effectiveDate", element.getEffectiveDate());
|
||||
}
|
||||
if (element.hasConfidentialityIndicator()) {
|
||||
composeCodeableConcept("confidentialityIndicator", element.getConfidentialityIndicator());
|
||||
}
|
||||
if (element.hasManufacturer()) {
|
||||
for (Reference e : element.getManufacturer())
|
||||
composeReference("manufacturer", e);
|
||||
}
|
||||
if (element.hasRegulator()) {
|
||||
composeReference("regulator", element.getRegulator());
|
||||
if (element.hasAuthorization()) {
|
||||
composeReference("authorization", element.getAuthorization());
|
||||
}
|
||||
if (element.hasConfidentialityIndicator()) {
|
||||
composeCodeableConcept("confidentialityIndicator", element.getConfidentialityIndicator());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -44005,12 +43889,8 @@ public class XmlParser extends XmlParserBase {
|
|||
composeReference("derivedFrom", e);
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
for (CodeableReference e : element.getReasonCode())
|
||||
composeCodeableReference("reasonCode", e);
|
||||
}
|
||||
if (element.hasNote()) {
|
||||
for (Annotation e : element.getNote())
|
||||
|
@ -46288,13 +46168,9 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasLocation()) {
|
||||
composeReference("location", element.getLocation());
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasBodySite()) {
|
||||
for (CodeableConcept e : element.getBodySite())
|
||||
|
@ -46327,13 +46203,9 @@ public class XmlParser extends XmlParserBase {
|
|||
for (Procedure.ProcedureFocalDeviceComponent e : element.getFocalDevice())
|
||||
composeProcedureFocalDeviceComponent("focalDevice", e);
|
||||
}
|
||||
if (element.hasUsedReference()) {
|
||||
for (Reference e : element.getUsedReference())
|
||||
composeReference("usedReference", e);
|
||||
}
|
||||
if (element.hasUsedCode()) {
|
||||
for (CodeableConcept e : element.getUsedCode())
|
||||
composeCodeableConcept("usedCode", e);
|
||||
if (element.hasUsed()) {
|
||||
for (CodeableReference e : element.getUsed())
|
||||
composeCodeableReference("used", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -47028,13 +46900,9 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasAuthor()) {
|
||||
composeReference("author", element.getAuthor());
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasNote()) {
|
||||
for (Annotation e : element.getNote())
|
||||
|
@ -47414,13 +47282,9 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasPerformer()) {
|
||||
composeReference("performer", element.getPerformer());
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasBasis()) {
|
||||
for (Reference e : element.getBasis())
|
||||
|
@ -47708,21 +47572,13 @@ public class XmlParser extends XmlParserBase {
|
|||
for (Reference e : element.getPerformer())
|
||||
composeReference("performer", e);
|
||||
}
|
||||
if (element.hasLocationCode()) {
|
||||
for (CodeableConcept e : element.getLocationCode())
|
||||
composeCodeableConcept("locationCode", e);
|
||||
if (element.hasLocation()) {
|
||||
for (CodeableReference e : element.getLocation())
|
||||
composeCodeableReference("location", e);
|
||||
}
|
||||
if (element.hasLocationReference()) {
|
||||
for (Reference e : element.getLocationReference())
|
||||
composeReference("locationReference", e);
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasInsurance()) {
|
||||
for (Reference e : element.getInsurance())
|
||||
|
@ -48882,6 +48738,9 @@ public class XmlParser extends XmlParserBase {
|
|||
if (element.hasIdentifier()) {
|
||||
composeIdentifier("identifier", element.getIdentifier());
|
||||
}
|
||||
if (element.hasVersionElement()) {
|
||||
composeString("version", element.getVersionElement());
|
||||
}
|
||||
if (element.hasStatus()) {
|
||||
composeCodeableConcept("status", element.getStatus());
|
||||
}
|
||||
|
@ -50128,13 +49987,9 @@ public class XmlParser extends XmlParserBase {
|
|||
for (Reference e : element.getSupplier())
|
||||
composeReference("supplier", e);
|
||||
}
|
||||
if (element.hasReasonCode()) {
|
||||
for (CodeableConcept e : element.getReasonCode())
|
||||
composeCodeableConcept("reasonCode", e);
|
||||
}
|
||||
if (element.hasReasonReference()) {
|
||||
for (Reference e : element.getReasonReference())
|
||||
composeReference("reasonReference", e);
|
||||
if (element.hasReason()) {
|
||||
for (CodeableReference e : element.getReason())
|
||||
composeCodeableReference("reason", e);
|
||||
}
|
||||
if (element.hasDeliverFrom()) {
|
||||
composeReference("deliverFrom", element.getDeliverFrom());
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
@ -889,101 +889,94 @@ public class Appointment extends DomainResource {
|
|||
protected CodeableConcept appointmentType;
|
||||
|
||||
/**
|
||||
* The coded reason that this appointment is being scheduled. This is more clinical than administrative.
|
||||
* The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.
|
||||
*/
|
||||
@Child(name = "reasonCode", type = {CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Coded reason this appointment is scheduled", formalDefinition="The coded reason that this appointment is being scheduled. This is more clinical than administrative." )
|
||||
@Child(name = "reason", type = {CodeableReference.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Reason this appointment is scheduled", formalDefinition="The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure." )
|
||||
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/encounter-reason")
|
||||
protected List<CodeableConcept> reasonCode;
|
||||
|
||||
/**
|
||||
* Reason the appointment has been scheduled to take place, as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.
|
||||
*/
|
||||
@Child(name = "reasonReference", type = {Condition.class, Procedure.class, Observation.class, ImmunizationRecommendation.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Reason the appointment is to take place (resource)", formalDefinition="Reason the appointment has been scheduled to take place, as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure." )
|
||||
protected List<Reference> reasonReference;
|
||||
protected List<CodeableReference> reason;
|
||||
|
||||
/**
|
||||
* The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).
|
||||
*/
|
||||
@Child(name = "priority", type = {UnsignedIntType.class}, order=9, min=0, max=1, modifier=false, summary=false)
|
||||
@Child(name = "priority", type = {UnsignedIntType.class}, order=8, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Used to make informed decisions if needing to re-prioritize", formalDefinition="The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority)." )
|
||||
protected UnsignedIntType priority;
|
||||
|
||||
/**
|
||||
* The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.
|
||||
*/
|
||||
@Child(name = "description", type = {StringType.class}, order=10, min=0, max=1, modifier=false, summary=false)
|
||||
@Child(name = "description", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Shown on a subject line in a meeting request, or appointment list", formalDefinition="The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field." )
|
||||
protected StringType description;
|
||||
|
||||
/**
|
||||
* Additional information to support the appointment provided when making the appointment.
|
||||
*/
|
||||
@Child(name = "supportingInformation", type = {Reference.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "supportingInformation", type = {Reference.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Additional information to support the appointment", formalDefinition="Additional information to support the appointment provided when making the appointment." )
|
||||
protected List<Reference> supportingInformation;
|
||||
|
||||
/**
|
||||
* Date/Time that the appointment is to take place.
|
||||
*/
|
||||
@Child(name = "start", type = {InstantType.class}, order=12, min=0, max=1, modifier=false, summary=true)
|
||||
@Child(name = "start", type = {InstantType.class}, order=11, min=0, max=1, modifier=false, summary=true)
|
||||
@Description(shortDefinition="When appointment is to take place", formalDefinition="Date/Time that the appointment is to take place." )
|
||||
protected InstantType start;
|
||||
|
||||
/**
|
||||
* Date/Time that the appointment is to conclude.
|
||||
*/
|
||||
@Child(name = "end", type = {InstantType.class}, order=13, min=0, max=1, modifier=false, summary=true)
|
||||
@Child(name = "end", type = {InstantType.class}, order=12, min=0, max=1, modifier=false, summary=true)
|
||||
@Description(shortDefinition="When appointment is to conclude", formalDefinition="Date/Time that the appointment is to conclude." )
|
||||
protected InstantType end;
|
||||
|
||||
/**
|
||||
* Number of minutes that the appointment is to take. This can be less than the duration between the start and end times. For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work. Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end.
|
||||
*/
|
||||
@Child(name = "minutesDuration", type = {PositiveIntType.class}, order=14, min=0, max=1, modifier=false, summary=false)
|
||||
@Child(name = "minutesDuration", type = {PositiveIntType.class}, order=13, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Can be less than start/end (e.g. estimate)", formalDefinition="Number of minutes that the appointment is to take. This can be less than the duration between the start and end times. For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work. Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end." )
|
||||
protected PositiveIntType minutesDuration;
|
||||
|
||||
/**
|
||||
* The slots from the participants' schedules that will be filled by the appointment.
|
||||
*/
|
||||
@Child(name = "slot", type = {Slot.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "slot", type = {Slot.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="The slots that this appointment is filling", formalDefinition="The slots from the participants' schedules that will be filled by the appointment." )
|
||||
protected List<Reference> slot;
|
||||
|
||||
/**
|
||||
* The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.
|
||||
*/
|
||||
@Child(name = "created", type = {DateTimeType.class}, order=16, min=0, max=1, modifier=false, summary=false)
|
||||
@Child(name = "created", type = {DateTimeType.class}, order=15, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="The date that this appointment was initially created", formalDefinition="The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment." )
|
||||
protected DateTimeType created;
|
||||
|
||||
/**
|
||||
* Additional comments about the appointment.
|
||||
*/
|
||||
@Child(name = "comment", type = {StringType.class}, order=17, min=0, max=1, modifier=false, summary=false)
|
||||
@Child(name = "comment", type = {StringType.class}, order=16, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Additional comments", formalDefinition="Additional comments about the appointment." )
|
||||
protected StringType comment;
|
||||
|
||||
/**
|
||||
* While Appointment.comment contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before).
|
||||
*/
|
||||
@Child(name = "patientInstruction", type = {StringType.class}, order=18, min=0, max=1, modifier=false, summary=false)
|
||||
@Child(name = "patientInstruction", type = {StringType.class}, order=17, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Detailed information and instructions for the patient", formalDefinition="While Appointment.comment contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before)." )
|
||||
protected StringType patientInstruction;
|
||||
|
||||
/**
|
||||
* The service request this appointment is allocated to assess (e.g. incoming referral or procedure request).
|
||||
*/
|
||||
@Child(name = "basedOn", type = {ServiceRequest.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "basedOn", type = {ServiceRequest.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="The service request this appointment is allocated to assess", formalDefinition="The service request this appointment is allocated to assess (e.g. incoming referral or procedure request)." )
|
||||
protected List<Reference> basedOn;
|
||||
|
||||
/**
|
||||
* List of participants involved in the appointment.
|
||||
*/
|
||||
@Child(name = "participant", type = {}, order=20, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "participant", type = {}, order=19, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Participants involved in appointment", formalDefinition="List of participants involved in the appointment." )
|
||||
protected List<AppointmentParticipantComponent> participant;
|
||||
|
||||
|
@ -992,11 +985,11 @@ public class Appointment extends DomainResource {
|
|||
|
||||
The duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system.
|
||||
*/
|
||||
@Child(name = "requestedPeriod", type = {Period.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "requestedPeriod", type = {Period.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Potential date/time interval(s) requested to allocate the appointment within", formalDefinition="A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within.\n\nThe duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system." )
|
||||
protected List<Period> requestedPeriod;
|
||||
|
||||
private static final long serialVersionUID = 267666863L;
|
||||
private static final long serialVersionUID = 1849497415L;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -1320,109 +1313,56 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonCode} (The coded reason that this appointment is being scheduled. This is more clinical than administrative.)
|
||||
* @return {@link #reason} (The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.)
|
||||
*/
|
||||
public List<CodeableConcept> getReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
return this.reasonCode;
|
||||
public List<CodeableReference> getReason() {
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
return this.reason;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public Appointment setReasonCode(List<CodeableConcept> theReasonCode) {
|
||||
this.reasonCode = theReasonCode;
|
||||
public Appointment setReason(List<CodeableReference> theReason) {
|
||||
this.reason = theReason;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
public boolean hasReason() {
|
||||
if (this.reason == null)
|
||||
return false;
|
||||
for (CodeableConcept item : this.reasonCode)
|
||||
for (CodeableReference item : this.reason)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public CodeableConcept addReasonCode() { //3
|
||||
CodeableConcept t = new CodeableConcept();
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
public CodeableReference addReason() { //3
|
||||
CodeableReference t = new CodeableReference();
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public Appointment addReasonCode(CodeableConcept t) { //3
|
||||
public Appointment addReason(CodeableReference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonCode}, creating it if it does not already exist {3}
|
||||
* @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public CodeableConcept getReasonCodeFirstRep() {
|
||||
if (getReasonCode().isEmpty()) {
|
||||
addReasonCode();
|
||||
public CodeableReference getReasonFirstRep() {
|
||||
if (getReason().isEmpty()) {
|
||||
addReason();
|
||||
}
|
||||
return getReasonCode().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonReference} (Reason the appointment has been scheduled to take place, as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.)
|
||||
*/
|
||||
public List<Reference> getReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
return this.reasonReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public Appointment setReasonReference(List<Reference> theReasonReference) {
|
||||
this.reasonReference = theReasonReference;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
return false;
|
||||
for (Reference item : this.reasonReference)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public Reference addReasonReference() { //3
|
||||
Reference t = new Reference();
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public Appointment addReasonReference(Reference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonReference}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public Reference getReasonReferenceFirstRep() {
|
||||
if (getReasonReference().isEmpty()) {
|
||||
addReasonReference();
|
||||
}
|
||||
return getReasonReference().get(0);
|
||||
return getReason().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2085,8 +2025,7 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
children.add(new Property("serviceType", "CodeableConcept", "The specific service that is to be performed during this appointment.", 0, java.lang.Integer.MAX_VALUE, serviceType));
|
||||
children.add(new Property("specialty", "CodeableConcept", "The specialty of a practitioner that would be required to perform the service requested in this appointment.", 0, java.lang.Integer.MAX_VALUE, specialty));
|
||||
children.add(new Property("appointmentType", "CodeableConcept", "The style of appointment or patient that has been booked in the slot (not service type).", 0, 1, appointmentType));
|
||||
children.add(new Property("reasonCode", "CodeableConcept", "The coded reason that this appointment is being scheduled. This is more clinical than administrative.", 0, java.lang.Integer.MAX_VALUE, reasonCode));
|
||||
children.add(new Property("reasonReference", "Reference(Condition|Procedure|Observation|ImmunizationRecommendation)", "Reason the appointment has been scheduled to take place, as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.", 0, java.lang.Integer.MAX_VALUE, reasonReference));
|
||||
children.add(new Property("reason", "CodeableReference(Condition|Procedure|Observation|ImmunizationRecommendation)", "The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.", 0, java.lang.Integer.MAX_VALUE, reason));
|
||||
children.add(new Property("priority", "unsignedInt", "The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).", 0, 1, priority));
|
||||
children.add(new Property("description", "string", "The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.", 0, 1, description));
|
||||
children.add(new Property("supportingInformation", "Reference(Any)", "Additional information to support the appointment provided when making the appointment.", 0, java.lang.Integer.MAX_VALUE, supportingInformation));
|
||||
|
@ -2112,8 +2051,7 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
case -1928370289: /*serviceType*/ return new Property("serviceType", "CodeableConcept", "The specific service that is to be performed during this appointment.", 0, java.lang.Integer.MAX_VALUE, serviceType);
|
||||
case -1694759682: /*specialty*/ return new Property("specialty", "CodeableConcept", "The specialty of a practitioner that would be required to perform the service requested in this appointment.", 0, java.lang.Integer.MAX_VALUE, specialty);
|
||||
case -1596426375: /*appointmentType*/ return new Property("appointmentType", "CodeableConcept", "The style of appointment or patient that has been booked in the slot (not service type).", 0, 1, appointmentType);
|
||||
case 722137681: /*reasonCode*/ return new Property("reasonCode", "CodeableConcept", "The coded reason that this appointment is being scheduled. This is more clinical than administrative.", 0, java.lang.Integer.MAX_VALUE, reasonCode);
|
||||
case -1146218137: /*reasonReference*/ return new Property("reasonReference", "Reference(Condition|Procedure|Observation|ImmunizationRecommendation)", "Reason the appointment has been scheduled to take place, as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.", 0, java.lang.Integer.MAX_VALUE, reasonReference);
|
||||
case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Condition|Procedure|Observation|ImmunizationRecommendation)", "The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure.", 0, java.lang.Integer.MAX_VALUE, reason);
|
||||
case -1165461084: /*priority*/ return new Property("priority", "unsignedInt", "The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).", 0, 1, priority);
|
||||
case -1724546052: /*description*/ return new Property("description", "string", "The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.", 0, 1, description);
|
||||
case -1248768647: /*supportingInformation*/ return new Property("supportingInformation", "Reference(Any)", "Additional information to support the appointment provided when making the appointment.", 0, java.lang.Integer.MAX_VALUE, supportingInformation);
|
||||
|
@ -2142,8 +2080,7 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
case -1928370289: /*serviceType*/ return this.serviceType == null ? new Base[0] : this.serviceType.toArray(new Base[this.serviceType.size()]); // CodeableConcept
|
||||
case -1694759682: /*specialty*/ return this.specialty == null ? new Base[0] : this.specialty.toArray(new Base[this.specialty.size()]); // CodeableConcept
|
||||
case -1596426375: /*appointmentType*/ return this.appointmentType == null ? new Base[0] : new Base[] {this.appointmentType}; // CodeableConcept
|
||||
case 722137681: /*reasonCode*/ return this.reasonCode == null ? new Base[0] : this.reasonCode.toArray(new Base[this.reasonCode.size()]); // CodeableConcept
|
||||
case -1146218137: /*reasonReference*/ return this.reasonReference == null ? new Base[0] : this.reasonReference.toArray(new Base[this.reasonReference.size()]); // Reference
|
||||
case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference
|
||||
case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // UnsignedIntType
|
||||
case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
|
||||
case -1248768647: /*supportingInformation*/ return this.supportingInformation == null ? new Base[0] : this.supportingInformation.toArray(new Base[this.supportingInformation.size()]); // Reference
|
||||
|
@ -2187,11 +2124,8 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
case -1596426375: // appointmentType
|
||||
this.appointmentType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
|
||||
return value;
|
||||
case 722137681: // reasonCode
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
|
||||
return value;
|
||||
case -1146218137: // reasonReference
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value)); // Reference
|
||||
case -934964668: // reason
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference
|
||||
return value;
|
||||
case -1165461084: // priority
|
||||
this.priority = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType
|
||||
|
@ -2254,10 +2188,8 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
this.getSpecialty().add(TypeConvertor.castToCodeableConcept(value));
|
||||
} else if (name.equals("appointmentType")) {
|
||||
this.appointmentType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
|
||||
} else if (name.equals("reasonCode")) {
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value));
|
||||
} else if (name.equals("reasonReference")) {
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value));
|
||||
} else if (name.equals("reason")) {
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value));
|
||||
} else if (name.equals("priority")) {
|
||||
this.priority = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType
|
||||
} else if (name.equals("description")) {
|
||||
|
@ -2299,8 +2231,7 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
case -1928370289: return addServiceType();
|
||||
case -1694759682: return addSpecialty();
|
||||
case -1596426375: return getAppointmentType();
|
||||
case 722137681: return addReasonCode();
|
||||
case -1146218137: return addReasonReference();
|
||||
case -934964668: return addReason();
|
||||
case -1165461084: return getPriorityElement();
|
||||
case -1724546052: return getDescriptionElement();
|
||||
case -1248768647: return addSupportingInformation();
|
||||
|
@ -2329,8 +2260,7 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
case -1928370289: /*serviceType*/ return new String[] {"CodeableConcept"};
|
||||
case -1694759682: /*specialty*/ return new String[] {"CodeableConcept"};
|
||||
case -1596426375: /*appointmentType*/ return new String[] {"CodeableConcept"};
|
||||
case 722137681: /*reasonCode*/ return new String[] {"CodeableConcept"};
|
||||
case -1146218137: /*reasonReference*/ return new String[] {"Reference"};
|
||||
case -934964668: /*reason*/ return new String[] {"CodeableReference"};
|
||||
case -1165461084: /*priority*/ return new String[] {"unsignedInt"};
|
||||
case -1724546052: /*description*/ return new String[] {"string"};
|
||||
case -1248768647: /*supportingInformation*/ return new String[] {"Reference"};
|
||||
|
@ -2374,11 +2304,8 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
this.appointmentType = new CodeableConcept();
|
||||
return this.appointmentType;
|
||||
}
|
||||
else if (name.equals("reasonCode")) {
|
||||
return addReasonCode();
|
||||
}
|
||||
else if (name.equals("reasonReference")) {
|
||||
return addReasonReference();
|
||||
else if (name.equals("reason")) {
|
||||
return addReason();
|
||||
}
|
||||
else if (name.equals("priority")) {
|
||||
throw new FHIRException("Cannot call addChild on a primitive type Appointment.priority");
|
||||
|
@ -2459,15 +2386,10 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
dst.specialty.add(i.copy());
|
||||
};
|
||||
dst.appointmentType = appointmentType == null ? null : appointmentType.copy();
|
||||
if (reasonCode != null) {
|
||||
dst.reasonCode = new ArrayList<CodeableConcept>();
|
||||
for (CodeableConcept i : reasonCode)
|
||||
dst.reasonCode.add(i.copy());
|
||||
};
|
||||
if (reasonReference != null) {
|
||||
dst.reasonReference = new ArrayList<Reference>();
|
||||
for (Reference i : reasonReference)
|
||||
dst.reasonReference.add(i.copy());
|
||||
if (reason != null) {
|
||||
dst.reason = new ArrayList<CodeableReference>();
|
||||
for (CodeableReference i : reason)
|
||||
dst.reason.add(i.copy());
|
||||
};
|
||||
dst.priority = priority == null ? null : priority.copy();
|
||||
dst.description = description == null ? null : description.copy();
|
||||
|
@ -2518,12 +2440,11 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(cancelationReason, o.cancelationReason, true)
|
||||
&& compareDeep(serviceCategory, o.serviceCategory, true) && compareDeep(serviceType, o.serviceType, true)
|
||||
&& compareDeep(specialty, o.specialty, true) && compareDeep(appointmentType, o.appointmentType, true)
|
||||
&& compareDeep(reasonCode, o.reasonCode, true) && compareDeep(reasonReference, o.reasonReference, true)
|
||||
&& compareDeep(priority, o.priority, true) && compareDeep(description, o.description, true) && compareDeep(supportingInformation, o.supportingInformation, true)
|
||||
&& compareDeep(start, o.start, true) && compareDeep(end, o.end, true) && compareDeep(minutesDuration, o.minutesDuration, true)
|
||||
&& compareDeep(slot, o.slot, true) && compareDeep(created, o.created, true) && compareDeep(comment, o.comment, true)
|
||||
&& compareDeep(patientInstruction, o.patientInstruction, true) && compareDeep(basedOn, o.basedOn, true)
|
||||
&& compareDeep(participant, o.participant, true) && compareDeep(requestedPeriod, o.requestedPeriod, true)
|
||||
&& compareDeep(reason, o.reason, true) && compareDeep(priority, o.priority, true) && compareDeep(description, o.description, true)
|
||||
&& compareDeep(supportingInformation, o.supportingInformation, true) && compareDeep(start, o.start, true)
|
||||
&& compareDeep(end, o.end, true) && compareDeep(minutesDuration, o.minutesDuration, true) && compareDeep(slot, o.slot, true)
|
||||
&& compareDeep(created, o.created, true) && compareDeep(comment, o.comment, true) && compareDeep(patientInstruction, o.patientInstruction, true)
|
||||
&& compareDeep(basedOn, o.basedOn, true) && compareDeep(participant, o.participant, true) && compareDeep(requestedPeriod, o.requestedPeriod, true)
|
||||
;
|
||||
}
|
||||
|
||||
|
@ -2542,9 +2463,9 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, cancelationReason
|
||||
, serviceCategory, serviceType, specialty, appointmentType, reasonCode, reasonReference
|
||||
, priority, description, supportingInformation, start, end, minutesDuration, slot
|
||||
, created, comment, patientInstruction, basedOn, participant, requestedPeriod);
|
||||
, serviceCategory, serviceType, specialty, appointmentType, reason, priority, description
|
||||
, supportingInformation, start, end, minutesDuration, slot, created, comment, patientInstruction
|
||||
, basedOn, participant, requestedPeriod);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -2765,19 +2686,19 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
/**
|
||||
* Search parameter: <b>reason-code</b>
|
||||
* <p>
|
||||
* Description: <b>Coded reason this appointment is scheduled</b><br>
|
||||
* Description: <b>Reference to a concept (by class)</b><br>
|
||||
* Type: <b>token</b><br>
|
||||
* Path: <b>Appointment.reasonCode</b><br>
|
||||
* Path: <b>Appointment.reason.concept</b><br>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="reason-code", path="Appointment.reasonCode", description="Coded reason this appointment is scheduled", type="token" )
|
||||
@SearchParamDefinition(name="reason-code", path="Appointment.reason.concept", description="Reference to a concept (by class)", type="token" )
|
||||
public static final String SP_REASON_CODE = "reason-code";
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>reason-code</b>
|
||||
* <p>
|
||||
* Description: <b>Coded reason this appointment is scheduled</b><br>
|
||||
* Description: <b>Reference to a concept (by class)</b><br>
|
||||
* Type: <b>token</b><br>
|
||||
* Path: <b>Appointment.reasonCode</b><br>
|
||||
* Path: <b>Appointment.reason.concept</b><br>
|
||||
* </p>
|
||||
*/
|
||||
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON_CODE);
|
||||
|
@ -2785,19 +2706,19 @@ The duration (usually in minutes) could also be provided to indicate the length
|
|||
/**
|
||||
* Search parameter: <b>reason-reference</b>
|
||||
* <p>
|
||||
* Description: <b>Reason the appointment is to take place (resource)</b><br>
|
||||
* Description: <b>Reference to a resource (by instance)</b><br>
|
||||
* Type: <b>reference</b><br>
|
||||
* Path: <b>Appointment.reasonReference</b><br>
|
||||
* Path: <b>Appointment.reason.reference</b><br>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="reason-reference", path="Appointment.reasonReference", description="Reason the appointment is to take place (resource)", type="reference", target={Condition.class, ImmunizationRecommendation.class, Observation.class, Procedure.class } )
|
||||
@SearchParamDefinition(name="reason-reference", path="Appointment.reason.reference", description="Reference to a resource (by instance)", type="reference" )
|
||||
public static final String SP_REASON_REFERENCE = "reason-reference";
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>reason-reference</b>
|
||||
* <p>
|
||||
* Description: <b>Reason the appointment is to take place (resource)</b><br>
|
||||
* Description: <b>Reference to a resource (by instance)</b><br>
|
||||
* Type: <b>reference</b><br>
|
||||
* Path: <b>Appointment.reasonReference</b><br>
|
||||
* Path: <b>Appointment.reason.reference</b><br>
|
||||
* </p>
|
||||
*/
|
||||
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REASON_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REASON_REFERENCE);
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
@ -598,40 +598,33 @@ public class CareTeam extends DomainResource {
|
|||
/**
|
||||
* Describes why the care team exists.
|
||||
*/
|
||||
@Child(name = "reasonCode", type = {CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "reason", type = {CodeableReference.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Why the care team exists", formalDefinition="Describes why the care team exists." )
|
||||
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/clinical-findings")
|
||||
protected List<CodeableConcept> reasonCode;
|
||||
|
||||
/**
|
||||
* Condition(s) that this care team addresses.
|
||||
*/
|
||||
@Child(name = "reasonReference", type = {Condition.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Why the care team exists", formalDefinition="Condition(s) that this care team addresses." )
|
||||
protected List<Reference> reasonReference;
|
||||
protected List<CodeableReference> reason;
|
||||
|
||||
/**
|
||||
* The organization responsible for the care team.
|
||||
*/
|
||||
@Child(name = "managingOrganization", type = {Organization.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Child(name = "managingOrganization", type = {Organization.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Organization responsible for the care team", formalDefinition="The organization responsible for the care team." )
|
||||
protected List<Reference> managingOrganization;
|
||||
|
||||
/**
|
||||
* A central contact detail for the care team (that applies to all members).
|
||||
*/
|
||||
@Child(name = "telecom", type = {ContactPoint.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "telecom", type = {ContactPoint.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="A contact detail for the care team (that applies to all members)", formalDefinition="A central contact detail for the care team (that applies to all members)." )
|
||||
protected List<ContactPoint> telecom;
|
||||
|
||||
/**
|
||||
* Comments made about the CareTeam.
|
||||
*/
|
||||
@Child(name = "note", type = {Annotation.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "note", type = {Annotation.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Comments made about the CareTeam", formalDefinition="Comments made about the CareTeam." )
|
||||
protected List<Annotation> note;
|
||||
|
||||
private static final long serialVersionUID = -1665007774L;
|
||||
private static final long serialVersionUID = 1147350970L;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -946,109 +939,56 @@ public class CareTeam extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonCode} (Describes why the care team exists.)
|
||||
* @return {@link #reason} (Describes why the care team exists.)
|
||||
*/
|
||||
public List<CodeableConcept> getReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
return this.reasonCode;
|
||||
public List<CodeableReference> getReason() {
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
return this.reason;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public CareTeam setReasonCode(List<CodeableConcept> theReasonCode) {
|
||||
this.reasonCode = theReasonCode;
|
||||
public CareTeam setReason(List<CodeableReference> theReason) {
|
||||
this.reason = theReason;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
public boolean hasReason() {
|
||||
if (this.reason == null)
|
||||
return false;
|
||||
for (CodeableConcept item : this.reasonCode)
|
||||
for (CodeableReference item : this.reason)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public CodeableConcept addReasonCode() { //3
|
||||
CodeableConcept t = new CodeableConcept();
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
public CodeableReference addReason() { //3
|
||||
CodeableReference t = new CodeableReference();
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public CareTeam addReasonCode(CodeableConcept t) { //3
|
||||
public CareTeam addReason(CodeableReference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonCode}, creating it if it does not already exist {3}
|
||||
* @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public CodeableConcept getReasonCodeFirstRep() {
|
||||
if (getReasonCode().isEmpty()) {
|
||||
addReasonCode();
|
||||
public CodeableReference getReasonFirstRep() {
|
||||
if (getReason().isEmpty()) {
|
||||
addReason();
|
||||
}
|
||||
return getReasonCode().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonReference} (Condition(s) that this care team addresses.)
|
||||
*/
|
||||
public List<Reference> getReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
return this.reasonReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public CareTeam setReasonReference(List<Reference> theReasonReference) {
|
||||
this.reasonReference = theReasonReference;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
return false;
|
||||
for (Reference item : this.reasonReference)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public Reference addReasonReference() { //3
|
||||
Reference t = new Reference();
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public CareTeam addReasonReference(Reference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonReference}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public Reference getReasonReferenceFirstRep() {
|
||||
if (getReasonReference().isEmpty()) {
|
||||
addReasonReference();
|
||||
}
|
||||
return getReasonReference().get(0);
|
||||
return getReason().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1219,8 +1159,7 @@ public class CareTeam extends DomainResource {
|
|||
children.add(new Property("subject", "Reference(Patient|Group)", "Identifies the patient or group whose intended care is handled by the team.", 0, 1, subject));
|
||||
children.add(new Property("period", "Period", "Indicates when the team did (or is intended to) come into effect and end.", 0, 1, period));
|
||||
children.add(new Property("participant", "", "Identifies all people and organizations who are expected to be involved in the care team.", 0, java.lang.Integer.MAX_VALUE, participant));
|
||||
children.add(new Property("reasonCode", "CodeableConcept", "Describes why the care team exists.", 0, java.lang.Integer.MAX_VALUE, reasonCode));
|
||||
children.add(new Property("reasonReference", "Reference(Condition)", "Condition(s) that this care team addresses.", 0, java.lang.Integer.MAX_VALUE, reasonReference));
|
||||
children.add(new Property("reason", "CodeableReference(Condition)", "Describes why the care team exists.", 0, java.lang.Integer.MAX_VALUE, reason));
|
||||
children.add(new Property("managingOrganization", "Reference(Organization)", "The organization responsible for the care team.", 0, java.lang.Integer.MAX_VALUE, managingOrganization));
|
||||
children.add(new Property("telecom", "ContactPoint", "A central contact detail for the care team (that applies to all members).", 0, java.lang.Integer.MAX_VALUE, telecom));
|
||||
children.add(new Property("note", "Annotation", "Comments made about the CareTeam.", 0, java.lang.Integer.MAX_VALUE, note));
|
||||
|
@ -1236,8 +1175,7 @@ public class CareTeam extends DomainResource {
|
|||
case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group)", "Identifies the patient or group whose intended care is handled by the team.", 0, 1, subject);
|
||||
case -991726143: /*period*/ return new Property("period", "Period", "Indicates when the team did (or is intended to) come into effect and end.", 0, 1, period);
|
||||
case 767422259: /*participant*/ return new Property("participant", "", "Identifies all people and organizations who are expected to be involved in the care team.", 0, java.lang.Integer.MAX_VALUE, participant);
|
||||
case 722137681: /*reasonCode*/ return new Property("reasonCode", "CodeableConcept", "Describes why the care team exists.", 0, java.lang.Integer.MAX_VALUE, reasonCode);
|
||||
case -1146218137: /*reasonReference*/ return new Property("reasonReference", "Reference(Condition)", "Condition(s) that this care team addresses.", 0, java.lang.Integer.MAX_VALUE, reasonReference);
|
||||
case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Condition)", "Describes why the care team exists.", 0, java.lang.Integer.MAX_VALUE, reason);
|
||||
case -2058947787: /*managingOrganization*/ return new Property("managingOrganization", "Reference(Organization)", "The organization responsible for the care team.", 0, java.lang.Integer.MAX_VALUE, managingOrganization);
|
||||
case -1429363305: /*telecom*/ return new Property("telecom", "ContactPoint", "A central contact detail for the care team (that applies to all members).", 0, java.lang.Integer.MAX_VALUE, telecom);
|
||||
case 3387378: /*note*/ return new Property("note", "Annotation", "Comments made about the CareTeam.", 0, java.lang.Integer.MAX_VALUE, note);
|
||||
|
@ -1256,8 +1194,7 @@ public class CareTeam extends DomainResource {
|
|||
case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference
|
||||
case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period
|
||||
case 767422259: /*participant*/ return this.participant == null ? new Base[0] : this.participant.toArray(new Base[this.participant.size()]); // CareTeamParticipantComponent
|
||||
case 722137681: /*reasonCode*/ return this.reasonCode == null ? new Base[0] : this.reasonCode.toArray(new Base[this.reasonCode.size()]); // CodeableConcept
|
||||
case -1146218137: /*reasonReference*/ return this.reasonReference == null ? new Base[0] : this.reasonReference.toArray(new Base[this.reasonReference.size()]); // Reference
|
||||
case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference
|
||||
case -2058947787: /*managingOrganization*/ return this.managingOrganization == null ? new Base[0] : this.managingOrganization.toArray(new Base[this.managingOrganization.size()]); // Reference
|
||||
case -1429363305: /*telecom*/ return this.telecom == null ? new Base[0] : this.telecom.toArray(new Base[this.telecom.size()]); // ContactPoint
|
||||
case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation
|
||||
|
@ -1291,11 +1228,8 @@ public class CareTeam extends DomainResource {
|
|||
case 767422259: // participant
|
||||
this.getParticipant().add((CareTeamParticipantComponent) value); // CareTeamParticipantComponent
|
||||
return value;
|
||||
case 722137681: // reasonCode
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
|
||||
return value;
|
||||
case -1146218137: // reasonReference
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value)); // Reference
|
||||
case -934964668: // reason
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference
|
||||
return value;
|
||||
case -2058947787: // managingOrganization
|
||||
this.getManagingOrganization().add(TypeConvertor.castToReference(value)); // Reference
|
||||
|
@ -1328,10 +1262,8 @@ public class CareTeam extends DomainResource {
|
|||
this.period = TypeConvertor.castToPeriod(value); // Period
|
||||
} else if (name.equals("participant")) {
|
||||
this.getParticipant().add((CareTeamParticipantComponent) value);
|
||||
} else if (name.equals("reasonCode")) {
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value));
|
||||
} else if (name.equals("reasonReference")) {
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value));
|
||||
} else if (name.equals("reason")) {
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value));
|
||||
} else if (name.equals("managingOrganization")) {
|
||||
this.getManagingOrganization().add(TypeConvertor.castToReference(value));
|
||||
} else if (name.equals("telecom")) {
|
||||
|
@ -1353,8 +1285,7 @@ public class CareTeam extends DomainResource {
|
|||
case -1867885268: return getSubject();
|
||||
case -991726143: return getPeriod();
|
||||
case 767422259: return addParticipant();
|
||||
case 722137681: return addReasonCode();
|
||||
case -1146218137: return addReasonReference();
|
||||
case -934964668: return addReason();
|
||||
case -2058947787: return addManagingOrganization();
|
||||
case -1429363305: return addTelecom();
|
||||
case 3387378: return addNote();
|
||||
|
@ -1373,8 +1304,7 @@ public class CareTeam extends DomainResource {
|
|||
case -1867885268: /*subject*/ return new String[] {"Reference"};
|
||||
case -991726143: /*period*/ return new String[] {"Period"};
|
||||
case 767422259: /*participant*/ return new String[] {};
|
||||
case 722137681: /*reasonCode*/ return new String[] {"CodeableConcept"};
|
||||
case -1146218137: /*reasonReference*/ return new String[] {"Reference"};
|
||||
case -934964668: /*reason*/ return new String[] {"CodeableReference"};
|
||||
case -2058947787: /*managingOrganization*/ return new String[] {"Reference"};
|
||||
case -1429363305: /*telecom*/ return new String[] {"ContactPoint"};
|
||||
case 3387378: /*note*/ return new String[] {"Annotation"};
|
||||
|
@ -1408,11 +1338,8 @@ public class CareTeam extends DomainResource {
|
|||
else if (name.equals("participant")) {
|
||||
return addParticipant();
|
||||
}
|
||||
else if (name.equals("reasonCode")) {
|
||||
return addReasonCode();
|
||||
}
|
||||
else if (name.equals("reasonReference")) {
|
||||
return addReasonReference();
|
||||
else if (name.equals("reason")) {
|
||||
return addReason();
|
||||
}
|
||||
else if (name.equals("managingOrganization")) {
|
||||
return addManagingOrganization();
|
||||
|
@ -1459,15 +1386,10 @@ public class CareTeam extends DomainResource {
|
|||
for (CareTeamParticipantComponent i : participant)
|
||||
dst.participant.add(i.copy());
|
||||
};
|
||||
if (reasonCode != null) {
|
||||
dst.reasonCode = new ArrayList<CodeableConcept>();
|
||||
for (CodeableConcept i : reasonCode)
|
||||
dst.reasonCode.add(i.copy());
|
||||
};
|
||||
if (reasonReference != null) {
|
||||
dst.reasonReference = new ArrayList<Reference>();
|
||||
for (Reference i : reasonReference)
|
||||
dst.reasonReference.add(i.copy());
|
||||
if (reason != null) {
|
||||
dst.reason = new ArrayList<CodeableReference>();
|
||||
for (CodeableReference i : reason)
|
||||
dst.reason.add(i.copy());
|
||||
};
|
||||
if (managingOrganization != null) {
|
||||
dst.managingOrganization = new ArrayList<Reference>();
|
||||
|
@ -1499,8 +1421,7 @@ public class CareTeam extends DomainResource {
|
|||
CareTeam o = (CareTeam) other_;
|
||||
return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(category, o.category, true)
|
||||
&& compareDeep(name, o.name, true) && compareDeep(subject, o.subject, true) && compareDeep(period, o.period, true)
|
||||
&& compareDeep(participant, o.participant, true) && compareDeep(reasonCode, o.reasonCode, true)
|
||||
&& compareDeep(reasonReference, o.reasonReference, true) && compareDeep(managingOrganization, o.managingOrganization, true)
|
||||
&& compareDeep(participant, o.participant, true) && compareDeep(reason, o.reason, true) && compareDeep(managingOrganization, o.managingOrganization, true)
|
||||
&& compareDeep(telecom, o.telecom, true) && compareDeep(note, o.note, true);
|
||||
}
|
||||
|
||||
|
@ -1516,8 +1437,8 @@ public class CareTeam extends DomainResource {
|
|||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, category
|
||||
, name, subject, period, participant, reasonCode, reasonReference, managingOrganization
|
||||
, telecom, note);
|
||||
, name, subject, period, participant, reason, managingOrganization, telecom, note
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
@ -76,28 +76,21 @@ public class ClinicalImpression extends DomainResource {
|
|||
@Block()
|
||||
public static class ClinicalImpressionFindingComponent extends BackboneElement implements IBaseBackboneElement {
|
||||
/**
|
||||
* Specific text or code for finding or diagnosis, which may include ruled-out or resolved conditions.
|
||||
* Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.
|
||||
*/
|
||||
@Child(name = "itemCodeableConcept", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="What was found", formalDefinition="Specific text or code for finding or diagnosis, which may include ruled-out or resolved conditions." )
|
||||
@Child(name = "item", type = {CodeableReference.class}, order=1, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="What was found", formalDefinition="Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions." )
|
||||
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-code")
|
||||
protected CodeableConcept itemCodeableConcept;
|
||||
|
||||
/**
|
||||
* Specific reference for finding or diagnosis, which may include ruled-out or resolved conditions.
|
||||
*/
|
||||
@Child(name = "itemReference", type = {Condition.class, Observation.class, DocumentReference.class}, order=2, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="What was found", formalDefinition="Specific reference for finding or diagnosis, which may include ruled-out or resolved conditions." )
|
||||
protected Reference itemReference;
|
||||
protected CodeableReference item;
|
||||
|
||||
/**
|
||||
* Which investigations support finding or diagnosis.
|
||||
*/
|
||||
@Child(name = "basis", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false)
|
||||
@Child(name = "basis", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Which investigations support finding", formalDefinition="Which investigations support finding or diagnosis." )
|
||||
protected StringType basis;
|
||||
|
||||
private static final long serialVersionUID = -101631301L;
|
||||
private static final long serialVersionUID = -1363589306L;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -107,50 +100,26 @@ public class ClinicalImpression extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #itemCodeableConcept} (Specific text or code for finding or diagnosis, which may include ruled-out or resolved conditions.)
|
||||
* @return {@link #item} (Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.)
|
||||
*/
|
||||
public CodeableConcept getItemCodeableConcept() {
|
||||
if (this.itemCodeableConcept == null)
|
||||
public CodeableReference getItem() {
|
||||
if (this.item == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create ClinicalImpressionFindingComponent.itemCodeableConcept");
|
||||
throw new Error("Attempt to auto-create ClinicalImpressionFindingComponent.item");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.itemCodeableConcept = new CodeableConcept(); // cc
|
||||
return this.itemCodeableConcept;
|
||||
this.item = new CodeableReference(); // cc
|
||||
return this.item;
|
||||
}
|
||||
|
||||
public boolean hasItemCodeableConcept() {
|
||||
return this.itemCodeableConcept != null && !this.itemCodeableConcept.isEmpty();
|
||||
public boolean hasItem() {
|
||||
return this.item != null && !this.item.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #itemCodeableConcept} (Specific text or code for finding or diagnosis, which may include ruled-out or resolved conditions.)
|
||||
* @param value {@link #item} (Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.)
|
||||
*/
|
||||
public ClinicalImpressionFindingComponent setItemCodeableConcept(CodeableConcept value) {
|
||||
this.itemCodeableConcept = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #itemReference} (Specific reference for finding or diagnosis, which may include ruled-out or resolved conditions.)
|
||||
*/
|
||||
public Reference getItemReference() {
|
||||
if (this.itemReference == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create ClinicalImpressionFindingComponent.itemReference");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.itemReference = new Reference(); // cc
|
||||
return this.itemReference;
|
||||
}
|
||||
|
||||
public boolean hasItemReference() {
|
||||
return this.itemReference != null && !this.itemReference.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #itemReference} (Specific reference for finding or diagnosis, which may include ruled-out or resolved conditions.)
|
||||
*/
|
||||
public ClinicalImpressionFindingComponent setItemReference(Reference value) {
|
||||
this.itemReference = value;
|
||||
public ClinicalImpressionFindingComponent setItem(CodeableReference value) {
|
||||
this.item = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -205,16 +174,14 @@ public class ClinicalImpression extends DomainResource {
|
|||
|
||||
protected void listChildren(List<Property> children) {
|
||||
super.listChildren(children);
|
||||
children.add(new Property("itemCodeableConcept", "CodeableConcept", "Specific text or code for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, itemCodeableConcept));
|
||||
children.add(new Property("itemReference", "Reference(Condition|Observation|DocumentReference)", "Specific reference for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, itemReference));
|
||||
children.add(new Property("item", "CodeableReference(Condition|Observation|DocumentReference)", "Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, item));
|
||||
children.add(new Property("basis", "string", "Which investigations support finding or diagnosis.", 0, 1, basis));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
|
||||
switch (_hash) {
|
||||
case 106644494: /*itemCodeableConcept*/ return new Property("itemCodeableConcept", "CodeableConcept", "Specific text or code for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, itemCodeableConcept);
|
||||
case 1376364920: /*itemReference*/ return new Property("itemReference", "Reference(Condition|Observation|DocumentReference)", "Specific reference for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, itemReference);
|
||||
case 3242771: /*item*/ return new Property("item", "CodeableReference(Condition|Observation|DocumentReference)", "Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, item);
|
||||
case 93508670: /*basis*/ return new Property("basis", "string", "Which investigations support finding or diagnosis.", 0, 1, basis);
|
||||
default: return super.getNamedProperty(_hash, _name, _checkValid);
|
||||
}
|
||||
|
@ -224,8 +191,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
@Override
|
||||
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
|
||||
switch (hash) {
|
||||
case 106644494: /*itemCodeableConcept*/ return this.itemCodeableConcept == null ? new Base[0] : new Base[] {this.itemCodeableConcept}; // CodeableConcept
|
||||
case 1376364920: /*itemReference*/ return this.itemReference == null ? new Base[0] : new Base[] {this.itemReference}; // Reference
|
||||
case 3242771: /*item*/ return this.item == null ? new Base[0] : new Base[] {this.item}; // CodeableReference
|
||||
case 93508670: /*basis*/ return this.basis == null ? new Base[0] : new Base[] {this.basis}; // StringType
|
||||
default: return super.getProperty(hash, name, checkValid);
|
||||
}
|
||||
|
@ -235,11 +201,8 @@ public class ClinicalImpression extends DomainResource {
|
|||
@Override
|
||||
public Base setProperty(int hash, String name, Base value) throws FHIRException {
|
||||
switch (hash) {
|
||||
case 106644494: // itemCodeableConcept
|
||||
this.itemCodeableConcept = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
|
||||
return value;
|
||||
case 1376364920: // itemReference
|
||||
this.itemReference = TypeConvertor.castToReference(value); // Reference
|
||||
case 3242771: // item
|
||||
this.item = TypeConvertor.castToCodeableReference(value); // CodeableReference
|
||||
return value;
|
||||
case 93508670: // basis
|
||||
this.basis = TypeConvertor.castToString(value); // StringType
|
||||
|
@ -251,10 +214,8 @@ public class ClinicalImpression extends DomainResource {
|
|||
|
||||
@Override
|
||||
public Base setProperty(String name, Base value) throws FHIRException {
|
||||
if (name.equals("itemCodeableConcept")) {
|
||||
this.itemCodeableConcept = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
|
||||
} else if (name.equals("itemReference")) {
|
||||
this.itemReference = TypeConvertor.castToReference(value); // Reference
|
||||
if (name.equals("item")) {
|
||||
this.item = TypeConvertor.castToCodeableReference(value); // CodeableReference
|
||||
} else if (name.equals("basis")) {
|
||||
this.basis = TypeConvertor.castToString(value); // StringType
|
||||
} else
|
||||
|
@ -265,8 +226,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
@Override
|
||||
public Base makeProperty(int hash, String name) throws FHIRException {
|
||||
switch (hash) {
|
||||
case 106644494: return getItemCodeableConcept();
|
||||
case 1376364920: return getItemReference();
|
||||
case 3242771: return getItem();
|
||||
case 93508670: return getBasisElement();
|
||||
default: return super.makeProperty(hash, name);
|
||||
}
|
||||
|
@ -276,8 +236,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
@Override
|
||||
public String[] getTypesForProperty(int hash, String name) throws FHIRException {
|
||||
switch (hash) {
|
||||
case 106644494: /*itemCodeableConcept*/ return new String[] {"CodeableConcept"};
|
||||
case 1376364920: /*itemReference*/ return new String[] {"Reference"};
|
||||
case 3242771: /*item*/ return new String[] {"CodeableReference"};
|
||||
case 93508670: /*basis*/ return new String[] {"string"};
|
||||
default: return super.getTypesForProperty(hash, name);
|
||||
}
|
||||
|
@ -286,13 +245,9 @@ public class ClinicalImpression extends DomainResource {
|
|||
|
||||
@Override
|
||||
public Base addChild(String name) throws FHIRException {
|
||||
if (name.equals("itemCodeableConcept")) {
|
||||
this.itemCodeableConcept = new CodeableConcept();
|
||||
return this.itemCodeableConcept;
|
||||
}
|
||||
else if (name.equals("itemReference")) {
|
||||
this.itemReference = new Reference();
|
||||
return this.itemReference;
|
||||
if (name.equals("item")) {
|
||||
this.item = new CodeableReference();
|
||||
return this.item;
|
||||
}
|
||||
else if (name.equals("basis")) {
|
||||
throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.finding.basis");
|
||||
|
@ -309,8 +264,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
|
||||
public void copyValues(ClinicalImpressionFindingComponent dst) {
|
||||
super.copyValues(dst);
|
||||
dst.itemCodeableConcept = itemCodeableConcept == null ? null : itemCodeableConcept.copy();
|
||||
dst.itemReference = itemReference == null ? null : itemReference.copy();
|
||||
dst.item = item == null ? null : item.copy();
|
||||
dst.basis = basis == null ? null : basis.copy();
|
||||
}
|
||||
|
||||
|
@ -321,8 +275,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
if (!(other_ instanceof ClinicalImpressionFindingComponent))
|
||||
return false;
|
||||
ClinicalImpressionFindingComponent o = (ClinicalImpressionFindingComponent) other_;
|
||||
return compareDeep(itemCodeableConcept, o.itemCodeableConcept, true) && compareDeep(itemReference, o.itemReference, true)
|
||||
&& compareDeep(basis, o.basis, true);
|
||||
return compareDeep(item, o.item, true) && compareDeep(basis, o.basis, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -336,8 +289,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(itemCodeableConcept, itemReference
|
||||
, basis);
|
||||
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(item, basis);
|
||||
}
|
||||
|
||||
public String fhirType() {
|
||||
|
@ -1733,19 +1685,19 @@ public class ClinicalImpression extends DomainResource {
|
|||
/**
|
||||
* Search parameter: <b>finding-code</b>
|
||||
* <p>
|
||||
* Description: <b>What was found</b><br>
|
||||
* Description: <b>Reference to a concept (by class)</b><br>
|
||||
* Type: <b>token</b><br>
|
||||
* Path: <b>ClinicalImpression.finding.itemCodeableConcept</b><br>
|
||||
* Path: <b>ClinicalImpression.finding.item.concept</b><br>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="finding-code", path="ClinicalImpression.finding.itemCodeableConcept", description="What was found", type="token" )
|
||||
@SearchParamDefinition(name="finding-code", path="ClinicalImpression.finding.item.concept", description="Reference to a concept (by class)", type="token" )
|
||||
public static final String SP_FINDING_CODE = "finding-code";
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>finding-code</b>
|
||||
* <p>
|
||||
* Description: <b>What was found</b><br>
|
||||
* Description: <b>Reference to a concept (by class)</b><br>
|
||||
* Type: <b>token</b><br>
|
||||
* Path: <b>ClinicalImpression.finding.itemCodeableConcept</b><br>
|
||||
* Path: <b>ClinicalImpression.finding.item.concept</b><br>
|
||||
* </p>
|
||||
*/
|
||||
public static final ca.uhn.fhir.rest.gclient.TokenClientParam FINDING_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FINDING_CODE);
|
||||
|
@ -1753,19 +1705,19 @@ public class ClinicalImpression extends DomainResource {
|
|||
/**
|
||||
* Search parameter: <b>finding-ref</b>
|
||||
* <p>
|
||||
* Description: <b>What was found</b><br>
|
||||
* Description: <b>Reference to a resource (by instance)</b><br>
|
||||
* Type: <b>reference</b><br>
|
||||
* Path: <b>ClinicalImpression.finding.itemReference</b><br>
|
||||
* Path: <b>ClinicalImpression.finding.item.reference</b><br>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="finding-ref", path="ClinicalImpression.finding.itemReference", description="What was found", type="reference", target={Condition.class, DocumentReference.class, Observation.class } )
|
||||
@SearchParamDefinition(name="finding-ref", path="ClinicalImpression.finding.item.reference", description="Reference to a resource (by instance)", type="reference" )
|
||||
public static final String SP_FINDING_REF = "finding-ref";
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>finding-ref</b>
|
||||
* <p>
|
||||
* Description: <b>What was found</b><br>
|
||||
* Description: <b>Reference to a resource (by instance)</b><br>
|
||||
* Type: <b>reference</b><br>
|
||||
* Path: <b>ClinicalImpression.finding.itemReference</b><br>
|
||||
* Path: <b>ClinicalImpression.finding.item.reference</b><br>
|
||||
* </p>
|
||||
*/
|
||||
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam FINDING_REF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_FINDING_REF);
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
@ -433,33 +433,26 @@ public class Communication extends DomainResource {
|
|||
/**
|
||||
* The reason or justification for the communication.
|
||||
*/
|
||||
@Child(name = "reasonCode", type = {CodeableConcept.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Child(name = "reason", type = {CodeableReference.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Indication for message", formalDefinition="The reason or justification for the communication." )
|
||||
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/clinical-findings")
|
||||
protected List<CodeableConcept> reasonCode;
|
||||
|
||||
/**
|
||||
* Indicates another resource whose existence justifies this communication.
|
||||
*/
|
||||
@Child(name = "reasonReference", type = {Reference.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Why was communication done?", formalDefinition="Indicates another resource whose existence justifies this communication." )
|
||||
protected List<Reference> reasonReference;
|
||||
protected List<CodeableReference> reason;
|
||||
|
||||
/**
|
||||
* Text, attachment(s), or resource(s) that was communicated to the recipient.
|
||||
*/
|
||||
@Child(name = "payload", type = {}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "payload", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Message payload", formalDefinition="Text, attachment(s), or resource(s) that was communicated to the recipient." )
|
||||
protected List<CommunicationPayloadComponent> payload;
|
||||
|
||||
/**
|
||||
* Additional notes or commentary about the communication by the sender, receiver or other interested parties.
|
||||
*/
|
||||
@Child(name = "note", type = {Annotation.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "note", type = {Annotation.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Comments made about the communication", formalDefinition="Additional notes or commentary about the communication by the sender, receiver or other interested parties." )
|
||||
protected List<Annotation> note;
|
||||
|
||||
private static final long serialVersionUID = -371265623L;
|
||||
private static final long serialVersionUID = 1848181185L;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -1335,109 +1328,56 @@ public class Communication extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonCode} (The reason or justification for the communication.)
|
||||
* @return {@link #reason} (The reason or justification for the communication.)
|
||||
*/
|
||||
public List<CodeableConcept> getReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
return this.reasonCode;
|
||||
public List<CodeableReference> getReason() {
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
return this.reason;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public Communication setReasonCode(List<CodeableConcept> theReasonCode) {
|
||||
this.reasonCode = theReasonCode;
|
||||
public Communication setReason(List<CodeableReference> theReason) {
|
||||
this.reason = theReason;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
public boolean hasReason() {
|
||||
if (this.reason == null)
|
||||
return false;
|
||||
for (CodeableConcept item : this.reasonCode)
|
||||
for (CodeableReference item : this.reason)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public CodeableConcept addReasonCode() { //3
|
||||
CodeableConcept t = new CodeableConcept();
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
public CodeableReference addReason() { //3
|
||||
CodeableReference t = new CodeableReference();
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public Communication addReasonCode(CodeableConcept t) { //3
|
||||
public Communication addReason(CodeableReference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonCode}, creating it if it does not already exist {3}
|
||||
* @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public CodeableConcept getReasonCodeFirstRep() {
|
||||
if (getReasonCode().isEmpty()) {
|
||||
addReasonCode();
|
||||
public CodeableReference getReasonFirstRep() {
|
||||
if (getReason().isEmpty()) {
|
||||
addReason();
|
||||
}
|
||||
return getReasonCode().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonReference} (Indicates another resource whose existence justifies this communication.)
|
||||
*/
|
||||
public List<Reference> getReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
return this.reasonReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public Communication setReasonReference(List<Reference> theReasonReference) {
|
||||
this.reasonReference = theReasonReference;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
return false;
|
||||
for (Reference item : this.reasonReference)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public Reference addReasonReference() { //3
|
||||
Reference t = new Reference();
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public Communication addReasonReference(Reference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonReference}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public Reference getReasonReferenceFirstRep() {
|
||||
if (getReasonReference().isEmpty()) {
|
||||
addReasonReference();
|
||||
}
|
||||
return getReasonReference().get(0);
|
||||
return getReason().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1567,8 +1507,7 @@ public class Communication extends DomainResource {
|
|||
children.add(new Property("received", "dateTime", "The time when this communication arrived at the destination.", 0, 1, received));
|
||||
children.add(new Property("recipient", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|Endpoint)", "The entity (e.g. person, organization, clinical information system, care team or device) which is the target of the communication.", 0, java.lang.Integer.MAX_VALUE, recipient));
|
||||
children.add(new Property("sender", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|HealthcareService|Endpoint)", "The entity (e.g. person, organization, clinical information system, or device) which is the source of the communication.", 0, 1, sender));
|
||||
children.add(new Property("reasonCode", "CodeableConcept", "The reason or justification for the communication.", 0, java.lang.Integer.MAX_VALUE, reasonCode));
|
||||
children.add(new Property("reasonReference", "Reference(Any)", "Indicates another resource whose existence justifies this communication.", 0, java.lang.Integer.MAX_VALUE, reasonReference));
|
||||
children.add(new Property("reason", "CodeableReference(Any)", "The reason or justification for the communication.", 0, java.lang.Integer.MAX_VALUE, reason));
|
||||
children.add(new Property("payload", "", "Text, attachment(s), or resource(s) that was communicated to the recipient.", 0, java.lang.Integer.MAX_VALUE, payload));
|
||||
children.add(new Property("note", "Annotation", "Additional notes or commentary about the communication by the sender, receiver or other interested parties.", 0, java.lang.Integer.MAX_VALUE, note));
|
||||
}
|
||||
|
@ -1595,8 +1534,7 @@ public class Communication extends DomainResource {
|
|||
case -808719903: /*received*/ return new Property("received", "dateTime", "The time when this communication arrived at the destination.", 0, 1, received);
|
||||
case 820081177: /*recipient*/ return new Property("recipient", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|Endpoint)", "The entity (e.g. person, organization, clinical information system, care team or device) which is the target of the communication.", 0, java.lang.Integer.MAX_VALUE, recipient);
|
||||
case -905962955: /*sender*/ return new Property("sender", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|HealthcareService|Endpoint)", "The entity (e.g. person, organization, clinical information system, or device) which is the source of the communication.", 0, 1, sender);
|
||||
case 722137681: /*reasonCode*/ return new Property("reasonCode", "CodeableConcept", "The reason or justification for the communication.", 0, java.lang.Integer.MAX_VALUE, reasonCode);
|
||||
case -1146218137: /*reasonReference*/ return new Property("reasonReference", "Reference(Any)", "Indicates another resource whose existence justifies this communication.", 0, java.lang.Integer.MAX_VALUE, reasonReference);
|
||||
case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Any)", "The reason or justification for the communication.", 0, java.lang.Integer.MAX_VALUE, reason);
|
||||
case -786701938: /*payload*/ return new Property("payload", "", "Text, attachment(s), or resource(s) that was communicated to the recipient.", 0, java.lang.Integer.MAX_VALUE, payload);
|
||||
case 3387378: /*note*/ return new Property("note", "Annotation", "Additional notes or commentary about the communication by the sender, receiver or other interested parties.", 0, java.lang.Integer.MAX_VALUE, note);
|
||||
default: return super.getNamedProperty(_hash, _name, _checkValid);
|
||||
|
@ -1626,8 +1564,7 @@ public class Communication extends DomainResource {
|
|||
case -808719903: /*received*/ return this.received == null ? new Base[0] : new Base[] {this.received}; // DateTimeType
|
||||
case 820081177: /*recipient*/ return this.recipient == null ? new Base[0] : this.recipient.toArray(new Base[this.recipient.size()]); // Reference
|
||||
case -905962955: /*sender*/ return this.sender == null ? new Base[0] : new Base[] {this.sender}; // Reference
|
||||
case 722137681: /*reasonCode*/ return this.reasonCode == null ? new Base[0] : this.reasonCode.toArray(new Base[this.reasonCode.size()]); // CodeableConcept
|
||||
case -1146218137: /*reasonReference*/ return this.reasonReference == null ? new Base[0] : this.reasonReference.toArray(new Base[this.reasonReference.size()]); // Reference
|
||||
case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference
|
||||
case -786701938: /*payload*/ return this.payload == null ? new Base[0] : this.payload.toArray(new Base[this.payload.size()]); // CommunicationPayloadComponent
|
||||
case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation
|
||||
default: return super.getProperty(hash, name, checkValid);
|
||||
|
@ -1697,11 +1634,8 @@ public class Communication extends DomainResource {
|
|||
case -905962955: // sender
|
||||
this.sender = TypeConvertor.castToReference(value); // Reference
|
||||
return value;
|
||||
case 722137681: // reasonCode
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
|
||||
return value;
|
||||
case -1146218137: // reasonReference
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value)); // Reference
|
||||
case -934964668: // reason
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference
|
||||
return value;
|
||||
case -786701938: // payload
|
||||
this.getPayload().add((CommunicationPayloadComponent) value); // CommunicationPayloadComponent
|
||||
|
@ -1756,10 +1690,8 @@ public class Communication extends DomainResource {
|
|||
this.getRecipient().add(TypeConvertor.castToReference(value));
|
||||
} else if (name.equals("sender")) {
|
||||
this.sender = TypeConvertor.castToReference(value); // Reference
|
||||
} else if (name.equals("reasonCode")) {
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value));
|
||||
} else if (name.equals("reasonReference")) {
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value));
|
||||
} else if (name.equals("reason")) {
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value));
|
||||
} else if (name.equals("payload")) {
|
||||
this.getPayload().add((CommunicationPayloadComponent) value);
|
||||
} else if (name.equals("note")) {
|
||||
|
@ -1791,8 +1723,7 @@ public class Communication extends DomainResource {
|
|||
case -808719903: return getReceivedElement();
|
||||
case 820081177: return addRecipient();
|
||||
case -905962955: return getSender();
|
||||
case 722137681: return addReasonCode();
|
||||
case -1146218137: return addReasonReference();
|
||||
case -934964668: return addReason();
|
||||
case -786701938: return addPayload();
|
||||
case 3387378: return addNote();
|
||||
default: return super.makeProperty(hash, name);
|
||||
|
@ -1822,8 +1753,7 @@ public class Communication extends DomainResource {
|
|||
case -808719903: /*received*/ return new String[] {"dateTime"};
|
||||
case 820081177: /*recipient*/ return new String[] {"Reference"};
|
||||
case -905962955: /*sender*/ return new String[] {"Reference"};
|
||||
case 722137681: /*reasonCode*/ return new String[] {"CodeableConcept"};
|
||||
case -1146218137: /*reasonReference*/ return new String[] {"Reference"};
|
||||
case -934964668: /*reason*/ return new String[] {"CodeableReference"};
|
||||
case -786701938: /*payload*/ return new String[] {};
|
||||
case 3387378: /*note*/ return new String[] {"Annotation"};
|
||||
default: return super.getTypesForProperty(hash, name);
|
||||
|
@ -1895,11 +1825,8 @@ public class Communication extends DomainResource {
|
|||
this.sender = new Reference();
|
||||
return this.sender;
|
||||
}
|
||||
else if (name.equals("reasonCode")) {
|
||||
return addReasonCode();
|
||||
}
|
||||
else if (name.equals("reasonReference")) {
|
||||
return addReasonReference();
|
||||
else if (name.equals("reason")) {
|
||||
return addReason();
|
||||
}
|
||||
else if (name.equals("payload")) {
|
||||
return addPayload();
|
||||
|
@ -1983,15 +1910,10 @@ public class Communication extends DomainResource {
|
|||
dst.recipient.add(i.copy());
|
||||
};
|
||||
dst.sender = sender == null ? null : sender.copy();
|
||||
if (reasonCode != null) {
|
||||
dst.reasonCode = new ArrayList<CodeableConcept>();
|
||||
for (CodeableConcept i : reasonCode)
|
||||
dst.reasonCode.add(i.copy());
|
||||
};
|
||||
if (reasonReference != null) {
|
||||
dst.reasonReference = new ArrayList<Reference>();
|
||||
for (Reference i : reasonReference)
|
||||
dst.reasonReference.add(i.copy());
|
||||
if (reason != null) {
|
||||
dst.reason = new ArrayList<CodeableReference>();
|
||||
for (CodeableReference i : reason)
|
||||
dst.reason.add(i.copy());
|
||||
};
|
||||
if (payload != null) {
|
||||
dst.payload = new ArrayList<CommunicationPayloadComponent>();
|
||||
|
@ -2023,8 +1945,8 @@ public class Communication extends DomainResource {
|
|||
&& compareDeep(medium, o.medium, true) && compareDeep(subject, o.subject, true) && compareDeep(topic, o.topic, true)
|
||||
&& compareDeep(about, o.about, true) && compareDeep(encounter, o.encounter, true) && compareDeep(sent, o.sent, true)
|
||||
&& compareDeep(received, o.received, true) && compareDeep(recipient, o.recipient, true) && compareDeep(sender, o.sender, true)
|
||||
&& compareDeep(reasonCode, o.reasonCode, true) && compareDeep(reasonReference, o.reasonReference, true)
|
||||
&& compareDeep(payload, o.payload, true) && compareDeep(note, o.note, true);
|
||||
&& compareDeep(reason, o.reason, true) && compareDeep(payload, o.payload, true) && compareDeep(note, o.note, true)
|
||||
;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -2043,7 +1965,7 @@ public class Communication extends DomainResource {
|
|||
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, instantiatesCanonical
|
||||
, instantiatesUri, basedOn, partOf, inResponseTo, status, statusReason, category
|
||||
, priority, medium, subject, topic, about, encounter, sent, received, recipient
|
||||
, sender, reasonCode, reasonReference, payload, note);
|
||||
, sender, reason, payload, note);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
@ -432,26 +432,19 @@ public class CommunicationRequest extends DomainResource {
|
|||
/**
|
||||
* Describes why the request is being made in coded or textual form.
|
||||
*/
|
||||
@Child(name = "reasonCode", type = {CodeableConcept.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Child(name = "reason", type = {CodeableReference.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Why is communication needed?", formalDefinition="Describes why the request is being made in coded or textual form." )
|
||||
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-ActReason")
|
||||
protected List<CodeableConcept> reasonCode;
|
||||
|
||||
/**
|
||||
* Indicates another resource whose existence justifies this request.
|
||||
*/
|
||||
@Child(name = "reasonReference", type = {Reference.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Why is communication needed?", formalDefinition="Indicates another resource whose existence justifies this request." )
|
||||
protected List<Reference> reasonReference;
|
||||
protected List<CodeableReference> reason;
|
||||
|
||||
/**
|
||||
* Comments made about the request by the requester, sender, recipient, subject or other participants.
|
||||
*/
|
||||
@Child(name = "note", type = {Annotation.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "note", type = {Annotation.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Comments made about communication request", formalDefinition="Comments made about the request by the requester, sender, recipient, subject or other participants." )
|
||||
protected List<Annotation> note;
|
||||
|
||||
private static final long serialVersionUID = -914137345L;
|
||||
private static final long serialVersionUID = 239948247L;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -1305,109 +1298,56 @@ public class CommunicationRequest extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonCode} (Describes why the request is being made in coded or textual form.)
|
||||
* @return {@link #reason} (Describes why the request is being made in coded or textual form.)
|
||||
*/
|
||||
public List<CodeableConcept> getReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
return this.reasonCode;
|
||||
public List<CodeableReference> getReason() {
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
return this.reason;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public CommunicationRequest setReasonCode(List<CodeableConcept> theReasonCode) {
|
||||
this.reasonCode = theReasonCode;
|
||||
public CommunicationRequest setReason(List<CodeableReference> theReason) {
|
||||
this.reason = theReason;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
public boolean hasReason() {
|
||||
if (this.reason == null)
|
||||
return false;
|
||||
for (CodeableConcept item : this.reasonCode)
|
||||
for (CodeableReference item : this.reason)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public CodeableConcept addReasonCode() { //3
|
||||
CodeableConcept t = new CodeableConcept();
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
public CodeableReference addReason() { //3
|
||||
CodeableReference t = new CodeableReference();
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public CommunicationRequest addReasonCode(CodeableConcept t) { //3
|
||||
public CommunicationRequest addReason(CodeableReference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonCode}, creating it if it does not already exist {3}
|
||||
* @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public CodeableConcept getReasonCodeFirstRep() {
|
||||
if (getReasonCode().isEmpty()) {
|
||||
addReasonCode();
|
||||
public CodeableReference getReasonFirstRep() {
|
||||
if (getReason().isEmpty()) {
|
||||
addReason();
|
||||
}
|
||||
return getReasonCode().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonReference} (Indicates another resource whose existence justifies this request.)
|
||||
*/
|
||||
public List<Reference> getReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
return this.reasonReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public CommunicationRequest setReasonReference(List<Reference> theReasonReference) {
|
||||
this.reasonReference = theReasonReference;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
return false;
|
||||
for (Reference item : this.reasonReference)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public Reference addReasonReference() { //3
|
||||
Reference t = new Reference();
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public CommunicationRequest addReasonReference(Reference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonReference}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public Reference getReasonReferenceFirstRep() {
|
||||
if (getReasonReference().isEmpty()) {
|
||||
addReasonReference();
|
||||
}
|
||||
return getReasonReference().get(0);
|
||||
return getReason().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1484,8 +1424,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
children.add(new Property("requester", "Reference(Practitioner|PractitionerRole|Organization|Patient|RelatedPerson|Device)", "The device, individual, or organization who asks for the information to be shared.", 0, 1, requester));
|
||||
children.add(new Property("recipient", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|Group|CareTeam|HealthcareService|Endpoint)", "The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication.", 0, java.lang.Integer.MAX_VALUE, recipient));
|
||||
children.add(new Property("informationProvider", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|HealthcareService|Endpoint)", "The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication.", 0, java.lang.Integer.MAX_VALUE, informationProvider));
|
||||
children.add(new Property("reasonCode", "CodeableConcept", "Describes why the request is being made in coded or textual form.", 0, java.lang.Integer.MAX_VALUE, reasonCode));
|
||||
children.add(new Property("reasonReference", "Reference(Any)", "Indicates another resource whose existence justifies this request.", 0, java.lang.Integer.MAX_VALUE, reasonReference));
|
||||
children.add(new Property("reason", "CodeableReference(Any)", "Describes why the request is being made in coded or textual form.", 0, java.lang.Integer.MAX_VALUE, reason));
|
||||
children.add(new Property("note", "Annotation", "Comments made about the request by the requester, sender, recipient, subject or other participants.", 0, java.lang.Integer.MAX_VALUE, note));
|
||||
}
|
||||
|
||||
|
@ -1514,8 +1453,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
case 693933948: /*requester*/ return new Property("requester", "Reference(Practitioner|PractitionerRole|Organization|Patient|RelatedPerson|Device)", "The device, individual, or organization who asks for the information to be shared.", 0, 1, requester);
|
||||
case 820081177: /*recipient*/ return new Property("recipient", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|Group|CareTeam|HealthcareService|Endpoint)", "The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication.", 0, java.lang.Integer.MAX_VALUE, recipient);
|
||||
case 1255338813: /*informationProvider*/ return new Property("informationProvider", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|HealthcareService|Endpoint)", "The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication.", 0, java.lang.Integer.MAX_VALUE, informationProvider);
|
||||
case 722137681: /*reasonCode*/ return new Property("reasonCode", "CodeableConcept", "Describes why the request is being made in coded or textual form.", 0, java.lang.Integer.MAX_VALUE, reasonCode);
|
||||
case -1146218137: /*reasonReference*/ return new Property("reasonReference", "Reference(Any)", "Indicates another resource whose existence justifies this request.", 0, java.lang.Integer.MAX_VALUE, reasonReference);
|
||||
case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Any)", "Describes why the request is being made in coded or textual form.", 0, java.lang.Integer.MAX_VALUE, reason);
|
||||
case 3387378: /*note*/ return new Property("note", "Annotation", "Comments made about the request by the requester, sender, recipient, subject or other participants.", 0, java.lang.Integer.MAX_VALUE, note);
|
||||
default: return super.getNamedProperty(_hash, _name, _checkValid);
|
||||
}
|
||||
|
@ -1544,8 +1482,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
case 693933948: /*requester*/ return this.requester == null ? new Base[0] : new Base[] {this.requester}; // Reference
|
||||
case 820081177: /*recipient*/ return this.recipient == null ? new Base[0] : this.recipient.toArray(new Base[this.recipient.size()]); // Reference
|
||||
case 1255338813: /*informationProvider*/ return this.informationProvider == null ? new Base[0] : this.informationProvider.toArray(new Base[this.informationProvider.size()]); // Reference
|
||||
case 722137681: /*reasonCode*/ return this.reasonCode == null ? new Base[0] : this.reasonCode.toArray(new Base[this.reasonCode.size()]); // CodeableConcept
|
||||
case -1146218137: /*reasonReference*/ return this.reasonReference == null ? new Base[0] : this.reasonReference.toArray(new Base[this.reasonReference.size()]); // Reference
|
||||
case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference
|
||||
case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation
|
||||
default: return super.getProperty(hash, name, checkValid);
|
||||
}
|
||||
|
@ -1614,11 +1551,8 @@ public class CommunicationRequest extends DomainResource {
|
|||
case 1255338813: // informationProvider
|
||||
this.getInformationProvider().add(TypeConvertor.castToReference(value)); // Reference
|
||||
return value;
|
||||
case 722137681: // reasonCode
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
|
||||
return value;
|
||||
case -1146218137: // reasonReference
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value)); // Reference
|
||||
case -934964668: // reason
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference
|
||||
return value;
|
||||
case 3387378: // note
|
||||
this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation
|
||||
|
@ -1670,10 +1604,8 @@ public class CommunicationRequest extends DomainResource {
|
|||
this.getRecipient().add(TypeConvertor.castToReference(value));
|
||||
} else if (name.equals("informationProvider")) {
|
||||
this.getInformationProvider().add(TypeConvertor.castToReference(value));
|
||||
} else if (name.equals("reasonCode")) {
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value));
|
||||
} else if (name.equals("reasonReference")) {
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value));
|
||||
} else if (name.equals("reason")) {
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value));
|
||||
} else if (name.equals("note")) {
|
||||
this.getNote().add(TypeConvertor.castToAnnotation(value));
|
||||
} else
|
||||
|
@ -1704,8 +1636,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
case 693933948: return getRequester();
|
||||
case 820081177: return addRecipient();
|
||||
case 1255338813: return addInformationProvider();
|
||||
case 722137681: return addReasonCode();
|
||||
case -1146218137: return addReasonReference();
|
||||
case -934964668: return addReason();
|
||||
case 3387378: return addNote();
|
||||
default: return super.makeProperty(hash, name);
|
||||
}
|
||||
|
@ -1734,8 +1665,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
case 693933948: /*requester*/ return new String[] {"Reference"};
|
||||
case 820081177: /*recipient*/ return new String[] {"Reference"};
|
||||
case 1255338813: /*informationProvider*/ return new String[] {"Reference"};
|
||||
case 722137681: /*reasonCode*/ return new String[] {"CodeableConcept"};
|
||||
case -1146218137: /*reasonReference*/ return new String[] {"Reference"};
|
||||
case -934964668: /*reason*/ return new String[] {"CodeableReference"};
|
||||
case 3387378: /*note*/ return new String[] {"Annotation"};
|
||||
default: return super.getTypesForProperty(hash, name);
|
||||
}
|
||||
|
@ -1811,11 +1741,8 @@ public class CommunicationRequest extends DomainResource {
|
|||
else if (name.equals("informationProvider")) {
|
||||
return addInformationProvider();
|
||||
}
|
||||
else if (name.equals("reasonCode")) {
|
||||
return addReasonCode();
|
||||
}
|
||||
else if (name.equals("reasonReference")) {
|
||||
return addReasonReference();
|
||||
else if (name.equals("reason")) {
|
||||
return addReason();
|
||||
}
|
||||
else if (name.equals("note")) {
|
||||
return addNote();
|
||||
|
@ -1892,15 +1819,10 @@ public class CommunicationRequest extends DomainResource {
|
|||
for (Reference i : informationProvider)
|
||||
dst.informationProvider.add(i.copy());
|
||||
};
|
||||
if (reasonCode != null) {
|
||||
dst.reasonCode = new ArrayList<CodeableConcept>();
|
||||
for (CodeableConcept i : reasonCode)
|
||||
dst.reasonCode.add(i.copy());
|
||||
};
|
||||
if (reasonReference != null) {
|
||||
dst.reasonReference = new ArrayList<Reference>();
|
||||
for (Reference i : reasonReference)
|
||||
dst.reasonReference.add(i.copy());
|
||||
if (reason != null) {
|
||||
dst.reason = new ArrayList<CodeableReference>();
|
||||
for (CodeableReference i : reason)
|
||||
dst.reason.add(i.copy());
|
||||
};
|
||||
if (note != null) {
|
||||
dst.note = new ArrayList<Annotation>();
|
||||
|
@ -1927,8 +1849,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
&& compareDeep(about, o.about, true) && compareDeep(encounter, o.encounter, true) && compareDeep(payload, o.payload, true)
|
||||
&& compareDeep(occurrence, o.occurrence, true) && compareDeep(authoredOn, o.authoredOn, true) && compareDeep(requester, o.requester, true)
|
||||
&& compareDeep(recipient, o.recipient, true) && compareDeep(informationProvider, o.informationProvider, true)
|
||||
&& compareDeep(reasonCode, o.reasonCode, true) && compareDeep(reasonReference, o.reasonReference, true)
|
||||
&& compareDeep(note, o.note, true);
|
||||
&& compareDeep(reason, o.reason, true) && compareDeep(note, o.note, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1946,7 +1867,7 @@ public class CommunicationRequest extends DomainResource {
|
|||
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, basedOn, replaces
|
||||
, groupIdentifier, status, statusReason, category, priority, doNotPerform, medium
|
||||
, subject, about, encounter, payload, occurrence, authoredOn, requester, recipient
|
||||
, informationProvider, reasonCode, reasonReference, note);
|
||||
, informationProvider, reason, note);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -1,19 +1,21 @@
|
|||
package org.hl7.fhir.r5.model;
|
||||
|
||||
// generated
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* org.hl7.fhir.r5
|
||||
* %%
|
||||
* Copyright (C) 2014 - 2019 Health Level 7
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* Licensed under the Apache License, Version 2.0 (the \"License\");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* distributed under the License is distributed on an \"AS IS\" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
|
@ -24,42 +26,41 @@ package org.hl7.fhir.r5.model;
|
|||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
Redistribution and use in source and binary forms, with or without modification, \
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
* Redistributions of source code must retain the above copyright notice, this \
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
* Redistributions in binary form must reproduce the above copyright notice, \
|
||||
this list of conditions and the following disclaimer in the documentation \
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Thu, Oct 17, 2019 19:56+1100 for FHIR v4.1.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR v4.2.0
|
||||
|
||||
|
||||
|
||||
public class Constants {
|
||||
|
||||
public final static String LOCAL_REF_REGEX = "(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}";
|
||||
public final static String LOCAL_REF_REGEX = "(Account|ActivityDefinition|AdministrableProductDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CapabilityStatement2|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|ClinicalUseIssue|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|ConditionDefinition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|Ingredient|InsurancePlan|Invoice|Library|Linkage|List|Location|ManufacturedItemDefinition|Measure|MeasureReport|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationUsage|MedicinalProductDefinition|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionIntake|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|PackagedProductDefinition|Parameters|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RegulatedAuthorization|RelatedPerson|RequestGroup|ResearchStudy|ResearchSubject|RiskAssessment|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceDefinition|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|Topic|ValueSet|VerificationResult|VisionPrescription)\\\\/[A-Za-z0-9\\\\-\\\\.]{1,64}";
|
||||
public final static String NS_SYSTEM_TYPE = "http://hl7.org/fhirpath/System.";
|
||||
|
||||
public final static String VERSION = "4.1.0";
|
||||
public final static String VERSION_MM = "4.1";
|
||||
public final static String BUILD_ID = "2ce21320c7";
|
||||
public final static String DATE = "Thu Oct 17 19:56:09 AEDT 2019";
|
||||
public final static String URI_REGEX = "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdministrableProductDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CapabilityStatement2|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|ClinicalUseIssue|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|ConditionDefinition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|Ingredient|InsurancePlan|Invoice|Library|Linkage|List|Location|ManufacturedItemDefinition|Measure|MeasureReport|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationUsage|MedicinalProductDefinition|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionIntake|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|PackagedProductDefinition|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RegulatedAuthorization|RelatedPerson|RequestGroup|ResearchStudy|ResearchSubject|RiskAssessment|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceDefinition|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|Topic|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?";
|
||||
public final static String VERSION = "4.2.0";
|
||||
public final static String VERSION_MM = "4.2";
|
||||
public final static String DATE = "Tue, Dec 31, 2019 12:12+1100";
|
||||
public final static String URI_REGEX = "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdministrableProductDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CapabilityStatement2|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|ClinicalUseIssue|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|ConditionDefinition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|Ingredient|InsurancePlan|Invoice|Library|Linkage|List|Location|ManufacturedItemDefinition|Measure|MeasureReport|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationUsage|MedicinalProductDefinition|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionIntake|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|PackagedProductDefinition|Parameters|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RegulatedAuthorization|RelatedPerson|RequestGroup|ResearchStudy|ResearchSubject|RiskAssessment|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceDefinition|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|Topic|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?";
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
@ -6572,49 +6572,35 @@ public class Contract extends DomainResource {
|
|||
protected List<StringType> performerLinkId;
|
||||
|
||||
/**
|
||||
* Rationale for the action to be performed or not performed. Describes why the action is permitted or prohibited.
|
||||
* Rationale for the action to be performed or not performed. Describes why the action is permitted or prohibited. Either a coded concept, or another resource whose existence justifies permitting or not permitting this action.
|
||||
*/
|
||||
@Child(name = "reasonCode", type = {CodeableConcept.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Why is action (not) needed?", formalDefinition="Rationale for the action to be performed or not performed. Describes why the action is permitted or prohibited." )
|
||||
@Child(name = "reason", type = {CodeableReference.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Why is action (not) needed?", formalDefinition="Rationale for the action to be performed or not performed. Describes why the action is permitted or prohibited. Either a coded concept, or another resource whose existence justifies permitting or not permitting this action." )
|
||||
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-PurposeOfUse")
|
||||
protected List<CodeableConcept> reasonCode;
|
||||
|
||||
/**
|
||||
* Indicates another resource whose existence justifies permitting or not permitting this action.
|
||||
*/
|
||||
@Child(name = "reasonReference", type = {Condition.class, Observation.class, DiagnosticReport.class, DocumentReference.class, Questionnaire.class, QuestionnaireResponse.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Why is action (not) needed?", formalDefinition="Indicates another resource whose existence justifies permitting or not permitting this action." )
|
||||
protected List<Reference> reasonReference;
|
||||
|
||||
/**
|
||||
* Describes why the action is to be performed or not performed in textual form.
|
||||
*/
|
||||
@Child(name = "reason", type = {StringType.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Why action is to be performed", formalDefinition="Describes why the action is to be performed or not performed in textual form." )
|
||||
protected List<StringType> reason;
|
||||
protected List<CodeableReference> reason;
|
||||
|
||||
/**
|
||||
* Id [identifier??] of the clause or question text related to the reason type or reference of this action in the referenced form or QuestionnaireResponse.
|
||||
*/
|
||||
@Child(name = "reasonLinkId", type = {StringType.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "reasonLinkId", type = {StringType.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Pointer to specific item", formalDefinition="Id [identifier??] of the clause or question text related to the reason type or reference of this action in the referenced form or QuestionnaireResponse." )
|
||||
protected List<StringType> reasonLinkId;
|
||||
|
||||
/**
|
||||
* Comments made about the term action made by the requester, performer, subject or other participants.
|
||||
*/
|
||||
@Child(name = "note", type = {Annotation.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "note", type = {Annotation.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Comments about the action", formalDefinition="Comments made about the term action made by the requester, performer, subject or other participants." )
|
||||
protected List<Annotation> note;
|
||||
|
||||
/**
|
||||
* Security labels that protects the action.
|
||||
*/
|
||||
@Child(name = "securityLabelNumber", type = {UnsignedIntType.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "securityLabelNumber", type = {UnsignedIntType.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Action restriction numbers", formalDefinition="Security labels that protects the action." )
|
||||
protected List<UnsignedIntType> securityLabelNumber;
|
||||
|
||||
private static final long serialVersionUID = -701731764L;
|
||||
private static final long serialVersionUID = 337159017L;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -7292,124 +7278,18 @@ public class Contract extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonCode} (Rationale for the action to be performed or not performed. Describes why the action is permitted or prohibited.)
|
||||
* @return {@link #reason} (Rationale for the action to be performed or not performed. Describes why the action is permitted or prohibited. Either a coded concept, or another resource whose existence justifies permitting or not permitting this action.)
|
||||
*/
|
||||
public List<CodeableConcept> getReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
return this.reasonCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public ActionComponent setReasonCode(List<CodeableConcept> theReasonCode) {
|
||||
this.reasonCode = theReasonCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
return false;
|
||||
for (CodeableConcept item : this.reasonCode)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public CodeableConcept addReasonCode() { //3
|
||||
CodeableConcept t = new CodeableConcept();
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public ActionComponent addReasonCode(CodeableConcept t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonCode}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public CodeableConcept getReasonCodeFirstRep() {
|
||||
if (getReasonCode().isEmpty()) {
|
||||
addReasonCode();
|
||||
}
|
||||
return getReasonCode().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonReference} (Indicates another resource whose existence justifies permitting or not permitting this action.)
|
||||
*/
|
||||
public List<Reference> getReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
return this.reasonReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public ActionComponent setReasonReference(List<Reference> theReasonReference) {
|
||||
this.reasonReference = theReasonReference;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
return false;
|
||||
for (Reference item : this.reasonReference)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public Reference addReasonReference() { //3
|
||||
Reference t = new Reference();
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public ActionComponent addReasonReference(Reference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonReference}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public Reference getReasonReferenceFirstRep() {
|
||||
if (getReasonReference().isEmpty()) {
|
||||
addReasonReference();
|
||||
}
|
||||
return getReasonReference().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reason} (Describes why the action is to be performed or not performed in textual form.)
|
||||
*/
|
||||
public List<StringType> getReason() {
|
||||
public List<CodeableReference> getReason() {
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<StringType>();
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
return this.reason;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public ActionComponent setReason(List<StringType> theReason) {
|
||||
public ActionComponent setReason(List<CodeableReference> theReason) {
|
||||
this.reason = theReason;
|
||||
return this;
|
||||
}
|
||||
|
@ -7417,45 +7297,37 @@ public class Contract extends DomainResource {
|
|||
public boolean hasReason() {
|
||||
if (this.reason == null)
|
||||
return false;
|
||||
for (StringType item : this.reason)
|
||||
for (CodeableReference item : this.reason)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reason} (Describes why the action is to be performed or not performed in textual form.)
|
||||
*/
|
||||
public StringType addReasonElement() {//2
|
||||
StringType t = new StringType();
|
||||
public CodeableReference addReason() { //3
|
||||
CodeableReference t = new CodeableReference();
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<StringType>();
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #reason} (Describes why the action is to be performed or not performed in textual form.)
|
||||
*/
|
||||
public ActionComponent addReason(String value) { //1
|
||||
StringType t = new StringType();
|
||||
t.setValue(value);
|
||||
public ActionComponent addReason(CodeableReference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<StringType>();
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #reason} (Describes why the action is to be performed or not performed in textual form.)
|
||||
* @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public boolean hasReason(String value) {
|
||||
if (this.reason == null)
|
||||
return false;
|
||||
for (StringType v : this.reason)
|
||||
if (v.getValue().equals(value)) // string
|
||||
return true;
|
||||
return false;
|
||||
public CodeableReference getReasonFirstRep() {
|
||||
if (getReason().isEmpty()) {
|
||||
addReason();
|
||||
}
|
||||
return getReason().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -7650,9 +7522,7 @@ public class Contract extends DomainResource {
|
|||
children.add(new Property("performerRole", "CodeableConcept", "The type of role or competency of an individual desired or required to perform or not perform the action.", 0, 1, performerRole));
|
||||
children.add(new Property("performer", "Reference(RelatedPerson|Patient|Practitioner|PractitionerRole|CareTeam|Device|Substance|Organization|Location)", "Indicates who or what is being asked to perform (or not perform) the ction.", 0, 1, performer));
|
||||
children.add(new Property("performerLinkId", "string", "Id [identifier??] of the clause or question text related to the reason type or reference of this action in the referenced form or QuestionnaireResponse.", 0, java.lang.Integer.MAX_VALUE, performerLinkId));
|
||||
children.add(new Property("reasonCode", "CodeableConcept", "Rationale for the action to be performed or not performed. Describes why the action is permitted or prohibited.", 0, java.lang.Integer.MAX_VALUE, reasonCode));
|
||||
children.add(new Property("reasonReference", "Reference(Condition|Observation|DiagnosticReport|DocumentReference|Questionnaire|QuestionnaireResponse)", "Indicates another resource whose existence justifies permitting or not permitting this action.", 0, java.lang.Integer.MAX_VALUE, reasonReference));
|
||||
children.add(new Property("reason", "string", "Describes why the action is to be performed or not performed in textual form.", 0, java.lang.Integer.MAX_VALUE, reason));
|
||||
children.add(new Property("reason", "CodeableReference(Condition|Observation|DiagnosticReport|DocumentReference|Questionnaire|QuestionnaireResponse)", "Rationale for the action to be performed or not performed. Describes why the action is permitted or prohibited. Either a coded concept, or another resource whose existence justifies permitting or not permitting this action.", 0, java.lang.Integer.MAX_VALUE, reason));
|
||||
children.add(new Property("reasonLinkId", "string", "Id [identifier??] of the clause or question text related to the reason type or reference of this action in the referenced form or QuestionnaireResponse.", 0, java.lang.Integer.MAX_VALUE, reasonLinkId));
|
||||
children.add(new Property("note", "Annotation", "Comments made about the term action made by the requester, performer, subject or other participants.", 0, java.lang.Integer.MAX_VALUE, note));
|
||||
children.add(new Property("securityLabelNumber", "unsignedInt", "Security labels that protects the action.", 0, java.lang.Integer.MAX_VALUE, securityLabelNumber));
|
||||
|
@ -7680,9 +7550,7 @@ public class Contract extends DomainResource {
|
|||
case -901513884: /*performerRole*/ return new Property("performerRole", "CodeableConcept", "The type of role or competency of an individual desired or required to perform or not perform the action.", 0, 1, performerRole);
|
||||
case 481140686: /*performer*/ return new Property("performer", "Reference(RelatedPerson|Patient|Practitioner|PractitionerRole|CareTeam|Device|Substance|Organization|Location)", "Indicates who or what is being asked to perform (or not perform) the ction.", 0, 1, performer);
|
||||
case 1051302947: /*performerLinkId*/ return new Property("performerLinkId", "string", "Id [identifier??] of the clause or question text related to the reason type or reference of this action in the referenced form or QuestionnaireResponse.", 0, java.lang.Integer.MAX_VALUE, performerLinkId);
|
||||
case 722137681: /*reasonCode*/ return new Property("reasonCode", "CodeableConcept", "Rationale for the action to be performed or not performed. Describes why the action is permitted or prohibited.", 0, java.lang.Integer.MAX_VALUE, reasonCode);
|
||||
case -1146218137: /*reasonReference*/ return new Property("reasonReference", "Reference(Condition|Observation|DiagnosticReport|DocumentReference|Questionnaire|QuestionnaireResponse)", "Indicates another resource whose existence justifies permitting or not permitting this action.", 0, java.lang.Integer.MAX_VALUE, reasonReference);
|
||||
case -934964668: /*reason*/ return new Property("reason", "string", "Describes why the action is to be performed or not performed in textual form.", 0, java.lang.Integer.MAX_VALUE, reason);
|
||||
case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Condition|Observation|DiagnosticReport|DocumentReference|Questionnaire|QuestionnaireResponse)", "Rationale for the action to be performed or not performed. Describes why the action is permitted or prohibited. Either a coded concept, or another resource whose existence justifies permitting or not permitting this action.", 0, java.lang.Integer.MAX_VALUE, reason);
|
||||
case -1557963239: /*reasonLinkId*/ return new Property("reasonLinkId", "string", "Id [identifier??] of the clause or question text related to the reason type or reference of this action in the referenced form or QuestionnaireResponse.", 0, java.lang.Integer.MAX_VALUE, reasonLinkId);
|
||||
case 3387378: /*note*/ return new Property("note", "Annotation", "Comments made about the term action made by the requester, performer, subject or other participants.", 0, java.lang.Integer.MAX_VALUE, note);
|
||||
case -149460995: /*securityLabelNumber*/ return new Property("securityLabelNumber", "unsignedInt", "Security labels that protects the action.", 0, java.lang.Integer.MAX_VALUE, securityLabelNumber);
|
||||
|
@ -7709,9 +7577,7 @@ public class Contract extends DomainResource {
|
|||
case -901513884: /*performerRole*/ return this.performerRole == null ? new Base[0] : new Base[] {this.performerRole}; // CodeableConcept
|
||||
case 481140686: /*performer*/ return this.performer == null ? new Base[0] : new Base[] {this.performer}; // Reference
|
||||
case 1051302947: /*performerLinkId*/ return this.performerLinkId == null ? new Base[0] : this.performerLinkId.toArray(new Base[this.performerLinkId.size()]); // StringType
|
||||
case 722137681: /*reasonCode*/ return this.reasonCode == null ? new Base[0] : this.reasonCode.toArray(new Base[this.reasonCode.size()]); // CodeableConcept
|
||||
case -1146218137: /*reasonReference*/ return this.reasonReference == null ? new Base[0] : this.reasonReference.toArray(new Base[this.reasonReference.size()]); // Reference
|
||||
case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // StringType
|
||||
case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference
|
||||
case -1557963239: /*reasonLinkId*/ return this.reasonLinkId == null ? new Base[0] : this.reasonLinkId.toArray(new Base[this.reasonLinkId.size()]); // StringType
|
||||
case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation
|
||||
case -149460995: /*securityLabelNumber*/ return this.securityLabelNumber == null ? new Base[0] : this.securityLabelNumber.toArray(new Base[this.securityLabelNumber.size()]); // UnsignedIntType
|
||||
|
@ -7768,14 +7634,8 @@ public class Contract extends DomainResource {
|
|||
case 1051302947: // performerLinkId
|
||||
this.getPerformerLinkId().add(TypeConvertor.castToString(value)); // StringType
|
||||
return value;
|
||||
case 722137681: // reasonCode
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
|
||||
return value;
|
||||
case -1146218137: // reasonReference
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value)); // Reference
|
||||
return value;
|
||||
case -934964668: // reason
|
||||
this.getReason().add(TypeConvertor.castToString(value)); // StringType
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference
|
||||
return value;
|
||||
case -1557963239: // reasonLinkId
|
||||
this.getReasonLinkId().add(TypeConvertor.castToString(value)); // StringType
|
||||
|
@ -7823,12 +7683,8 @@ public class Contract extends DomainResource {
|
|||
this.performer = TypeConvertor.castToReference(value); // Reference
|
||||
} else if (name.equals("performerLinkId")) {
|
||||
this.getPerformerLinkId().add(TypeConvertor.castToString(value));
|
||||
} else if (name.equals("reasonCode")) {
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value));
|
||||
} else if (name.equals("reasonReference")) {
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value));
|
||||
} else if (name.equals("reason")) {
|
||||
this.getReason().add(TypeConvertor.castToString(value));
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value));
|
||||
} else if (name.equals("reasonLinkId")) {
|
||||
this.getReasonLinkId().add(TypeConvertor.castToString(value));
|
||||
} else if (name.equals("note")) {
|
||||
|
@ -7859,9 +7715,7 @@ public class Contract extends DomainResource {
|
|||
case -901513884: return getPerformerRole();
|
||||
case 481140686: return getPerformer();
|
||||
case 1051302947: return addPerformerLinkIdElement();
|
||||
case 722137681: return addReasonCode();
|
||||
case -1146218137: return addReasonReference();
|
||||
case -934964668: return addReasonElement();
|
||||
case -934964668: return addReason();
|
||||
case -1557963239: return addReasonLinkIdElement();
|
||||
case 3387378: return addNote();
|
||||
case -149460995: return addSecurityLabelNumberElement();
|
||||
|
@ -7888,9 +7742,7 @@ public class Contract extends DomainResource {
|
|||
case -901513884: /*performerRole*/ return new String[] {"CodeableConcept"};
|
||||
case 481140686: /*performer*/ return new String[] {"Reference"};
|
||||
case 1051302947: /*performerLinkId*/ return new String[] {"string"};
|
||||
case 722137681: /*reasonCode*/ return new String[] {"CodeableConcept"};
|
||||
case -1146218137: /*reasonReference*/ return new String[] {"Reference"};
|
||||
case -934964668: /*reason*/ return new String[] {"string"};
|
||||
case -934964668: /*reason*/ return new String[] {"CodeableReference"};
|
||||
case -1557963239: /*reasonLinkId*/ return new String[] {"string"};
|
||||
case 3387378: /*note*/ return new String[] {"Annotation"};
|
||||
case -149460995: /*securityLabelNumber*/ return new String[] {"unsignedInt"};
|
||||
|
@ -7961,14 +7813,8 @@ public class Contract extends DomainResource {
|
|||
else if (name.equals("performerLinkId")) {
|
||||
throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.performerLinkId");
|
||||
}
|
||||
else if (name.equals("reasonCode")) {
|
||||
return addReasonCode();
|
||||
}
|
||||
else if (name.equals("reasonReference")) {
|
||||
return addReasonReference();
|
||||
}
|
||||
else if (name.equals("reason")) {
|
||||
throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.reason");
|
||||
return addReason();
|
||||
}
|
||||
else if (name.equals("reasonLinkId")) {
|
||||
throw new FHIRException("Cannot call addChild on a primitive type Contract.term.action.reasonLinkId");
|
||||
|
@ -8034,19 +7880,9 @@ public class Contract extends DomainResource {
|
|||
for (StringType i : performerLinkId)
|
||||
dst.performerLinkId.add(i.copy());
|
||||
};
|
||||
if (reasonCode != null) {
|
||||
dst.reasonCode = new ArrayList<CodeableConcept>();
|
||||
for (CodeableConcept i : reasonCode)
|
||||
dst.reasonCode.add(i.copy());
|
||||
};
|
||||
if (reasonReference != null) {
|
||||
dst.reasonReference = new ArrayList<Reference>();
|
||||
for (Reference i : reasonReference)
|
||||
dst.reasonReference.add(i.copy());
|
||||
};
|
||||
if (reason != null) {
|
||||
dst.reason = new ArrayList<StringType>();
|
||||
for (StringType i : reason)
|
||||
dst.reason = new ArrayList<CodeableReference>();
|
||||
for (CodeableReference i : reason)
|
||||
dst.reason.add(i.copy());
|
||||
};
|
||||
if (reasonLinkId != null) {
|
||||
|
@ -8079,7 +7915,6 @@ public class Contract extends DomainResource {
|
|||
&& compareDeep(requester, o.requester, true) && compareDeep(requesterLinkId, o.requesterLinkId, true)
|
||||
&& compareDeep(performerType, o.performerType, true) && compareDeep(performerRole, o.performerRole, true)
|
||||
&& compareDeep(performer, o.performer, true) && compareDeep(performerLinkId, o.performerLinkId, true)
|
||||
&& compareDeep(reasonCode, o.reasonCode, true) && compareDeep(reasonReference, o.reasonReference, true)
|
||||
&& compareDeep(reason, o.reason, true) && compareDeep(reasonLinkId, o.reasonLinkId, true) && compareDeep(note, o.note, true)
|
||||
&& compareDeep(securityLabelNumber, o.securityLabelNumber, true);
|
||||
}
|
||||
|
@ -8093,15 +7928,15 @@ public class Contract extends DomainResource {
|
|||
ActionComponent o = (ActionComponent) other_;
|
||||
return compareValues(doNotPerform, o.doNotPerform, true) && compareValues(linkId, o.linkId, true) && compareValues(contextLinkId, o.contextLinkId, true)
|
||||
&& compareValues(requesterLinkId, o.requesterLinkId, true) && compareValues(performerLinkId, o.performerLinkId, true)
|
||||
&& compareValues(reason, o.reason, true) && compareValues(reasonLinkId, o.reasonLinkId, true) && compareValues(securityLabelNumber, o.securityLabelNumber, true)
|
||||
&& compareValues(reasonLinkId, o.reasonLinkId, true) && compareValues(securityLabelNumber, o.securityLabelNumber, true)
|
||||
;
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(doNotPerform, type, subject
|
||||
, intent, linkId, status, context, contextLinkId, occurrence, requester, requesterLinkId
|
||||
, performerType, performerRole, performer, performerLinkId, reasonCode, reasonReference
|
||||
, reason, reasonLinkId, note, securityLabelNumber);
|
||||
, performerType, performerRole, performer, performerLinkId, reason, reasonLinkId
|
||||
, note, securityLabelNumber);
|
||||
}
|
||||
|
||||
public String fhirType() {
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
@ -483,47 +483,40 @@ public class DeviceRequest extends DomainResource {
|
|||
/**
|
||||
* Reason or justification for the use of this device.
|
||||
*/
|
||||
@Child(name = "reasonCode", type = {CodeableConcept.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Coded Reason for request", formalDefinition="Reason or justification for the use of this device." )
|
||||
@Child(name = "reason", type = {CodeableReference.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Coded/Linked Reason for request", formalDefinition="Reason or justification for the use of this device." )
|
||||
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-code")
|
||||
protected List<CodeableConcept> reasonCode;
|
||||
|
||||
/**
|
||||
* Reason or justification for the use of this device.
|
||||
*/
|
||||
@Child(name = "reasonReference", type = {Condition.class, Observation.class, DiagnosticReport.class, DocumentReference.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Linked Reason for request", formalDefinition="Reason or justification for the use of this device." )
|
||||
protected List<Reference> reasonReference;
|
||||
protected List<CodeableReference> reason;
|
||||
|
||||
/**
|
||||
* Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.
|
||||
*/
|
||||
@Child(name = "insurance", type = {Coverage.class, ClaimResponse.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "insurance", type = {Coverage.class, ClaimResponse.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Associated insurance coverage", formalDefinition="Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service." )
|
||||
protected List<Reference> insurance;
|
||||
|
||||
/**
|
||||
* Additional clinical information about the patient that may influence the request fulfilment. For example, this may include where on the subject's body the device will be used (i.e. the target site).
|
||||
*/
|
||||
@Child(name = "supportingInfo", type = {Reference.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "supportingInfo", type = {Reference.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Additional clinical information", formalDefinition="Additional clinical information about the patient that may influence the request fulfilment. For example, this may include where on the subject's body the device will be used (i.e. the target site)." )
|
||||
protected List<Reference> supportingInfo;
|
||||
|
||||
/**
|
||||
* Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.
|
||||
*/
|
||||
@Child(name = "note", type = {Annotation.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "note", type = {Annotation.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Notes or comments", formalDefinition="Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement." )
|
||||
protected List<Annotation> note;
|
||||
|
||||
/**
|
||||
* Key events in the history of the request.
|
||||
*/
|
||||
@Child(name = "relevantHistory", type = {Provenance.class}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "relevantHistory", type = {Provenance.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Request provenance", formalDefinition="Key events in the history of the request." )
|
||||
protected List<Reference> relevantHistory;
|
||||
|
||||
private static final long serialVersionUID = 1859846276L;
|
||||
private static final long serialVersionUID = -1895022932L;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -1330,109 +1323,56 @@ public class DeviceRequest extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonCode} (Reason or justification for the use of this device.)
|
||||
* @return {@link #reason} (Reason or justification for the use of this device.)
|
||||
*/
|
||||
public List<CodeableConcept> getReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
return this.reasonCode;
|
||||
public List<CodeableReference> getReason() {
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
return this.reason;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public DeviceRequest setReasonCode(List<CodeableConcept> theReasonCode) {
|
||||
this.reasonCode = theReasonCode;
|
||||
public DeviceRequest setReason(List<CodeableReference> theReason) {
|
||||
this.reason = theReason;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
public boolean hasReason() {
|
||||
if (this.reason == null)
|
||||
return false;
|
||||
for (CodeableConcept item : this.reasonCode)
|
||||
for (CodeableReference item : this.reason)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public CodeableConcept addReasonCode() { //3
|
||||
CodeableConcept t = new CodeableConcept();
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
public CodeableReference addReason() { //3
|
||||
CodeableReference t = new CodeableReference();
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public DeviceRequest addReasonCode(CodeableConcept t) { //3
|
||||
public DeviceRequest addReason(CodeableReference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonCode}, creating it if it does not already exist {3}
|
||||
* @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public CodeableConcept getReasonCodeFirstRep() {
|
||||
if (getReasonCode().isEmpty()) {
|
||||
addReasonCode();
|
||||
public CodeableReference getReasonFirstRep() {
|
||||
if (getReason().isEmpty()) {
|
||||
addReason();
|
||||
}
|
||||
return getReasonCode().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonReference} (Reason or justification for the use of this device.)
|
||||
*/
|
||||
public List<Reference> getReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
return this.reasonReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public DeviceRequest setReasonReference(List<Reference> theReasonReference) {
|
||||
this.reasonReference = theReasonReference;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
return false;
|
||||
for (Reference item : this.reasonReference)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public Reference addReasonReference() { //3
|
||||
Reference t = new Reference();
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public DeviceRequest addReasonReference(Reference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonReference}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public Reference getReasonReferenceFirstRep() {
|
||||
if (getReasonReference().isEmpty()) {
|
||||
addReasonReference();
|
||||
}
|
||||
return getReasonReference().get(0);
|
||||
return getReason().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1667,8 +1607,7 @@ public class DeviceRequest extends DomainResource {
|
|||
children.add(new Property("requester", "Reference(Device|Practitioner|PractitionerRole|Organization)", "The individual who initiated the request and has responsibility for its activation.", 0, 1, requester));
|
||||
children.add(new Property("performerType", "CodeableConcept", "Desired type of performer for doing the diagnostic testing.", 0, 1, performerType));
|
||||
children.add(new Property("performer", "Reference(Practitioner|PractitionerRole|Organization|CareTeam|HealthcareService|Patient|Device|RelatedPerson)", "The desired performer for doing the diagnostic testing.", 0, 1, performer));
|
||||
children.add(new Property("reasonCode", "CodeableConcept", "Reason or justification for the use of this device.", 0, java.lang.Integer.MAX_VALUE, reasonCode));
|
||||
children.add(new Property("reasonReference", "Reference(Condition|Observation|DiagnosticReport|DocumentReference)", "Reason or justification for the use of this device.", 0, java.lang.Integer.MAX_VALUE, reasonReference));
|
||||
children.add(new Property("reason", "CodeableReference(Condition|Observation|DiagnosticReport|DocumentReference)", "Reason or justification for the use of this device.", 0, java.lang.Integer.MAX_VALUE, reason));
|
||||
children.add(new Property("insurance", "Reference(Coverage|ClaimResponse)", "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.", 0, java.lang.Integer.MAX_VALUE, insurance));
|
||||
children.add(new Property("supportingInfo", "Reference(Any)", "Additional clinical information about the patient that may influence the request fulfilment. For example, this may include where on the subject's body the device will be used (i.e. the target site).", 0, java.lang.Integer.MAX_VALUE, supportingInfo));
|
||||
children.add(new Property("note", "Annotation", "Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.", 0, java.lang.Integer.MAX_VALUE, note));
|
||||
|
@ -1703,8 +1642,7 @@ public class DeviceRequest extends DomainResource {
|
|||
case 693933948: /*requester*/ return new Property("requester", "Reference(Device|Practitioner|PractitionerRole|Organization)", "The individual who initiated the request and has responsibility for its activation.", 0, 1, requester);
|
||||
case -901444568: /*performerType*/ return new Property("performerType", "CodeableConcept", "Desired type of performer for doing the diagnostic testing.", 0, 1, performerType);
|
||||
case 481140686: /*performer*/ return new Property("performer", "Reference(Practitioner|PractitionerRole|Organization|CareTeam|HealthcareService|Patient|Device|RelatedPerson)", "The desired performer for doing the diagnostic testing.", 0, 1, performer);
|
||||
case 722137681: /*reasonCode*/ return new Property("reasonCode", "CodeableConcept", "Reason or justification for the use of this device.", 0, java.lang.Integer.MAX_VALUE, reasonCode);
|
||||
case -1146218137: /*reasonReference*/ return new Property("reasonReference", "Reference(Condition|Observation|DiagnosticReport|DocumentReference)", "Reason or justification for the use of this device.", 0, java.lang.Integer.MAX_VALUE, reasonReference);
|
||||
case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Condition|Observation|DiagnosticReport|DocumentReference)", "Reason or justification for the use of this device.", 0, java.lang.Integer.MAX_VALUE, reason);
|
||||
case 73049818: /*insurance*/ return new Property("insurance", "Reference(Coverage|ClaimResponse)", "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.", 0, java.lang.Integer.MAX_VALUE, insurance);
|
||||
case 1922406657: /*supportingInfo*/ return new Property("supportingInfo", "Reference(Any)", "Additional clinical information about the patient that may influence the request fulfilment. For example, this may include where on the subject's body the device will be used (i.e. the target site).", 0, java.lang.Integer.MAX_VALUE, supportingInfo);
|
||||
case 3387378: /*note*/ return new Property("note", "Annotation", "Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.", 0, java.lang.Integer.MAX_VALUE, note);
|
||||
|
@ -1735,8 +1673,7 @@ public class DeviceRequest extends DomainResource {
|
|||
case 693933948: /*requester*/ return this.requester == null ? new Base[0] : new Base[] {this.requester}; // Reference
|
||||
case -901444568: /*performerType*/ return this.performerType == null ? new Base[0] : new Base[] {this.performerType}; // CodeableConcept
|
||||
case 481140686: /*performer*/ return this.performer == null ? new Base[0] : new Base[] {this.performer}; // Reference
|
||||
case 722137681: /*reasonCode*/ return this.reasonCode == null ? new Base[0] : this.reasonCode.toArray(new Base[this.reasonCode.size()]); // CodeableConcept
|
||||
case -1146218137: /*reasonReference*/ return this.reasonReference == null ? new Base[0] : this.reasonReference.toArray(new Base[this.reasonReference.size()]); // Reference
|
||||
case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference
|
||||
case 73049818: /*insurance*/ return this.insurance == null ? new Base[0] : this.insurance.toArray(new Base[this.insurance.size()]); // Reference
|
||||
case 1922406657: /*supportingInfo*/ return this.supportingInfo == null ? new Base[0] : this.supportingInfo.toArray(new Base[this.supportingInfo.size()]); // Reference
|
||||
case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation
|
||||
|
@ -1806,11 +1743,8 @@ public class DeviceRequest extends DomainResource {
|
|||
case 481140686: // performer
|
||||
this.performer = TypeConvertor.castToReference(value); // Reference
|
||||
return value;
|
||||
case 722137681: // reasonCode
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
|
||||
return value;
|
||||
case -1146218137: // reasonReference
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value)); // Reference
|
||||
case -934964668: // reason
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference
|
||||
return value;
|
||||
case 73049818: // insurance
|
||||
this.getInsurance().add(TypeConvertor.castToReference(value)); // Reference
|
||||
|
@ -1870,10 +1804,8 @@ public class DeviceRequest extends DomainResource {
|
|||
this.performerType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
|
||||
} else if (name.equals("performer")) {
|
||||
this.performer = TypeConvertor.castToReference(value); // Reference
|
||||
} else if (name.equals("reasonCode")) {
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value));
|
||||
} else if (name.equals("reasonReference")) {
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value));
|
||||
} else if (name.equals("reason")) {
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value));
|
||||
} else if (name.equals("insurance")) {
|
||||
this.getInsurance().add(TypeConvertor.castToReference(value));
|
||||
} else if (name.equals("supportingInfo")) {
|
||||
|
@ -1910,8 +1842,7 @@ public class DeviceRequest extends DomainResource {
|
|||
case 693933948: return getRequester();
|
||||
case -901444568: return getPerformerType();
|
||||
case 481140686: return getPerformer();
|
||||
case 722137681: return addReasonCode();
|
||||
case -1146218137: return addReasonReference();
|
||||
case -934964668: return addReason();
|
||||
case 73049818: return addInsurance();
|
||||
case 1922406657: return addSupportingInfo();
|
||||
case 3387378: return addNote();
|
||||
|
@ -1942,8 +1873,7 @@ public class DeviceRequest extends DomainResource {
|
|||
case 693933948: /*requester*/ return new String[] {"Reference"};
|
||||
case -901444568: /*performerType*/ return new String[] {"CodeableConcept"};
|
||||
case 481140686: /*performer*/ return new String[] {"Reference"};
|
||||
case 722137681: /*reasonCode*/ return new String[] {"CodeableConcept"};
|
||||
case -1146218137: /*reasonReference*/ return new String[] {"Reference"};
|
||||
case -934964668: /*reason*/ return new String[] {"CodeableReference"};
|
||||
case 73049818: /*insurance*/ return new String[] {"Reference"};
|
||||
case 1922406657: /*supportingInfo*/ return new String[] {"Reference"};
|
||||
case 3387378: /*note*/ return new String[] {"Annotation"};
|
||||
|
@ -2029,11 +1959,8 @@ public class DeviceRequest extends DomainResource {
|
|||
this.performer = new Reference();
|
||||
return this.performer;
|
||||
}
|
||||
else if (name.equals("reasonCode")) {
|
||||
return addReasonCode();
|
||||
}
|
||||
else if (name.equals("reasonReference")) {
|
||||
return addReasonReference();
|
||||
else if (name.equals("reason")) {
|
||||
return addReason();
|
||||
}
|
||||
else if (name.equals("insurance")) {
|
||||
return addInsurance();
|
||||
|
@ -2106,15 +2033,10 @@ public class DeviceRequest extends DomainResource {
|
|||
dst.requester = requester == null ? null : requester.copy();
|
||||
dst.performerType = performerType == null ? null : performerType.copy();
|
||||
dst.performer = performer == null ? null : performer.copy();
|
||||
if (reasonCode != null) {
|
||||
dst.reasonCode = new ArrayList<CodeableConcept>();
|
||||
for (CodeableConcept i : reasonCode)
|
||||
dst.reasonCode.add(i.copy());
|
||||
};
|
||||
if (reasonReference != null) {
|
||||
dst.reasonReference = new ArrayList<Reference>();
|
||||
for (Reference i : reasonReference)
|
||||
dst.reasonReference.add(i.copy());
|
||||
if (reason != null) {
|
||||
dst.reason = new ArrayList<CodeableReference>();
|
||||
for (CodeableReference i : reason)
|
||||
dst.reason.add(i.copy());
|
||||
};
|
||||
if (insurance != null) {
|
||||
dst.insurance = new ArrayList<Reference>();
|
||||
|
@ -2156,9 +2078,9 @@ public class DeviceRequest extends DomainResource {
|
|||
&& compareDeep(code, o.code, true) && compareDeep(parameter, o.parameter, true) && compareDeep(subject, o.subject, true)
|
||||
&& compareDeep(encounter, o.encounter, true) && compareDeep(occurrence, o.occurrence, true) && compareDeep(authoredOn, o.authoredOn, true)
|
||||
&& compareDeep(requester, o.requester, true) && compareDeep(performerType, o.performerType, true)
|
||||
&& compareDeep(performer, o.performer, true) && compareDeep(reasonCode, o.reasonCode, true) && compareDeep(reasonReference, o.reasonReference, true)
|
||||
&& compareDeep(insurance, o.insurance, true) && compareDeep(supportingInfo, o.supportingInfo, true)
|
||||
&& compareDeep(note, o.note, true) && compareDeep(relevantHistory, o.relevantHistory, true);
|
||||
&& compareDeep(performer, o.performer, true) && compareDeep(reason, o.reason, true) && compareDeep(insurance, o.insurance, true)
|
||||
&& compareDeep(supportingInfo, o.supportingInfo, true) && compareDeep(note, o.note, true) && compareDeep(relevantHistory, o.relevantHistory, true)
|
||||
;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -2177,8 +2099,7 @@ public class DeviceRequest extends DomainResource {
|
|||
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, instantiatesCanonical
|
||||
, instantiatesUri, basedOn, priorRequest, groupIdentifier, status, intent, priority
|
||||
, code, parameter, subject, encounter, occurrence, authoredOn, requester, performerType
|
||||
, performer, reasonCode, reasonReference, insurance, supportingInfo, note, relevantHistory
|
||||
);
|
||||
, performer, reason, insurance, supportingInfo, note, relevantHistory);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
@ -294,23 +294,16 @@ public class DeviceUseStatement extends DomainResource {
|
|||
protected Reference device;
|
||||
|
||||
/**
|
||||
* Reason or justification for the use of the device.
|
||||
* Reason or justification for the use of the device. A coded concept, or another resource whose existence justifies this DeviceUseStatement.
|
||||
*/
|
||||
@Child(name = "reasonCode", type = {CodeableConcept.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Why device was used", formalDefinition="Reason or justification for the use of the device." )
|
||||
protected List<CodeableConcept> reasonCode;
|
||||
|
||||
/**
|
||||
* Indicates another resource whose existence justifies this DeviceUseStatement.
|
||||
*/
|
||||
@Child(name = "reasonReference", type = {Condition.class, Observation.class, DiagnosticReport.class, DocumentReference.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Why was DeviceUseStatement performed?", formalDefinition="Indicates another resource whose existence justifies this DeviceUseStatement." )
|
||||
protected List<Reference> reasonReference;
|
||||
@Child(name = "reason", type = {CodeableReference.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Why device was used", formalDefinition="Reason or justification for the use of the device. A coded concept, or another resource whose existence justifies this DeviceUseStatement." )
|
||||
protected List<CodeableReference> reason;
|
||||
|
||||
/**
|
||||
* Indicates the anotomic location on the subject's body where the device was used ( i.e. the target).
|
||||
*/
|
||||
@Child(name = "bodySite", type = {CodeableConcept.class}, order=11, min=0, max=1, modifier=false, summary=true)
|
||||
@Child(name = "bodySite", type = {CodeableConcept.class}, order=10, min=0, max=1, modifier=false, summary=true)
|
||||
@Description(shortDefinition="Target body site", formalDefinition="Indicates the anotomic location on the subject's body where the device was used ( i.e. the target)." )
|
||||
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/body-site")
|
||||
protected CodeableConcept bodySite;
|
||||
|
@ -318,11 +311,11 @@ public class DeviceUseStatement extends DomainResource {
|
|||
/**
|
||||
* Details about the device statement that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.
|
||||
*/
|
||||
@Child(name = "note", type = {Annotation.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Child(name = "note", type = {Annotation.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
|
||||
@Description(shortDefinition="Addition details (comments, instructions)", formalDefinition="Details about the device statement that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement." )
|
||||
protected List<Annotation> note;
|
||||
|
||||
private static final long serialVersionUID = 2139955761L;
|
||||
private static final long serialVersionUID = 2097046105L;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@ -733,109 +726,56 @@ public class DeviceUseStatement extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonCode} (Reason or justification for the use of the device.)
|
||||
* @return {@link #reason} (Reason or justification for the use of the device. A coded concept, or another resource whose existence justifies this DeviceUseStatement.)
|
||||
*/
|
||||
public List<CodeableConcept> getReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
return this.reasonCode;
|
||||
public List<CodeableReference> getReason() {
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
return this.reason;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public DeviceUseStatement setReasonCode(List<CodeableConcept> theReasonCode) {
|
||||
this.reasonCode = theReasonCode;
|
||||
public DeviceUseStatement setReason(List<CodeableReference> theReason) {
|
||||
this.reason = theReason;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonCode() {
|
||||
if (this.reasonCode == null)
|
||||
public boolean hasReason() {
|
||||
if (this.reason == null)
|
||||
return false;
|
||||
for (CodeableConcept item : this.reasonCode)
|
||||
for (CodeableReference item : this.reason)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public CodeableConcept addReasonCode() { //3
|
||||
CodeableConcept t = new CodeableConcept();
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
public CodeableReference addReason() { //3
|
||||
CodeableReference t = new CodeableReference();
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public DeviceUseStatement addReasonCode(CodeableConcept t) { //3
|
||||
public DeviceUseStatement addReason(CodeableReference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonCode == null)
|
||||
this.reasonCode = new ArrayList<CodeableConcept>();
|
||||
this.reasonCode.add(t);
|
||||
if (this.reason == null)
|
||||
this.reason = new ArrayList<CodeableReference>();
|
||||
this.reason.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonCode}, creating it if it does not already exist {3}
|
||||
* @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public CodeableConcept getReasonCodeFirstRep() {
|
||||
if (getReasonCode().isEmpty()) {
|
||||
addReasonCode();
|
||||
public CodeableReference getReasonFirstRep() {
|
||||
if (getReason().isEmpty()) {
|
||||
addReason();
|
||||
}
|
||||
return getReasonCode().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reasonReference} (Indicates another resource whose existence justifies this DeviceUseStatement.)
|
||||
*/
|
||||
public List<Reference> getReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
return this.reasonReference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns a reference to <code>this</code> for easy method chaining
|
||||
*/
|
||||
public DeviceUseStatement setReasonReference(List<Reference> theReasonReference) {
|
||||
this.reasonReference = theReasonReference;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean hasReasonReference() {
|
||||
if (this.reasonReference == null)
|
||||
return false;
|
||||
for (Reference item : this.reasonReference)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public Reference addReasonReference() { //3
|
||||
Reference t = new Reference();
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
public DeviceUseStatement addReasonReference(Reference t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.reasonReference == null)
|
||||
this.reasonReference = new ArrayList<Reference>();
|
||||
this.reasonReference.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The first repetition of repeating field {@link #reasonReference}, creating it if it does not already exist {3}
|
||||
*/
|
||||
public Reference getReasonReferenceFirstRep() {
|
||||
if (getReasonReference().isEmpty()) {
|
||||
addReasonReference();
|
||||
}
|
||||
return getReasonReference().get(0);
|
||||
return getReason().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -926,8 +866,7 @@ public class DeviceUseStatement extends DomainResource {
|
|||
children.add(new Property("recordedOn", "dateTime", "The time at which the statement was made/recorded.", 0, 1, recordedOn));
|
||||
children.add(new Property("source", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson)", "Who reported the device was being used by the patient.", 0, 1, source));
|
||||
children.add(new Property("device", "Reference(Device)", "The details of the device used.", 0, 1, device));
|
||||
children.add(new Property("reasonCode", "CodeableConcept", "Reason or justification for the use of the device.", 0, java.lang.Integer.MAX_VALUE, reasonCode));
|
||||
children.add(new Property("reasonReference", "Reference(Condition|Observation|DiagnosticReport|DocumentReference)", "Indicates another resource whose existence justifies this DeviceUseStatement.", 0, java.lang.Integer.MAX_VALUE, reasonReference));
|
||||
children.add(new Property("reason", "CodeableReference(Condition|Observation|DiagnosticReport|DocumentReference)", "Reason or justification for the use of the device. A coded concept, or another resource whose existence justifies this DeviceUseStatement.", 0, java.lang.Integer.MAX_VALUE, reason));
|
||||
children.add(new Property("bodySite", "CodeableConcept", "Indicates the anotomic location on the subject's body where the device was used ( i.e. the target).", 0, 1, bodySite));
|
||||
children.add(new Property("note", "Annotation", "Details about the device statement that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.", 0, java.lang.Integer.MAX_VALUE, note));
|
||||
}
|
||||
|
@ -948,8 +887,7 @@ public class DeviceUseStatement extends DomainResource {
|
|||
case 735397551: /*recordedOn*/ return new Property("recordedOn", "dateTime", "The time at which the statement was made/recorded.", 0, 1, recordedOn);
|
||||
case -896505829: /*source*/ return new Property("source", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson)", "Who reported the device was being used by the patient.", 0, 1, source);
|
||||
case -1335157162: /*device*/ return new Property("device", "Reference(Device)", "The details of the device used.", 0, 1, device);
|
||||
case 722137681: /*reasonCode*/ return new Property("reasonCode", "CodeableConcept", "Reason or justification for the use of the device.", 0, java.lang.Integer.MAX_VALUE, reasonCode);
|
||||
case -1146218137: /*reasonReference*/ return new Property("reasonReference", "Reference(Condition|Observation|DiagnosticReport|DocumentReference)", "Indicates another resource whose existence justifies this DeviceUseStatement.", 0, java.lang.Integer.MAX_VALUE, reasonReference);
|
||||
case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Condition|Observation|DiagnosticReport|DocumentReference)", "Reason or justification for the use of the device. A coded concept, or another resource whose existence justifies this DeviceUseStatement.", 0, java.lang.Integer.MAX_VALUE, reason);
|
||||
case 1702620169: /*bodySite*/ return new Property("bodySite", "CodeableConcept", "Indicates the anotomic location on the subject's body where the device was used ( i.e. the target).", 0, 1, bodySite);
|
||||
case 3387378: /*note*/ return new Property("note", "Annotation", "Details about the device statement that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.", 0, java.lang.Integer.MAX_VALUE, note);
|
||||
default: return super.getNamedProperty(_hash, _name, _checkValid);
|
||||
|
@ -969,8 +907,7 @@ public class DeviceUseStatement extends DomainResource {
|
|||
case 735397551: /*recordedOn*/ return this.recordedOn == null ? new Base[0] : new Base[] {this.recordedOn}; // DateTimeType
|
||||
case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // Reference
|
||||
case -1335157162: /*device*/ return this.device == null ? new Base[0] : new Base[] {this.device}; // Reference
|
||||
case 722137681: /*reasonCode*/ return this.reasonCode == null ? new Base[0] : this.reasonCode.toArray(new Base[this.reasonCode.size()]); // CodeableConcept
|
||||
case -1146218137: /*reasonReference*/ return this.reasonReference == null ? new Base[0] : this.reasonReference.toArray(new Base[this.reasonReference.size()]); // Reference
|
||||
case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableReference
|
||||
case 1702620169: /*bodySite*/ return this.bodySite == null ? new Base[0] : new Base[] {this.bodySite}; // CodeableConcept
|
||||
case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation
|
||||
default: return super.getProperty(hash, name, checkValid);
|
||||
|
@ -1009,11 +946,8 @@ public class DeviceUseStatement extends DomainResource {
|
|||
case -1335157162: // device
|
||||
this.device = TypeConvertor.castToReference(value); // Reference
|
||||
return value;
|
||||
case 722137681: // reasonCode
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
|
||||
return value;
|
||||
case -1146218137: // reasonReference
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value)); // Reference
|
||||
case -934964668: // reason
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference
|
||||
return value;
|
||||
case 1702620169: // bodySite
|
||||
this.bodySite = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
|
||||
|
@ -1047,10 +981,8 @@ public class DeviceUseStatement extends DomainResource {
|
|||
this.source = TypeConvertor.castToReference(value); // Reference
|
||||
} else if (name.equals("device")) {
|
||||
this.device = TypeConvertor.castToReference(value); // Reference
|
||||
} else if (name.equals("reasonCode")) {
|
||||
this.getReasonCode().add(TypeConvertor.castToCodeableConcept(value));
|
||||
} else if (name.equals("reasonReference")) {
|
||||
this.getReasonReference().add(TypeConvertor.castToReference(value));
|
||||
} else if (name.equals("reason")) {
|
||||
this.getReason().add(TypeConvertor.castToCodeableReference(value));
|
||||
} else if (name.equals("bodySite")) {
|
||||
this.bodySite = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
|
||||
} else if (name.equals("note")) {
|
||||
|
@ -1073,8 +1005,7 @@ public class DeviceUseStatement extends DomainResource {
|
|||
case 735397551: return getRecordedOnElement();
|
||||
case -896505829: return getSource();
|
||||
case -1335157162: return getDevice();
|
||||
case 722137681: return addReasonCode();
|
||||
case -1146218137: return addReasonReference();
|
||||
case -934964668: return addReason();
|
||||
case 1702620169: return getBodySite();
|
||||
case 3387378: return addNote();
|
||||
default: return super.makeProperty(hash, name);
|
||||
|
@ -1094,8 +1025,7 @@ public class DeviceUseStatement extends DomainResource {
|
|||
case 735397551: /*recordedOn*/ return new String[] {"dateTime"};
|
||||
case -896505829: /*source*/ return new String[] {"Reference"};
|
||||
case -1335157162: /*device*/ return new String[] {"Reference"};
|
||||
case 722137681: /*reasonCode*/ return new String[] {"CodeableConcept"};
|
||||
case -1146218137: /*reasonReference*/ return new String[] {"Reference"};
|
||||
case -934964668: /*reason*/ return new String[] {"CodeableReference"};
|
||||
case 1702620169: /*bodySite*/ return new String[] {"CodeableConcept"};
|
||||
case 3387378: /*note*/ return new String[] {"Annotation"};
|
||||
default: return super.getTypesForProperty(hash, name);
|
||||
|
@ -1144,11 +1074,8 @@ public class DeviceUseStatement extends DomainResource {
|
|||
this.device = new Reference();
|
||||
return this.device;
|
||||
}
|
||||
else if (name.equals("reasonCode")) {
|
||||
return addReasonCode();
|
||||
}
|
||||
else if (name.equals("reasonReference")) {
|
||||
return addReasonReference();
|
||||
else if (name.equals("reason")) {
|
||||
return addReason();
|
||||
}
|
||||
else if (name.equals("bodySite")) {
|
||||
this.bodySite = new CodeableConcept();
|
||||
|
@ -1195,15 +1122,10 @@ public class DeviceUseStatement extends DomainResource {
|
|||
dst.recordedOn = recordedOn == null ? null : recordedOn.copy();
|
||||
dst.source = source == null ? null : source.copy();
|
||||
dst.device = device == null ? null : device.copy();
|
||||
if (reasonCode != null) {
|
||||
dst.reasonCode = new ArrayList<CodeableConcept>();
|
||||
for (CodeableConcept i : reasonCode)
|
||||
dst.reasonCode.add(i.copy());
|
||||
};
|
||||
if (reasonReference != null) {
|
||||
dst.reasonReference = new ArrayList<Reference>();
|
||||
for (Reference i : reasonReference)
|
||||
dst.reasonReference.add(i.copy());
|
||||
if (reason != null) {
|
||||
dst.reason = new ArrayList<CodeableReference>();
|
||||
for (CodeableReference i : reason)
|
||||
dst.reason.add(i.copy());
|
||||
};
|
||||
dst.bodySite = bodySite == null ? null : bodySite.copy();
|
||||
if (note != null) {
|
||||
|
@ -1227,8 +1149,8 @@ public class DeviceUseStatement extends DomainResource {
|
|||
return compareDeep(identifier, o.identifier, true) && compareDeep(basedOn, o.basedOn, true) && compareDeep(status, o.status, true)
|
||||
&& compareDeep(subject, o.subject, true) && compareDeep(derivedFrom, o.derivedFrom, true) && compareDeep(timing, o.timing, true)
|
||||
&& compareDeep(recordedOn, o.recordedOn, true) && compareDeep(source, o.source, true) && compareDeep(device, o.device, true)
|
||||
&& compareDeep(reasonCode, o.reasonCode, true) && compareDeep(reasonReference, o.reasonReference, true)
|
||||
&& compareDeep(bodySite, o.bodySite, true) && compareDeep(note, o.note, true);
|
||||
&& compareDeep(reason, o.reason, true) && compareDeep(bodySite, o.bodySite, true) && compareDeep(note, o.note, true)
|
||||
;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1243,8 +1165,8 @@ public class DeviceUseStatement extends DomainResource {
|
|||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, basedOn, status
|
||||
, subject, derivedFrom, timing, recordedOn, source, device, reasonCode, reasonReference
|
||||
, bodySite, note);
|
||||
, subject, derivedFrom, timing, recordedOn, source, device, reason, bodySite
|
||||
, note);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
|
@ -49,7 +49,7 @@ package org.hl7.fhir.r5.model;
|
|||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
|
||||
// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue